[Samba] pdbedit + ldap doesn't work

Umberto Zanatta uzanatta at provincia.treviso.it
Fri May 21 15:09:01 GMT 2004


I have to add new user to samba; I've just upgrade the system to 3.0.4
and smbldap-tools 3.0.4;

# smbldap-useradd pippo
# smblap-usershow pippo
n: uid=pippo,ou=People,o=PROVTV
objectClass: top,inetOrgPerson,posixAccount,shadowAccount
cn: pippo
sn: pippo
uid: pippo
uidNumber: 4000
gidNumber: 513
homeDirectory: /home//pippo
loginShell: /bin/bash
gecos: System User
description: System User
userPassword: {crypt}x

# pdbedit -a -u pippo
ldapsam_add_sam_account: Adding new user
init_ldap_from_sam: Setting entry for user: pippo
ldapsam_modify_entry: Failed to add user dn= uid=pippo,ou=People,
o=PROVTV with: Already exists

ldapsam_add_sam_account: failed to modify/add user with uid = pippo (dn
= uid=pippo,ou=People,o=PROVTV)
Unable to add user! (does it already exist?)

The system's tryng to add a new uid!

# smbldap-userdel pippo
# pdbedit -a -u pippo
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=PROVTVNT))]
smbldap_open_connection: connection opened
ldap_connect_system: succesful connection to the LDAP server
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=PROVTVNT))]
smbldap_open_connection: connection opened
ldap_connect_system: succesful connection to the LDAP server
could not create account to add new user pippo

any idea?



More information about the samba mailing list