Hi everybody I've tried to setup Samba 2.2.3 + OpenLDAP as a PDC for Win2000. While adding a machine-account for one workstation with pdbedit -a -m -u <wks-name>$ I get the following errormessage: norge:/etc/openldap # pdbedit -a -m -u jzwork3$ pdb_getsampwuid: getpwuid(60000) return NULL. User does not exist in Unix accounts! username: jzwork3$ user ID/Group: 605/201 user RID/GRID: 121000/121001 Full Name: jzwork3 Home Directory: \\NORGE\jzwork3_ HomeDir Drive: Logon Script: Profile Path: \\NORGE\jzwork3_\profile norge:/etc/openldap # Look at the RID and GRID!! This should be RID = 2 * uid + 1000 = 2210 GRID = 2 * gid + 1001 = 1403 I found this information how samba calculates the RID and GRID somewhere on the internet and it is true for normal useraccounts. While joining the domain from Win2000 the server searches for RID = 2210 and GRID = 1403. To succesfully join the domain I had to edit the RID/GRID in my LDAP-Tree. I think this is a bug in pdbedit, but I'm not sure. Perhaps I've done something wrong. Does anybody have the same or likewise problem?? jens zechlin
Jens Zechlin wrote:> > Hi everybody > I've tried to setup Samba 2.2.3 + OpenLDAP as a PDC for Win2000. While > adding a machine-account for one workstation with pdbedit -a -m -u > <wks-name>$ I get the following errormessage: > > norge:/etc/openldap # pdbedit -a -m -u jzwork3$ > pdb_getsampwuid: getpwuid(60000) return NULL. User does not exist in > Unix accounts! username: jzwork3$In 2.2 I think you are much better to stick to smbpasswd - pdbedit (and the passdb subsystem beneth it) has had a lot of fixes/updates/new features in HEAD. What you are seeing is an early implementation of the 'machine accounts not in /etc/passwd' idea that HEAD implements (properly) as 'non unix accounts'. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net