[Samba] smbpasswd & ldap
blacksmith
ray_n at pisem.net
Wed Sep 24 04:37:51 GMT 2003
Samba3.0rc4
When i type : smbpasswd -a ntadmin1 -D4
i have a output
---------------------------------------
Netbios name list:-
my_netbios_names[0]="ORLEAN"
Trying to load: ldapsam:ldap://127.0.0.1
Attempting to register passdb backend ldapsam
Successfully added passdb backend 'ldapsam'
Attempting to register passdb backend ldapsam_compat
Successfully added passdb backend 'ldapsam_compat'
Attempting to register passdb backend smbpasswd
Successfully added passdb backend 'smbpasswd'
Attempting to register passdb backend tdbsam
Successfully added passdb backend 'tdbsam'
Attempting to register passdb backend guest
Successfully added passdb backend 'guest'
Attempting to find an passdb backend to match ldapsam:ldap://127.0.0.1
(ldapsam)
Found pdb backend ldapsam
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=NEWALMAKOR))]
smbldap_search_suffix: searching
for:[(&(objectClass=sambaDomain)(sambaDomainName=NEWALMAKOR))]
smbldap_open_connection: connection opened
ldap_connect_system: succesful connection to the LDAP server
The LDAP server is succesful connected
pdb backend ldapsam:ldap://127.0.0.1 has a valid init
Attempting to find an passdb backend to match guest (guest)
Found pdb backend guest
pdb backend guest has a valid init
smbldap_search_suffix: searching
for:[(&(uid=ntadmin1)(objectclass=sambaSamAccount))]
ldapsam_getsampwnam: Unable to locate user [ntadmin1] count=0
Finding user ntadmin1
Trying _Get_Pwnam(), username as lowercase is ntadmin1
Trying _Get_Pwnam(), username as uppercase is NTADMIN1
Checking combinations of 0 uppercase letters in ntadmin1
Get_Pwnam_internals didn't find user [ntadmin1]!
Failed initialise SAM_ACCOUNT for user ntadmin1.
Failed to modify password entry for user ntadmin1
--------------------------------------------------------
It's look like smbpasswd try to find already exist user.
But "-a" is "add user". I think it must create account.
And if I set ldap filter in smb.conf -
"(&(uid=%u)(objectclass=sambaSamAccount))", i have a message (Bad filter)
Have anyone some idea?
PS: Sorry about bad English
More information about the samba
mailing list