Forum Discussion
Forward ActiveSync Requests if user is member of BLABLA
Hi
I'm trying to deploy an APM policy for Exchange ifrastructure. Here is the hard part for my knowledge. I have to check user's membership and then forward them to "deny||allow" branch. Since, ActiveSync requests doesn't follow my policy design I could not detect membership. By the way, I 've used recent iApp to create this Access Policy. It works nice but I need to implement "the hard part"
How could I go further?
4 Replies
- Cory_O
Cirrostratus
What I did was add an LDAP Query (or AD Query if you like).
At first, I pulled the memberOf attribute and created a Deny Branch Rule with the following syntax:
expr { [string tolower [mcget {session.server.landinguri}]] contains "/microsoft-server-activesync" && [string match -nocase *CN=YOURGROUPHERE,OU=GRP-WorkGRP,OU=USA-Groups,OU=USA,DC=na,DC=yourdomain,DC=com* [mcget {session.ldap.last.attr.memberOf}]] == 0 }Then I create an Allow Branch at the bottom that sets the SSO and moves forward.
The problem with the above method is that the LDAP Query pulls a literal group membership. If the user is a member of a group that is NESTED within the group mentioned in the Branch Rule above, it will not be considered. With that said, I moved on to setting an AD Attribute for those I wanted to allow or deny access.
Here's the new Deny branch I created:
(Change the attribute and return string to whatever you'd like to use)expr { [mcget {session.ldap.last.attr.extensionAttribute15}] == "External-Access-Restricted" }The second has worked very well for me so far, but feel free to experiment with either!
-Cory
- MichaelJordan_1
Nimbostratus
Hi Thanks for the answer. Can you share more details like VPE flow ? - Stanislas_Piro2
Cumulonimbus
Hi,
If you need to validate only one group membership with nested group, you can use the following filter in LDAP query:
(&(sAMAccountName=%{session.logon.last.username})(memberof:1.2.840.113556.1.4.1941:=CN=YOURGROUPHERE,OU=GRP-WorkGRP,OU=USA-Groups,OU=USA,DC=na,DC=yourdomain,DC=com)(sAMAccountType=805306368))This filter will request to AD if the user is member of the group, including nested groups.
- MichaelJordan_1
Nimbostratus
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