* Lukas Meyer <[EMAIL PROTECTED]> nulis:

> Hello
> 
> I set up a Samba 3 PDC with ldap backend. I created an script that adds 
> machine accounts. First it adds the machine account to /etc/passwd and 
> then it creates the user in ldap with smbpasswd -a -m machine.
> 
> If I run the script by hand, it works and the account has been added. 
> After that I can join the domain without any problems. Now I want to 
> make this machine account creation on the fly. So I added the script to 
> smb.conf as add user script = /path/to/createmachineaccount.sh.
> 
> If I try to join a domain with a workstation that hasn't any account, 
> the script creates the machine account but on error occurs that I can't 
> log in because the account doesn't exist. After that if I try to join 
> again, the logon process works because it found the machine account. 

IMO it was because samba can not 'see' changes in ldap. You have to set sleep time in 
add machine script?

btw, why not putting posix account in ldap directory intead of file?


--beast

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to