Jason Williams
2003-May-20 17:19 UTC
[Samba] Samba+PDC+LDAP...some success...need troubleshooting though
Morning everyone. Well, I was finally able to add a workstation to my Samba PDC running LDAP this morning. However, it is not actually doing it the way I would like to. The problem I was running into is that the script I specified in my smb.conf file to automatically add machine accounts is not working correctly. In order to add my test machine to the PDC today, I had to manually enter it. Although this is not too bad, I would prefer it be done automatically through the script. So what I am attempting to do know is find out why computers are not being added automatically via the script. I thought i'd post a few things here and see if anyone has any ideas. Here goes: My script in smb.conf: add user script = /usr/local/sbin/smbldap-useradd.pl -w -d /dev/null -c "Machine Account" -s /bin/false %u domain admin group = @Administrators I created a user called ldapadmin and added the account to the Administrators group. I made sure the smbldap-useradd.pl script had root Administrators rights to it. I'm a little unclear as to why the script is not working correctly. Anyone have any thoughts? Thanks everyone. Jason