Authenticating with mod_auth_ldap
3 posts
• Page 1 of 1
Authenticating with mod_auth_ldapHi, I'm on a server that uses .htaccess files and mod_auth_ldap for authentication. So, the authentication is taken care of even before it makes it to the Xataface application. Really, the only need I have for authentication is to track which users made what changes. Do I need to make a whole new Xataface authentication plugin to accomplish this?
Re: Authenticating with mod_auth_ldapYou don't necessarily need an authentication module in this case, although you could write one. The name of the logged in user should be accessible to you via the server environment variables.
E.g. Try printing the $_SERVER variable to see where it is (i.e. print_r($_SERVER); ) Once you know how to find out who is logged in, you can use this anywhere in your application instead of using the AuthenticationTool to find the logged in user. If you wanted to be able to use the authentication tool still (e.g. to add a level of consistency with other apps) you could write an authentication module that would simply return the ldap username as the logged in username. -Steve
Re: Authenticating with mod_auth_ldapThat's what I was looking for, thanks Steve!
3 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 3 guests |