[Samba] SAMBA 2.2.8a PDC with OpenLDAP automatcally adding machine account

Sundaram Ramasamy sun at percipia.com
Tue Jan 13 13:56:26 GMT 2004


Hi,

I am trying add w2k machine to my samba 2.28a PDC, but it's not creating
machine account auotmatically.

Here is my configuration:

   add user script = /usr/local/sbin/smbldap-useradd.pl -w -d /dev/null -g
"Domain Computers" -s /bin/false
        ldap server = 127.0.0.1
        ldap port = 389
        ldap suffix = "dc=sfgroup,dc=com"
        ldap filter = (&(uid=%u)(objectclass=sambaAccount))
        ldap admin dn = "cn=Manager,dc=sfgroup,dc=com"
        ldap ssl = no
        ldap del only sam attr = No

This command work from command line:

  /usr/local/sbin/smbldap-useradd.pl -w -d /dev/null -g "Domain Computers"
-s /bin/false ramas$

log message  :
==============
 Initializing connection to 127.0.0.1 on port 389
[2004/01/12 20:08:29, 2] passdb/pdb_ldap.c:ldap_open_connection(217)
  ldap_open_connection: connection opened
[2004/01/12 20:08:29, 0] passdb/pdb_ldap.c:ldap_connect_system(316)
  ldap_connect_system: Binding to ldap server as
"cn=Manager,dc=sfgroup,dc=com"
[2004/01/12 20:08:29, 2] passdb/pdb_ldap.c:ldap_connect_system(331)
  ldap_connect_system: succesful connection to the LDAP server
[2004/01/12 20:08:29, 2] passdb/pdb_ldap.c:ldap_search_one_user(343)
  ldap_search_one_user: searching
for:[(&(uid=ramas$)(objectclass=sambaAccount))]
[2004/01/12 20:08:29, 0] passdb/pdb_ldap.c:pdb_getsampwnam(940)
  LDAP search "(&(uid=ramas_)(objectclass=sambaAccount))" returned 0
entries.
[2004/01/12 20:08:29, 3] smbd/sec_ctx.c:pop_sec_ctx(436)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2004/01/12 20:08:29, 3] smbd/reply.c:smb_create_user(543)
  smb_create_user: Running the command `/usr/local/sbin/smbldap-useradd.pl
-w -d /dev/null -g "Domain Computers" -s /bin/false' gave 1
[2004/01/12 20:08:29, 0]
rpc_server/srv_samr_nt.c:_api_samr_create_user(1934)
  User ramas$ does not exist in system password file (usually
/etc/passwd). Cannot add account without a valid local system user.

[2004/01/12 20:08:29, 5] rpc_parse/parse_prs.c:prs_debug(60)
  000000 samr_io_r_create_user
[2004/01/12 20:08:29, 6] rpc_parse/parse_prs.c:prs_debug(60)
      000000 smb_io_pol_hnd user_pol


SR



More information about the samba mailing list