[KLUG Members] LDAP & PHP

Jeremy Leonard members@kalamazoolinux.org
Tue, 5 Aug 2003 10:46:28 -0400


So use ldap auth with apache, get the user name from the variable and search
the dir for that to get the rest of the info? Is this correct?

Also, the site uses AD for their ldap dir. it appears to me cn= the display
name for example:

First Name: Jeremy
Last Name: Leonard
Middle Initial: F.
Username: JeremyL
Full Name: Jeremy F. Leonard

Now the same user in Novell eDir. cn returns JeremyL AD seems to return
Jeremy F. Leonard. Has anyone used AD? How can I get it to search by the
username?

Thanks for all the help.



----- Original Message -----
From: "Adam Williams" <awilliam@whitemice.org>
To: <members@kalamazoolinux.org>
Sent: Tuesday, August 05, 2003 10:05 AM
Subject: Re: [KLUG Members] LDAP & PHP


> >> > I don't want to use htaccess.
> >> > I want users to login so I have their information. Not neccisarily
for
> >> > security.
> >> You can still have the information if you use htaccess. Apache stores
> >> the name of the athenticated user in a variable accessible to PHP.
> >> $username = getenv("REMOTE_USER");
> >I'd still have to maintain an .htaccess file though. Wouldn't I?
>
> You could either have a .htaccess files to supply mod_auth_ldap with the
> parameters (search base, etc...) or you could just put them in httpd.conf
> if you want the authentication to apply to everything.
>
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
> 
>