salt.modules.rbac_solaris

Module for Solaris' Role-Based Access Control

salt.modules.rbac_solaris.auth_add(user, auth)

Add authorization to user

userstring

username

authstring

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

userstring

username

computedboolean

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

userstring

username

authstring

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

userstring

username

profilestring

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

userstring

username

default_hiddenboolean

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

default_onlyboolean

return only default profile

CLI Example:

salt '*' rbac.profile_list
salt.modules.rbac_solaris.profile_rm(user, profile)

Remove profile from user

userstring

username

profilestring

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

userstring

username

rolestring

role name

CLI Example:

salt '*' rbac.role_add martine netcfg
salt '*' rbac.role_add martine netcfg,zfssnap
salt.modules.rbac_solaris.role_get(user)

List roles for user

userstring

username

CLI Example:

salt '*' rbac.role_get leo
salt.modules.rbac_solaris.role_list()

List all available roles

CLI Example:

salt '*' rbac.role_list
salt.modules.rbac_solaris.role_rm(user, role)

Remove role from user

userstring

username

rolestring

role name

CLI Example:

salt '*' rbac.role_rm jorge netcfg
salt '*' rbac.role_rm jorge netcfg,zfssnap