Security

last person joined: 22 hours ago 

Forum to discuss Enterprise security using HPE Aruba Networking NAC solutions (ClearPass), Introspect, VIA, 360 Security Exchange, Extensions, and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

Extracting realm from User-Name as a role

This thread has been viewed 2 times
  • 1.  Extracting realm from User-Name as a role

    Posted Feb 26, 2014 08:58 AM

    Is it possible to use the realm that is sent as a request as part of role mapping or attribute mapping?

     

    We have a legacy radius configuration that uses a format of:

     

    username@role

     

    To determine the specified role that the user is requesting.  This allows an end-user to specify the desired role as part of the request (i.e. user@guest, user@staff).  I could create a separate service/role mapping for every role, but we have about 140 roles that need to be mapped.  Ideally I would like to be able to use a single service/policy that does the equivalent of:

     

    1. User authenticates with: $user@$role

    2. Authenticate $user

    3. If $role in User "Groups" attributes grant access AND return "Class=$role", else Deny

     

    Any ideas of how to implement this in a single service?  Thanks.



  • 2.  RE: Extracting realm from User-Name as a role

    EMPLOYEE
    Posted Feb 26, 2014 09:01 AM

    Try something like this:

     

    enf-domain-map.PNG

     

    OR THIS

     

    rolemap-domain-map.PNG

     

     

    Make sure that you strip the realm in your service otherwise authentication to LDAP or AD will fail.

     

    =strip-domain-at.PNG



  • 3.  RE: Extracting realm from User-Name as a role

    Posted Feb 26, 2014 09:26 AM

    Tim, that is definitely getting me closer to what I'm looking for.  The other part that I need was adding an "AND" clause to the mapping to ensure that the user is also in the group (to prevent student@student from entering student@faculty and getting @faculty access).

     

    The new mapping looks something like:

     

    (Authorization:ActiveDirectory:Groups EQUALS staff)

    AND (Authentication:Full-Username ENDS_WITH @staff)

     

    It would be nice if I could replace "staff" with %{realm}, but this is a massive improvement of my initial idea of creating separate services for every role.

     

     



  • 4.  RE: Extracting realm from User-Name as a role

    EMPLOYEE
    Posted Feb 26, 2014 09:31 AM

    Unfortunately you'd need to create a role map rule for each variation. You still only need one service though.