Last active
April 18, 2019 08:05
-
-
Save onstatus/d0e2f3cf627afc70e4609c69218b7692 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/raddb/sites-enabled/default | |
[...] | |
# Post-Authentication | |
# Once we KNOW that the user has been authenticated, there are | |
# additional steps we can take. | |
post-auth { | |
[...] | |
# | |
# Un-comment the following if you want to modify the user's object | |
# in LDAP after a successful login. | |
# | |
ldap | |
if(LDAP-Group == "net" && LDAP-Group == "cisco"){ | |
update reply { | |
cisco-avpair = "shell:priv-lvl=15", | |
} | |
} | |
else { | |
if(LDAP-Group == "net"){ | |
update control { | |
Auth-Type := Accept | |
} | |
} | |
else { | |
reject | |
} | |
} | |
[...] | |
} | |
[...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment