[Samba] Domain Root Password

Gerald Cenir gcenir at globalsources.com
Thu Apr 7 06:49:27 GMT 2005

Executing smbpasswd -a root result in this message:

[root at isla root]# smbpasswd -a root
New SMB password:
Retype new SMB password:
ldapsam_modify_entry: LDAP Password could not be changed for user root: Object class violation
        entry modify failed
ldapsam_add_sam_account: failed to modify/add user with uid = root (dn = uid=root,ou=Users,dc=company,dc=com)
Failed to add entry for user root.
Failed to modify password entry for user root

There is an Administrator user however. But my machine still can't join the domain when I use the Administrator user.


-----Original Message-----
From: Ivan Toh Boon Cheong [mailto:tohbc at scs.com.sg]
Sent: Thursday, April 07, 2005 2:21 PM
To: Gerald Cenir; samba at lists.samba.org
Subject: RE: [Samba] Domain Root Password

The fact that you seeing the error saying that samba cant find an entry for the root, is that you have to create an smbuser entry for root. The smbuser database does not synchronise automatically with /etc/passwd or ldap , if I'm not wrong.Hence, the command #smbpasswd -a root, will create an smbuser entry for root, and at the same time prompting you for a smbpasswd , which is also may not be the same as the system password.

        -----Original Message-----
        From: Gerald Cenir [mailto:gcenir at globalsources.com]
        Sent: Thu 4/7/2005 2:12 PM
        To: samba at lists.samba.org
        Subject: RE: [Samba] Domain Root Password

        Thanks but when I executed the command
        #smbpasswd root
        It says that it failed to find entry for user root.
        I checked my directory using slapcat and there is a user root
        dn: uid=root,ou=Users,dc=company,dc=com
        objectClass: top
        objectClass: inetOrgPerson
        objectClass: posixAccount
        objectClass: shadowAccount
        should I delete it and add it again?
        -----Original Message-----
        From: Mark Sarria [mailto:mark at msdigitaldzines.com]
        Sent: Thursday, April 07, 2005 11:59 AM
        To: Gerald Cenir; samba at lists.samba.org
        Subject: Re: [Samba] Domain Root Password
        all you need to do is type:
        #smbpasswd root
        ----- Original Message -----
        From: "Gerald Cenir" <gcenir at globalsources.com>
        To: <samba at lists.samba.org>
        Sent: Wednesday, April 06, 2005 7:57 PM
        Subject: [Samba] Domain Root Password
        > Hi!
        >         How do we provide a password for the domain root?
        >         I am using Samba 3.0.3-5 and openldap-2.1.29-1 on a Fedora Core 2
        >         Following the steps found in
        > http://samba.idealx.org/smbldap-howto.en.html I issued to command:
        >         # smbldap-populate
        >         In the howto after executing the command, the entries were added
        > it asked to provide a password for the domain root. But in my case, it did
        > not ask for a password.
        > Regards,
        To unsubscribe from this list go to the following URL and read the
        instructions:  https://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list