certificate authentication & alternate authentication & REMOTE_USER variable
am 14.02.2003 13:24:43 von Sophia PetridouThis is a cryptographically signed message in MIME format.
--------------ms8679801014D6A9FDDB2186E5
Content-Type: multipart/alternative;
boundary="------------A722A0432D9E9DD5DCCA47F3"
--------------A722A0432D9E9DD5DCCA47F3
Content-Type: text/plain; charset=iso-8859-7
Content-Transfer-Encoding: 7bit
Hi all,
SERVER: Apache 1.3.27 + mod_ssl/2.8.12
My problem:
I want to authenticate clients of my domain based on certificates
and obtain my users' usenames. I try using the two methods mentioned
in http://www.modssl.org/docs/2.8/ssl_howto.html#ToC9
but they don't seem to be completely equivalent.
Specifically, when I try without SSLRequire and Load an authentication
module such as mod_auth_ldap or mod_auth_mysql (in order to offer
an alternate authentication schema - Satisfy any), in the browser,
a dialog window appears asking for Username/Password just after the
window for chosing the certificate.
This window (asking for username/password) does not appear
1. when I use SSLRequire directive and load other modules (but
REMOTE_USER variable is empty) and
2. when I use AuthUserFile directive and don't load the modules (but I
can't offer alternate authentication)
Apache configuration
------------------------
#LoadModule ldap_auth_module libexec/mod_auth_ldap.so
SSLCACertificatePath /etc/apache/conf/ssl.crt
SSLCACertificateFile /etc/apache/conf/ssl.crt/ca-bundle.crt
SSLVerifyClient 0
AllowOverride None
Options None
Order deny,allow
Deny from all
Allow from localnetwork
SSLVerifyClient require
SSLVerifyDepth 2
SSLOptions +FakeBasicAuth +StdEnvVars
SSLRequireSSL
#SSLRequire %{SSL_CLIENT_S_DN_O} eq "My Organization" and \
# %{SSL_CLIENT_S_DN_OU} eq "My Departement"
AuthName "Certificate Authentication"
AuthType Basic
AuthUserFile /path/to/httpd.passwd
require valid-user
#Satisfy any
#AuthType Basic
#AuthName "LDAP Authentication"
#LDAP_Server MyLdapServer
#LDAP_Port 389
#Base_DN "o=MyOrganization,c=GR"
#UID_Attr uid
#require valid-user
thanks in advance
-sophia
--------------A722A0432D9E9DD5DCCA47F3
Content-Type: text/html; charset=iso-8859-7
Content-Transfer-Encoding: 7bit
Hi all,
SERVER: Apache 1.3.27 + mod_ssl/2.8.12
My problem:
I want to authenticate clients of my domain based on certificates
and obtain my users' usenames. I try using the two methods mentioned
in
but they don't seem to be completely equivalent.
Specifically, when I try without SSLRequire and Load an authentication
module such as mod_auth_ldap or mod_auth_mysql (in order to offer
an alternate authentication schema - Satisfy any), in the browser,
a dialog window appears asking for Username/Password just after the
window for chosing the certificate.
This window (asking for username/password) does not appear
1. when I use SSLRequire directive and load other modules (but REMOTE_USER
variable is empty) and
2. when I use AuthUserFile directive and don't load the modules (but
I can't offer alternate authentication)
Apache configuration
------------------------
#LoadModule ldap_auth_module libexec/mod_auth_ldap.so
SSLCACertificatePath /etc/apache/conf/ssl.crt
SSLCACertificateFile /etc/apache/conf/ssl.crt/ca-bundle.crt
SSLVerifyClient 0
<Directory "/apache/secure/area">
AllowOverride None
Options None
Order deny,allow
Deny from all
Allow from localnetwork
SSLVerifyClient require
SSLVerifyDepth 2
SSLOptions +FakeBasicAuth
+StdEnvVars
SSLRequireSSL
#SSLRequire %{SSL_CLIENT_S_DN_O}
eq "My Organization" and \
#
%{SSL_CLIENT_S_DN_OU} eq "My Departement"
AuthName
"Certificate Authentication"
AuthType
Basic
AuthUserFile
/path/to/httpd.passwd
require
valid-user
#Satisfy any
#AuthType Basic
#AuthName "LDAP Authentication"
#LDAP_Server MyLdapServer
#LDAP_Port 389
#Base_DN "o=MyOrganization,c=GR"
#UID_Attr uid
#require valid-user
</Directory>
thanks in advance
-sophia
--------------A722A0432D9E9DD5DCCA47F3--
--------------ms8679801014D6A9FDDB2186E5
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIIPEgYJKoZIhvcNAQcCoIIPAzCCDv8CAQExCzAJBgUrDgMCGgUAMAsGCSqG SIb3DQEHAaCC
DK0wggYbMIIFA6ADAgECAgUBAAAADTANBgkqhkiG9w0BAQQFADCByDELMAkG A1UEB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OTr+lx7aHvX51YAnaMVGJprN/fsvl 0+tP14Bx10Cr
HduRoqeCQfXe60KTWnf6p86+DNocGCVxlq7aUafeXj7U8xoqSL7/5Phj/XZW CTHqYKPKSRLQ
Jj7Z54DEcTGCAi0wggIpAgEBMIHSMIHIMQswCQYDVQQGEwJHUjEtMCsGA1UE ChMkQXJpc3Rv
dGxlIFVuaXZlcnNpdHkgb2YgVGhlc3NhbG9uaWtpMSkwJwYDVQQLEyBDZW50 cmFsIENvbW11
bmljYXRpb24gRmFjaWxpdGllczE0MDIGA1UEAxMrQVVUSCBOb2MgVXNlcnMg Q2VydGlmaWNh
dGlvbiBBdXRob3JpdHkgMjAwMzEpMCcGCSqGSIb3DQEJARYabm9jdXNlcnNj YTIwMDNAY2Nm
LmF1dGguZ3ICBQEAAAANMAkGBSsOAwIaBQCggbEwGAYJKoZIhvcNAQkDMQsG CSqGSIb3DQEH
ATAcBgkqhkiG9w0BCQUxDxcNMDMwMjE0MTIyNDQzWjAjBgkqhkiG9w0BCQQx FgQU2ayRVuxT
HiiIfJe6CWYyXNcDSwwwUgYJKoZIhvcNAQkPMUUwQzAKBggqhkiG9w0DBzAO BggqhkiG9w0D
AgICAIAwBwYFKw4DAgcwDQYIKoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgw DQYJKoZIhvcN
AQEBBQAEgYCDyu/khX6vnRNdt/zeFxmAZZyq7Y/dKGuyuHiRCnlpddooXYa4 49x2mqsiJRKL
8EBChav3rIW7clPqmwvzM7h3KloJupqSX8e/eml1VKNvrYHqXSG9tDAuMtoA UfixDoqmKs95
0aw3YmE/LjCwb4qAFIBeBiiJRswK62hLwPtjuw==
--------------ms8679801014D6A9FDDB2186E5--
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org