Apache et LDAP

Pour permetre un connexion à LDAP(S) pour accéder à une page, il est possible d’utiliser la directive AuthBasicProvider.

<DirectoryMatch /usr/(share|libexec)/BackupPC/>

AuthName "BackupPC admin & LDAP Protected"

# For special user(s)
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users

# all authorized users from UserFile (file) AND LDAP (ldap)
AuthBasicProvider file ldap

# LDAP setting
AuthLDAPURL ldap://ldap.your.company:389/dc=company,dc=org?uid
#AuthLDAPURL ldaps://ldap. your.company.org:636/dc=company,dc=org?uid

# General settings
Require valid-user
#Satisfy any

</DirectoryMatch>
> Partager <