Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to configure Apache to use the host machine's user accounts for authentication? Say I've got Apache running on a vanilla OS X install and want to basically allow admin users to authenticate with their system username/password.

Even pointing me towards the proper name for this type of authentication would help in my search (and I'll of course update my progress here in the spirit of StackExchange questions).

share|improve this question
    
So far it looks like what I need is to use mod_auth_external and then somehow connect it up with OS X's user auth system. Does that sound right? Any ideas on next steps? –  Wilco Mar 26 '11 at 23:49

1 Answer 1

up vote 1 down vote accepted

You could use mod_auth_external together with pwauth. It should "just work" if configured correctly, because pwauth is known to work on OSX using authentication via PAM.

Be sure to think about the security risks of using system passwords for web logins. At the very least, you should ensure that whatever you're securing in this way is accessible only via https and not vanilla http.

share|improve this answer
    
Thanks! This is exactly what I ended up doing and it works beautifully! –  Wilco Nov 6 '12 at 0:37

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.