[Samba] Smbpasswd -m -x not working, "object class violation" error

Daniel Wilson daniel.wilson at sunderland.ac.uk
Tue Feb 14 15:46:36 GMT 2006


Have you checkes the Sun LDAP errors.log file for the specific object 
class violation? Usually at <install_dir>/slapd-<hostname>/logs/errors.log

Daniel Wilson
Systems Manager
Student and Learning Support
University of Sunderland
Tel: 0191 515 2695



Andrés Yacopino wrote:

>I have deployed a samba server with Sun Java Ldap Directory.
>
>I sucessfully create users and deleted them when ldap delete dn=yes in
>smb.conf, but when ldap delete dn=no i obtain this error when i issue a
>smbpasswd -m -x command:
>
>ldapsam_delete_entry: Could not delete attributes for
>uid=aprueba$,ou=computers,
>o=acasalud.com.ar,dc=acasalud,dc=com,dc=ar, error: Object class violation ()
>Failed to delete entry for user aprueba$.
>Failed to modify password entry for user aprueba$
>
>My smb.conf is:
>
>[global]
>
>   workgroup = ACASALUDROS
>   server string = Sun Samba Server
>   security = user
>   dos filetimes = yes
>   time offset = -360
>   load printers = yes
>   printcap name = /etc/printcap
>   printing = cups
>   guest account = guest
>   log file = /usr/local/samba/var/log.%m
>   log level = 5
>   max log size = 50
>   null passwords = yes
>   encrypt passwords = yes
>   ldap password sync = yes
>   unix password sync = yes
>   username level = 2
>   password level = 0
>   passwd program = /usr/bin/passwd %u
>   passwd chat = *New* password* %n\n *new* password* %n\n *successfully*
>        idmap backend = ldapsam:ldap://localhost:389
>        passdb backend = ldapsam:ldap://localhost:389
>        ldap admin dn = cn=Directory Manager
>        ldap suffix = o=acasalud.com.ar,dc=acasalud,dc=com,dc=ar
>        ldap user suffix = ou=people
>        ldap group suffix = ou=groups
>        ldap machine suffix = ou=computers
>        ldap idmap suffix = ou=idmap
>        ldap delete dn = no
>   socket options = TCP_NODELAY=0
>   wins server = 10.11.0.2
>   dns proxy = no
>
>what is wrong?
>
>Is that works only when
>
>   preferred master = yes
>   domain master = yes
>   local master = yes
>   domain logons = yes
>
>are yes?
>Any other ideas?
>
>Thanks a lot.
>
>
>--
>Andrés Yacopino
>  
>


More information about the samba mailing list