Module for Solaris' Role-Based Access Control
salt.modules.rbac_solaris.
auth_add
(user, auth)Add authorization to user
username
authorization name
CLI Example:
salt '*' rbac.auth_add martine solaris.zone.manage
salt '*' rbac.auth_add martine solaris.zone.manage,solaris.mail.mailq
salt.modules.rbac_solaris.
auth_get
(user, computed=True)List authorization for user
username
merge results from auths command into data from user_attr
CLI Example:
salt '*' rbac.auth_get leo
salt.modules.rbac_solaris.
auth_list
()List all available authorization
CLI Example:
salt '*' rbac.auth_list
salt.modules.rbac_solaris.
auth_rm
(user, auth)Remove authorization from user
username
authorization name
CLI Example:
salt '*' rbac.auth_rm jorge solaris.zone.manage
salt '*' rbac.auth_rm jorge solaris.zone.manage,solaris.mail.mailq
salt.modules.rbac_solaris.
profile_add
(user, profile)Add profile to user
username
profile name
CLI Example:
salt '*' rbac.profile_add martine 'Primary Administrator'
salt '*' rbac.profile_add martine 'User Management,User Security'
salt.modules.rbac_solaris.
profile_get
(user, default_hidden=True)List profiles for user
username
hide default profiles
CLI Example:
salt '*' rbac.profile_get leo
salt '*' rbac.profile_get leo default_hidden=False
salt.modules.rbac_solaris.
profile_list
(default_only=False)List all available profiles
return only default profile
CLI Example:
salt '*' rbac.profile_list
salt.modules.rbac_solaris.
profile_rm
(user, profile)Remove profile from user
username
profile name
CLI Example:
salt '*' rbac.profile_rm jorge 'Primary Administrator'
salt '*' rbac.profile_rm jorge 'User Management,User Security'
salt.modules.rbac_solaris.
role_add
(user, role)Add role to user
username
role name
CLI Example:
salt '*' rbac.role_add martine netcfg
salt '*' rbac.role_add martine netcfg,zfssnap