Advertisement
Guest User

Untitled

a guest
Dec 16th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. {% for user in salt['pillar.get']('freeradius:users') %}
  2. {{ user['username'] }} MD5-Password := "{{ user['password'] }}"
  3. Service-Type = NAS-Prompt-User,
  4. Fortinet-Access-Profile = "{{ user['group'] }}",
  5. Cisco-AVPair = "shell:priv-lvl=15"
  6. {% endfor %}
  7.  
  8. # sample pillar
  9.  
  10. - username: user1
  11. password: "abc123..."
  12. service-type: Administrative-User
  13. forti-access-prof: prof-admin
  14. forti-access-grp: APPDBIPCO-Access
  15. av-role: level-1
  16. av-lvl: 1
  17. - username: user2
  18. password: "123def..."
  19. service-type: Administrative-User
  20. forti-access-prof: ADM-Access
  21. forti-access-grp: ADM-Access
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement