Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Where does Samba 4 store user passwords? How can I import my password hashes from Samba 3 in Samba 4?

I am using my own LDAP server with samba 3, and the password hash is stored within the userpassword attribute of the user entry (passdb backend: ldapsam).

However Samba 4 uses it own LDAP server and shema, and it does not seem to work when I copy this attribute in the Samba 4 user entry.

How can I store Samba 4 passwords within an LDAP attribute?

share|improve this question

2 Answers 2

When I setup a Samba server, the passwords get store in /etc/shadow.

share|improve this answer

Where does Samba 4 store user passwords?

In it's own (integrated) LDAP-server in the attribute unicodePwd. This attribute is not available through LDAP (e.g. ldapsearch does not show it). But you can use for example ldbsearch to view the attribute.

How can I import my password hashes from Samba 3 in Samba 4?

You should use Samba Classic Upgrade, see the samba wiki for more information.

How can I store Samba 4 passwords within an LDAP attribute?

You should not modify the LDAP attribute directly. You can use samba-tool user setpassword to set a new password for a user. For the migration you should really use classic upgrade which works well with the Samba 3 LDAP backend.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.