Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am experimenting with LDAP. As I see it, apache uses the Unix password field to get the credentials and samba the field that is specific for samba.

I just use the LDAP server for a single server, LDAP runs in the same server. What I wanted is to use the same password for apache and samba (and mediawiki etc). Is it possible? If not, are there any alternatives?


share|improve this question

Apache can be setup to use an LDAP directory using mod_auth_ldap. ( Samba, I guess you figured out, can use an external LDAP source.

Hope this helps,

share|improve this answer

Yes, just make the passwords the same. You can't have them all read from the same password attribute though, which seems to be what your thinking. They use different hashing algorithms to create their passwords.

share|improve this answer

Your Answer


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.