Bug in "add user script" and ldap in HEAD cvs

Michael Cunningham m.cunningham at xpedite.com
Mon Jan 28 09:33:57 GMT 2002


Folks,

It appears that running a script automatically when a machine 
joins the domain is broken in HEAD cvs. It says it is running the script

in the log but it doesn't in reality. 

Anyway.. here is the log of the problem.. 
-------------------------------------------------------
[2002/01/28 12:08:24, 3] smbd/reply.c:smb_create_user(543)
  smb_create_user: Running the command `/usr/sbin/useradd -d /dev/null
-g 
100 -s /bin/false -M malice2$;smbpasswd -a -m malice2$' gave 127
[2002/01/28 12:08:24, 0] 
rpc_server/srv_samr_nt.c:_api_samr_create_user(1929)
  User malice2$ does not exist in system password file (usually 
/etc/passwd). Cannot add account without a valid local system user.

Relavent smb.conf bits.. 
----------------------------------
[global] 
ldap server = ldaptest2.xpedite.com
ldap port = 389
ldap suffix = "ou=usa, dc=xpedite, dc=com" 
ldap admin dn = "uid=administrator, ou=special, ou=usa, dc=xpedite,
dc=com" 
log level = 3
ldap ssl = no 
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M
%u;smbpasswd -a -m %u

Thanks.. Mike





More information about the samba-technical mailing list