http-authentication for s9y-backend -other way-

Creating and modifying plugins.
Post Reply
wasabi
Regular
Posts: 10
Joined: Tue Apr 18, 2006 3:21 pm
Location: Augsburg, Germany

http-authentication for s9y-backend -other way-

Post by wasabi »

Hello forum,

when I was searching for a way to authenticate our intranet-blog against my existing apache-ldap-auth I found the existing serendipity_event_httpauth. Unfortunately the only thing what happens is that the well-known little http-auth-window appears, which only authenticates against the s9y-db with their static passwords :cry:

Is there a way to retrieve user info from a successful apache-auth (performed by an ldap-auth against an MS-AD) and finally login the user this way????

Sorry for my poor English - I will add any necessary information to make things clearer :)

Kind regards an thanks in advance,

wasabi
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: http-authentication for s9y-backend -other way-

Post by garvinhicking »

Hi!

Did you have a look at the externalauth plugin, which provides LDAP authentication mirroring?

Also we are currently doing rework in the authentication plugins: http://board.s9y.org/viewtopic.php?t=8413

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
wasabi
Regular
Posts: 10
Joined: Tue Apr 18, 2006 3:21 pm
Location: Augsburg, Germany

Re:

Post by wasabi »

Hi Garvin,

many thanks for your answer - I will try the plugin you mentioned and post my experiences!

Kind regards,
wasabi/Claudio
wasabi
Regular
Posts: 10
Joined: Tue Apr 18, 2006 3:21 pm
Location: Augsburg, Germany

Re: http-authentication for s9y-backend -other way-

Post by wasabi »

garvinhicking wrote:Did you have a look at the externalauth plugin, which provides LDAP authentication mirroring?

HTH,
Garvin
Maybe I did not describe my wish very well....I use an apache 2.2.x with
mod_authn_alias combined with mod_authnz_ldap.
I need mod_authn_alias because there are 3 (!) ldap-trees where users might be hidden
My idea was to build a little authentication around the blog. Whenever John Doe authenticates there against Apache he should be transparently logged in with the blog.

~~~~~~~~~~~~~~~~~~~~

Now in German (my native language):

Es wäre schön, wenn der Username, den ich in die Apache-Authentifizierung reinklopfe, auch gleich am blog angemeldet wird. Den Kopfstand mit der apache-auth. will ich ungern wiederholen :-)

Nochmal danke und viele Grüße,
wasabi/Claudio
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: http-authentication for s9y-backend -other way-

Post by garvinhicking »

Hi!
Maybe I did not describe my wish very well....I use an apache 2.2.x with
mod_authn_alias combined with mod_authnz_ldap.
I need mod_authn_alias because there are 3 (!) ldap-trees where users might be hidden
My idea was to build a little authentication around the blog. Whenever John Doe authenticates there against Apache he should be transparently logged in with the blog.
So you can't authenticate against LDAP? In that case you must use the ldap plugin and adapt it to make the queries that the plugin does with LDAP against the Apache auth API (by checking environment variables or whatever).

If Apache can pass through the user authentication, you can try to combine the htaccess and the ldap plugin. You definitely need to create a s9y user account based on the credentials you get using the apache authentication. Without having actual SQL rows in the serendipity_authors DB table, nobody can be authenticated inside the blog.

Can't help you much further with that, I have about zero knowledge about Single-Signon-Services.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply