Hi. I'm currently doing a modified version of mapping roles by group membership by using a custom LDAP expression instead. This limits what the SSL VPN is looking for and basically takes it easy(ier?) on the AD server (and its admins!).
Everything works great so far, but now I want to set up an 'everyone else' role for users that authenticate to the AD, yet don't match one of the specific roles. The Custom Expression match doesn't have a "not" option like the username match does. Any suggestions on how I can go about this?
Thanks!
Solved! Go to Solution.
I think the issue is your logic. If you create two expressions -
ntdomain != "domain1"
ntdomain != "domain2"
and then use both those in the role mapping configuration, then all users will match one or both of those expressions. The users in "domain1" will match the second expression and the users in "domain2" will match the first expression. Try a single expression -
(ntdomain != "domain1") AND (ntdomain != "domain2")
Ken
Never tested this, but can't you just change the = statement to != maybe ?
Dennis
Brilliant! I was definitely thinking too complex... But while that should work, it doesn't appear to be working correctly. My main goal is to have everyone get this 'catch all' role except for users that match to a particular 'web only' type of access role because I don't want them to get Network Connect. So I created two new expressions to negate the ones that match to those users. The expressions look like this:
ntdomain != "domain1"
ntdomain != "domain2"
But when I made adjustments to it this morning and refreshed the roles for the realm, everyone was assgined this 'catch all' role, including the ones that I don't want to get it. Or should I be waiting for someone to re-login to see how the new role mapping actually plays out?
I think the issue is your logic. If you create two expressions -
ntdomain != "domain1"
ntdomain != "domain2"
and then use both those in the role mapping configuration, then all users will match one or both of those expressions. The users in "domain1" will match the second expression and the users in "domain2" will match the first expression. Try a single expression -
(ntdomain != "domain1") AND (ntdomain != "domain2")
Ken
Absolutely agree about the policy tracing. It really helped me out a TON when I was first setting up this device last year. Unfortuantely for this issue, I never know when (or who) someone is going to try to log in on order to set up the trace, plus they're overseas so we have a time difference issue going on as well.
But all's good now. Thanks again!