Apache
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Apache

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 4th, 2008, 07:01 AM
Graham Leggett
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Client authorization against LDAP using client certificates

M¼ller Johannes wrote:

we want to use client authorization against LDAP using client certificates on Apache webserver 2.2.
Unfortunately this is not possible with Apache webserver at the current state of development.
There have been third party modules (ModXAuthLDAP, mod_authz_ldap) in the past which did this task quite well.
But they €™t been updated for years and therefore do not work with httpd newer than 2.0.
Therefore my company has put some effort in developing a reasonable solution for its needs.

I think the thing that is missing is that the FakeBasicAuth option
within mod_ssl should flag the request to say that a password isn't
necessary.

mod_authnz_ldap (and others) should then be taught to recognise this
flag within the request, and not test the password if this is the case.

Regards,
Graham
--

Reply With Quote
  #2  
Old July 4th, 2008, 10:20 AM
Graham Leggett
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
AW: Client authorization against LDAP using client certificates

M Johannes wrote:

So far so good, but how to handle fallback to basic authentication if the client has no certificate (SSLVerifyClient optional)?
If we created a new module mod_auth_cert and there is no username from mod_ssl we would like to call mod_auth_basic.
If i understood you right, i would hook mod_auth_cert before mod_auth_basic and let it react on AuthType Basic.
If mod_auth_cert then returns DECLINED, mod_auth_basic runs and does basic authentication.

That would work, but i personally don't like it.
If i configure "AuthType Basic" i want to do basic auth, not cert auth.
If i created a new module i would prefer configuring "AuthType Cert" and doing something like "AuthCertFallback "

Hmmm this looks a little bit too cert specific.

Tt would be cool if we could support auth fallback in an arbitrary
fashion. For example, if a user has a cert, use that as their identity,
otherwise use their session identity from mod_auth_form, or failing that
use basic authentication.

If all of them fail, then pick one of them to handle the "access denied"
part (for example request a basic authentication username and password,
or let mod_auth_form display a login form, whatever).

You might do something like this:

AuthType certificate, form, basic

Regards,
Graham
--

Reply With Quote
  #3  
Old July 4th, 2008, 12:01 PM
Henrik Nordstrom
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
AW: AW: Client authorization against LDAP using clientcertificates

fre, 2008-07-04 at 15:43 +0200, M¼ller Johannes wrote:

To support more than one authentication method at a time we would have to do fallback like "AuthType Cert, Basic".

for that matter "AuthType Digest, Basic".

Regards
Henrik

PGP SIGNATURE
Version: GnuPG v1.4.7 (GNU/Linux)




zkFg5U5jU+4=
=3zi4
PGP SIGNATURE

Reply With Quote
  #4  
Old July 4th, 2008, 12:40 PM
Graham Leggett
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
AW: AW: Client authorization against LDAP using client certificates

M Johannes wrote:

Maybe let's concentrate on non-third-party modules.
Basically there is mod_auth_basic and mod_auth_digest on the top level followed by their providers on the second level.

mod_auth_form is part of httpd trunk, and is not a third party module.

Regards,
Graham
--

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Apache > Client authorization against LDAP using client certificates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT