[Samba] How to create Computer Account without 'hands'?

Eddie Lania e.lania at elton.nl
Wed Jul 31 06:47:04 GMT 2002


Hi,

If you are using samba compiled with ldap support:

In smb.conf:
add user script = {prefix}/smbldap-useradd.pl -g {computers-group} -w %u

And substitute {prefix} with the full path to smbldap-useradd.pl
And substitute {computers-group} with the gid number of the group in
/etc/group where you want the domain computers to be a member off.

That should make it work.

Greetings,

Eddie.


> I try create computer account, use standart Windows 2000/XP function (My
> Computer\Properties ....), but:
>
> ldap_connect_system: succesful connection to the LDAP server
> [2002/07/31 20:40:27, 2] passdb/pdb_ldap.c:ldap_search_one_user(262)
> ldap_search_one_user: searching
> for:[(&(uid=3Divc-scan2$)(objectclass=3DsambaAccount))]
> [2002/07/31 20:40:27, 0] passdb/pdb_ldap.c:pdb_getsampwnam(858)
> LDAP search "(&(uid=3Divc-scan2_)(objectclass=3DsambaAccount))"
> returned 0 entries.
> [2002/07/31 20:40:27, 3] smbd/sec_ctx.c:pop_sec_ctx(420)
> pop_sec_ctx (503, 503) - sec_ctx_stack_ndx =3D 0
> [2002/07/31 20:40:27, 3] smbd/reply.c:smb_create_user(543)
> smb_create_user: Running the command
> `/usr/local/sbin/smbldap-useradd.pl ivc-scan2$' gave 126
> [2002/07/31 20:40:27, 0]
> rpc_server/srv_samr_nt.c:_api_samr_create_user(1929)
> User ivc-scan2$ does not exist in system password file (usually
> /etc/passwd). Cannot add account without a valid local system user.
>
>
> Why Samba try create USER account? I want create COMPUTER account ...
>
> Please help me.
>
> Thanks for advance.







More information about the samba mailing list