Package: ldapscripts
Version: 1.9.0-1
Severity: normal

--- Please enter the report below this line. ---

the starting UID is defined  in /etc/ldapscripts/ldapscripts.conf 

   UIDSTART="10000"

when creating a user, like

         ldapadduser wrohrm Lehrer 

the user gets the uid 65535.  

I tried to find the reason and found in usr/share/ldapscripts/runtime:

# Output : the last user id used + 1 (so the first useable user id) ($_UID)

_findlastuser () {
  _UID=`_ldapsearch "$SUFFIX" '(objectClass=posixAccount)' uidNumber | 
grep "uidNumber: " | sed "s|uidNumber: ||" | uniq | sort -n | tail -n 1`
  if [ -z "$_UID" ] || [ ! "$_UID" -gt "$UIDSTART" ]
  then
    _UID="$UIDSTART"
  fi
  _UID=`expr "$_UID" + 1`
}

this explains what happend, because 

getent passwd

shows

nobody:x:65534:65534:nobody:/nonexistent:/bin/sh

this seems a conceptional problem. Suggestion: What about using
ranges like /etc/adduser.conf does?

FIRST_UID=1000
LAST_UID=29999

probably the same problem arises with group id's.


greetings

   W. Rohrmoser


--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.33.1-r500

Debian Release: 5.0.4
  500 stable          x2go.obviously-nice.de 
  500 stable          www.debian-multimedia.org 
  500 stable          security.debian.org 
  500 stable          ftp.de.debian.org 
   10 testing         ftp.de.debian.org 
    1 unstable        www.emdebian.org 
    1 unstable        uclibc.debian.net 
    1 unstable        ftp.de.debian.org 

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Package's Suggests field is empty.








-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to