This shows you the differences between two versions of the page.
|
documentation:1.2:rbac [2011/11/09 12:09] 127.0.0.1 external edit |
documentation:1.2:rbac [2012/04/19 16:36] (current) xguimard |
||
|---|---|---|---|
| Line 43: | Line 43: | ||
| So he is "user" on application "BBB" and "admin" on application "AAA". | So he is "user" on application "BBB" and "admin" on application "AAA". | ||
| - | Now we have to send to right role to the right application trough LemonLDAP::NG. | + | Now we have to send the right role to the right application trough LemonLDAP::NG. |
| First step: create a rule to grant access only if the user has a role in the application: | First step: create a rule to grant access only if the user has a role in the application: | ||
| Line 55: | Line 55: | ||
| </code> | </code> | ||
| - | Second step: get the role name for the application. We will use the macros to do that. Create two macros (inside ''Variablles'' » ''Macros''): | + | Second step: get the role name for the application. We will use the macros to do that. Create two macros (inside ''Variables'' » ''Macros''): |
| * For application AAA: | * For application AAA: | ||
| <code> | <code> | ||