The error 'Object class violation' occurs when using smbpasswd -a with ldap backend - posixAccount is not added as an objectclass for the new user
This is the only error I get: # bin/smbpasswd -a pcap New SMB password: Retype new SMB password: LDAP Password could not be changed for user pcap: Unknown error Added user pcap. OpenLDAP 2.1.20 (SAMBA_3_0 cvs snapshot from today). The user pcap is in /etc/passwd and the user is added to the LDAP directory. The LDIF created is dn: uid=pcap, ou=people, dc=plainjoe,dc=org sambaPwdLastSet: 1061868170 sambaAcctFlags: [U ] sambaPwdMustChange: 2147483647 objectClass: sambaSamAccount objectClass: account uid: pcap sambaSID: S-1-5-21-2547222302-1596225915-2414751004-1154 sambaPwdCanChange: 1061868170 sambaNTPassword: 0CB6948805F797BF2A82807973B89537 sambaPrimaryGroupSID: S-1-5-21-2547222302-1596225915-2414751004-1155 sambaLMPassword: 01FC5A6BE7BC6929AAD3B435B51404EE
originally reported against 3.0.0beta3. CLeaning out non-production release versions.
database cleanup