Forum Discussion
Tarmo_Oja_95406
Nimbostratus
Jul 20, 2005LDAP auth depending on uri
hi,
Is there a way to start authentication (prompting HTTP auth window to user and forwarding credentials to LDAP backend) only when uri starts with /need_auth/ but not /public and /? ...
Tao_Liu_90341
Jul 20, 2005Historic F5 Account
you can make copy of rule _sys_auth_ldap in profile_base.conf. Change the corresponding section like bellow. And apply this rule to the auth profile.
when HTTP_REQUEST {
if {[HTTP::uri] contains "need_auth"} {
AUTH::username_credential $tmm_auth_ldap_sid [HTTP::username]
AUTH::password_credential $tmm_auth_ldap_sid [HTTP::password]
AUTH::authenticate $tmm_auth_ldap_sid
HTTP::collect
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects