[Samba] pdb_new_rid: Failed to find unused RID

Dean Montgomery dmonty at sd73.bc.ca
Wed Feb 13 20:29:10 GMT 2008


We are getting the following error trying to add new samba users or machines:

pdb_new_rid: Failed to find unused RID

Does this have something to do with idmap?

The following command shows a big jump in ID numbers with the last ones having 
the same number repeated.
pdbedit -L | awk -F: '{print $2 " " $1 ":" $3}' | sort -n

======
...
3904 bobc:Clara Bob
3905 k121-001-26699$:Machine
3906 k121-01-26699$:Machine
65534 nobody:nobody
4294967295 16061-JPRM107$:16061-JPRM107$
4294967295 23562-JP-STENO2$:23562-JP-STENO2$
4294967295 J107-STN-01$:J107-STN-01$
...
4294967295 Maryjean Paluck:mpaluck
4294967295 hal:Hardware abstraction layer,,,
...
======

Here is the top part of the smb.conf
======
[global]
   netbios name = SERVER
   workgroup = WORKGROUP
   server string = Server
   dns proxy = no
   strict locking = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   #log level = 10
   security = user
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
   domain logons = yes
   logon drive = H:
   logon home = \\%N\%U\.profiles
   logon script = %a.bat
   add machine script = /usr/sbin/useradd -g machines -c 
Machine -d /var/lib/nobody -s /bin/false '%m$'
   load printers = yes
   printing = cups
   printer admin = @ntadmin, @lpadmin
   socket options = TCP_NODELAY
   domain master = yes
   local master = yes
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
====== snip =====

pdbedit -L | wc -l
1845

We have allot of users on the system and currently we can not add any more.

-- 
Dean Montgomery
Network Support Tech./Programmer
School District #73


More information about the samba mailing list