views:

34

answers:

0

I have several .htaccess files that use mod_auth_ldap for authorization to different files/directories. They bind to LDAP with a username/password.

Is there a way that I could set the AuthLDAPBindPassword in the Apache config instead of in each .htaccess, so that I don't have the password in a bunch of places? I'm thinking that I could set it as an environment variable in the Apache config, and then call that variable with the AuthLDAPBindPassword line in the .htaccess file.

Any help is appreciated.