We have a pair of ASA 5510s (8.4.3) on which we use LDAP authentication for VPN and SSH access. On all of our Catalyst switches, which use RADIUS, we're able to set the shell:priv-lvl to 15 in the RADIUS config (2008R2 NPS). However, the best I can find on the ASAs, including in all the Cisco docs, is to abuse some other field, such as title or company, by sticking "15" into it and mapping that to the Privilege-Level RADIUS attribute in the AAA config. What I really want to do is assign anyone in an AD group L15 privs on the ASAs without having to type in a shared password. Anyone know if there's a way to do this?
If you do not mind using LDAP you can do exactly what you need without changing anything on the server infrastructure.
The way that we do ASA LDAP integration is to us the memberOf LDAP attribute to trigger a match on the value we want to edit. For cli AAA you can configure the following attribute map:
This sets the service-type to 6 (admin) for any users that log in and match that group. Next define a new AAA Server Group to use just for device administration, you do not want to break your attribute-maps for vpn users.
Now create a server entry for your LDAP server, this can be to the same server that you use for VPN or other LDAP functions.
The last line
ldap-attribute-map NetworkAdministrators
is what associates the ldap-map to your authentication server.Finally lets bring all the work together and apply it to the ASA AAA section:
So to test you can no ssh to your ASA and user your LDAP user, you should then be able to get logged in without issue. Now when you enter
enable
mode you will get prompted for a password. You will then use your unique LDAP password for authentication.Please test this completely on your equipment, because if improperly configured on your ASA could let any LDAP user admin privileges on your ASA.