Skip to content

Instantly share code, notes, and snippets.

@onstatus
Last active April 18, 2019 08:05
Show Gist options
  • Save onstatus/d0e2f3cf627afc70e4609c69218b7692 to your computer and use it in GitHub Desktop.
Save onstatus/d0e2f3cf627afc70e4609c69218b7692 to your computer and use it in GitHub Desktop.
#/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