PacketFence Granular Access Control By eSubnet 20100419 R Danielli President, eSubnet rdanielli@esubnet.com ===================================admin.perm====================================== # Packet Fence Customization : Granular Access Control # by kcreechan@esubnet.com eSubnet Enterprises 2010. # # pf/conf/admin.perm # User Definitions # Syntax: # u,,{1|2|3|4|5} # # username MUST be an exact match to username in /usr/local/pf/conf/admin.conf u,rdanielli,5 u,admin,5 u,staff,4 u,hd-staff1,2 u,hd-staff2,2 u,hd-staff2,2 # Page Definitions # Syntax: # p,,{1|2|3|4|5} p,status,1 p,person,4 p,node,1 p,violation,3 p,configuration,4 p,administration,4 EOF=================================================================================== ===================================adminperm.inc====================================== "; echo "




User does not exist in admin.perms


Logging out.





"; echo ""; exit(); } if ($users[$usertype]<$pages[$current_top]) { // echo "BAD HIT"; if ($current_top!="status") { header("Location: /login.php"); } else { echo ""; } exit(); } else { echo ""; } ?> EOF=================================================================================== ===================================header.php====================================== // apend these line to the end of pf/html/admin/header.php EOF===================================================================================