LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   LDAP Authentication - url (https://www.linuxquestions.org/questions/linux-newbie-8/ldap-authentication-url-888585/)

ansrewdps 06-27-2011 10:29 AM

LDAP Authentication - url
 
All,

Is there anyway when an user clicks on a url(which is infact a video link) it asks for username and password and checks with LDAP server for authentication. Finally, the user gets redirected to that url.

I'm working on RHEL 5.

Thanks

Andrew

acid_kewpie 06-27-2011 10:57 AM

well yes, but this is nothing at all to do with a link in itself. the link would need to go to some part of a web server which requires authentication. If you use standard apache ldap authentication it'll do what you want.

If you want to do this at application level not server level, then again yes you can, but that's down to totally arbitrary code you'd need to work out for yourself.

ansrewdps 06-27-2011 11:10 AM

Thanks Chris,

When I tried to do some research, I found something like this...Will something like this work??

To enable your web pages to use LDAP authentication, please follow the listed steps:
Create a file named .htaccess in the directory you wish to protect
Inside it insert something like this:
AuthzLDAPMethod ldap
AuthName "Apache LDAP Authentication"
AuthType Basic
AuthzLDAPServer ldap.cs.kent.edu
AuthzLDAPUserBase ou=People,dc=cs,dc=kent,dc=edu
AuthzLDAPUserKey uid
require user username


Thanks

Andrew

acid_kewpie 06-27-2011 11:35 AM

well that is not authentication, it's authorization, which is different. It's probably going to provide a similar experience but it's not the same.

http://httpd.apache.org/docs/2.0/mod/mod_ldap.html

ansrewdps 07-07-2011 08:37 AM

And is that how we authenticate the rstp link(video link) we've on our server???

Thanks

Andrew

acid_kewpie 07-07-2011 08:39 AM

Right, well didn't mention RTSP until then did you? Refer to to the docs for the RTSP server you are using.


All times are GMT -5. The time now is 06:17 AM.