Hopefully, you can help me out. I'm trying to figure out why I'm getting the error I get. From the debug output, it looks like it's adding the objectClass to the user (so they can get the sambaSID attribute attached to them), but it's not actually happening. The schema is, obviously, in the LDAP server in question. Any thoughts? D # smbpasswd -D 99 -a testuser Netbios name list:- my_netbios_names[0]="TESTBOX" New SMB password: Retype new SMB password: Trying to load: ldapsam:ldap://ldapmaster.byramhealthcare.com 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://ldapmaster.byramhealthcare.com (ldapsam) Found pdb backend ldapsam pdb backend ldapsam:ldap://ldapmaster.byramhealthcare.com has a valid init ldapsam_search_suffix: searching for:[(&(uid=testuser)(objectclass=sambaSamAccount))] ldapsam_open_connection: ldap://ldapmaster.byramhealthcare.com ldapsam_open_connection: connection opened ldap_connect_system: Binding to ldap server ldap://ldapmaster.byramhealthcare.com as "cn=Admin,dc=byramhealthcare,dc=com" ldap_connect_system: succesful connection to the LDAP server The LDAP server is succesful connected Unable to locate user [testuser] count=0 Finding user testuser Trying _Get_Pwnam(), username as lowercase is testuser Get_Pwnam_internals did find user [testuser]! pdb_set_username: setting username testuser, was element 11 -> now SET pdb_set_full_name: setting full name Dereks Test User,,,, was element 12 -> now SET pdb_set_unix_homedir: setting home dir /home/testuser, was NULL element 21 -> now SET pdb_set_domain: setting domain TESTBOX, was element 13 -> now DEFAULT pdb_set_user_sid: setting user sid S-1-5-21-2358132418-1227356351-887936944-3002 element 17 -> now SET pdb_set_user_sid_from_rid: setting user sid S-1-5-21-2358132418-1227356351-887936944-3002 from rid3002 ldapsam_search_one_group: searching for:[(&(objectClass=sambaGroupMapping)(gidNumber=100))] ldapsam_open: already connected to the LDAP server Did not find group for filter (&(objectClass=sambaGroupMapping)(gidNumber=100)) pdb_set_group_sid: setting group sid S-1-5-21-2358132418-1227356351-887936944-1201 element 18 -> now SET pdb_set_group_sid_from_rid: setting group sid S-1-5-21-2358132418-1227356351-887936944-1201 from rid 1201 Home server: testbox pdb_set_profile_path: setting profile path \\testbox\testuser\profile, was element 2 -> now DEFAULT Home server: testbox pdb_set_homedir: setting home dir \\testbox\testuser, was element 1 -> now DEFAULT pdb_set_dir_drive: setting dir drive , was NULL element 3 -> now DEFAULT pdb_set_logon_script: setting logon script , was element 4 -> now DEFAULT element 19 -> now DEFAULT element 19 -> now CHANGED element 19 -> now CHANGED element 31 -> now CHANGED element 30 -> now CHANGED element 10 -> now CHANGED element 20 -> now CHANGED account_policy_get: maximum password age:1814400 element 9 -> now CHANGED account_policy_get: minimum password age:0 element 8 -> now CHANGED ldapsam_search_suffix: searching for:[(&(uid=testuser)(objectclass=sambaSamAccount))] ldapsam_open: already connected to the LDAP server ldapsam_search_suffix: searching for:[(uid=testuser)] ldapsam_open: already connected to the LDAP server User exists without samba attributes: adding them element 11: SET Setting entry for user: testuser element 17: SET element 17: SET element 18: SET element 12: SET element 22: DEFAULT element 22: DEFAULT element 23: DEFAULT element 23: DEFAULT element 1: DEFAULT element 1: DEFAULT element 3: DEFAULT element 3: DEFAULT element 4: DEFAULT element 4: DEFAULT element 2: DEFAULT element 2: DEFAULT element 5: DEFAULT element 5: DEFAULT element 6: DEFAULT element 6: DEFAULT element 7: DEFAULT element 7: DEFAULT element 8: SET element 8: CHANGED element 8: SET element 8: CHANGED element 9: SET element 9: CHANGED element 9: SET element 9: CHANGED element 30: SET element 30: CHANGED element 30: SET element 30: CHANGED element 31: SET element 31: CHANGED element 31: SET element 31: CHANGED element 20: SET element 20: CHANGED element 20: SET element 20: CHANGED element 19: SET element 19: CHANGED element 19: SET element 19: CHANGED ldapsam_open: already connected to the LDAP server failed to modify user dn= uid=testuser,ou=People,dc=byramhealthcare,dc=com with: Undefined attribute type sambaSID: attribute type undefined failed to modify/add user with uid = testuser (dn = uid=testuser,ou=People,dc=byramhealthcare,dc=com) Failed to add entry for user testuser. Failed to modify password entry for user testuser bash-2.05b#