Forum Discussion
iRule that redirects based on LDAP attribute
All,
I am new to iRules so if this question has been answered I apologize. I am looking to write an iRule based on an LDAP attribute. Basically if the attribute = staff then they will be redirected to abc.com. If the attribute = student they are redirected to xyz.com. Can someone help in this scenario? If this has been answered please point me to the thread as I am unable to find it.
5 Replies
- Stanislas_Piro2
Cumulonimbus
Hi,
which product are you using??? APM?
if it is APM, you can assign pool members based on LDAP attributes in VPE...
- jasonstielow_24
Nimbostratus
Unfortunately I am only licensed for LTM, not APM.
- jasonstielow_24
Nimbostratus
We are trying to create an iRule that will route the traffic based on an LDAP query. Here is the scenario. 1.User navigates to https://webmail.cuw.edu (This is a VIP on the F5 LTM) 2.The VIP load-balances to two servers that offer up a LDAP login page. 3.Based on the LDAP account the user will get routed to one of two locations. If they are staff they will be routed to the internal Outlook server. If they are a student they will get routed to a cloud based Outlook solution. 4.In both instances the user login credentials need to be passed to the email destination so they do not have to login again. - jasonstielow_24
Nimbostratus
Ok, we have enabled the limited use of APM to see if we can get this working, can someone help me in how to configure APM for this scenario?
Hi Jason,
you could also try to put the LDAP query onto an internal web server and use some iRule based Sideband connection to access the query page results. It wouldn't require APM but some developing skills.
BTW: I'm somewhat sure that iRuleLX would support your LDAP query, too. But didn't played that much with this shiny feature to be sure.
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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