problem with smbpasswd -a with ldap in HEAD

Bradley W. Langhorst brad at langhorst.com
Thu May 2 17:34:03 GMT 2002


I'm not able to add a new user to LDAP using
smbpasswd -a  because it does not seem to set the 
required RID field.


here's the -D 10 output

New SMB password:
Retype new SMB password:
Trying to load: ldapsam
Attempting to find an passdb backend to match ldapsam (ldapsam)
Found pdb backend ldapsam (at pos 4)
pdb backend ldapsam has a valid init
ldapsam_open_connection: ldap://localhost
ldap_open_connection: connection opened
ldap_connect_system: Binding to ldap server as
"cn=ldapadmin,dc=bitc,dc=unh,dc=edu"
ldap_connect_system: successful connection to the LDAP server
ldapsam_search_one_user: searching
for:[(&(uid=testuser)(objectclass=sambaAccount))]
We didn't find the user [testuser] count=0
pdb_set_username: setting username testuser, was
tdb(unnamed): tdb_brlock failed (fd=5) at offset 4 rw_type=1 lck_type=13
account_policy_get: maximum password age:1814400
ldapsam_open_connection: ldap://localhost
ldap_open_connection: connection opened
ldap_connect_system: Binding to ldap server as
"cn=ldapadmin,dc=bitc,dc=unh,dc=edu"
ldap_connect_system: successful connection to the LDAP server
ldapsam_search_one_user: searching
for:[(&(uid=testuser)(objectclass=sambaAccount))]
ldapsam_search_one_user: searching for:[uid=testuser]
Adding new user
Setting entry for user: testuser
NO user RID specified on account testuser, cannot store!
ldapsam_add_sam_account: init_ldap_from_sam failed!
Failed to add entry for user testuser.
Failed to modify password entry for user testuser

I'll probably hack on this tomorrow unless somebody advises otherwise

brad





More information about the samba-technical mailing list