I posted this question on serverfault.com, but I had no answer, so I’m trying here…
Is it possible to mix mod_ssl and mod_auth_ldap so that the authentication is done with the client certificate and authorizations with mod_auth_ldap (Require ldap-group)? If so, can you give me some pointer? Thanks in advance
I posted this question on serverfault.com, but I had no answer, so I’m trying
Share
OK, for those interested, apache requires the presence of an AuthType directive and the validation of the username by some module.
So I have written a very short module that accepts AuthType Any and accepts any username.
The configuration looks like that:
UPDATE:
The code of the module is listed below. It defines the following directives:
AuthAnyAuthoritative on/off
AuthAnyCheckBasic on/off
If AuthAnyCheckBasic is on, the module will check that the username obtained from the certificate matches the on in the Authorization header.