SSLusername
am 30.06.2008 18:23:15 von mdn teo------=_Part_8104_12555214.1214842995140
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,
I'm working with mod_authnz_ldap, mod_ssl authenticating with certificates
and I've got some questions.
This is my situation (some directives are omitted)
------------------------------------------------------------ ------------------------------------
SSLVerifyClient require
SSLOptions +ExportCertData +StdEnvVars +StrictRequire +FakeBasicAuth
SSLRequireSSL
AuthType basic
AuthName "private area"
AuthzLDAPAuthoritative off
AuthBasicProvider ldap
AuthLDAPBindDN uid=myuser,dc=example,dc=com
AuthLDAPBindPassword mypassword
AuthLDAPUrl "
ldap://myldaphost:389/ou=users,dc=example,dc=com?subjectDN?s ub?(objectclass=
*)"
Require ldap-attribute employeeType=active
------------------------------------------------------------ ------------------------------------
This configuration is working, the user in found in LDAP searching for his
"subjectDN", as set by the option "+FakeBasicAuth", but I want to make the
LDAP SEARCH not with the subjectDN, but other fields of the certificate.
If I use these options:
------------------------------------------------------------ ------------------------------------
SSLVerifyClient require
SSLUserName SSL_CLIENT_S_DN_CN
SSLOptions +ExportCertData +StdEnvVars +StrictRequire -FakeBasicAuth
SSLRequireSSL
AuthType basic
AuthName "private area"
AuthzLDAPAuthoritative off
AuthBasicProvider ldap
AuthLDAPBindDN uid=myuser,dc=example,dc=com
AuthLDAPBindPassword mypassword
AuthLDAPUrl "
ldap://myldaphost:389/ou=users,dc=example,dc=com?cn?sub?(obj ectclass=*)"
Require ldap-attribute employeeType=active
------------------------------------------------------------ ------------------------------------
The mod_ssl does his work, as in my log files I see the "CN" logges as "%u",
but as soon as I call "/private", the "%u" becomes an empty variable and I
can't use it in the next authentication module.
Is there something I'm missing?
Second question is: is it possible to use Environment variables in the
directives AuthLDAPUrl, "require ldap-filter" or "require ldap-attribute"?
Something like this:
------------------------------------------------------------ ------------------------------------
AuthLDAPUrl "
ldap://myldaphost:389/ou=users,dc=example,dc=com?subjectDN?s ub?(mail=%{SSL_CLIENT_S_DN_Email
)"
or
Require ldap-filter
"(&(mail=%{SSL_CLIENT_S_DN_Email})(CN=%{SSL_CLIENT_S_DN_CN}) )"
or
Require ldap-attribute mail=%{SSL_CLIENT_S_DN_Email}
------------------------------------------------------------ ------------------------------------
Last question is: As described in
http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#ssloptions , regarding
"fakebasicauth", the password for the user must be set to "password", is it
strictly necessary? or is there a way to set a different password, or
verify issuerDN and subjectDN, against a fake password?
------=_Part_8104_12555214.1214842995140
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I'm working with mod_authnz_ldap, mod_ssl authenticating with certificates and I've got some questions.
AuthName "private area"
AuthzLDAPAuthoritative off
AuthLDAPBindDN uid=myuser,dc=example,dc=com
AuthName "private area"
AuthzLDAPAuthoritative off
AuthLDAPBindDN uid=myuser,dc=example,dc=com
------=_Part_8104_12555214.1214842995140--
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org