def auth_list():
 auths = {}
 with salt.utils.fopen('/etc/security/auth_attr', 'r') as auth_attr:
  for auth in auth_attr:
   auth = auth.split(':')
   if (len(auth) != 6):
    continue
   if (auth[0][(-1):] == '.'):
    auth[0] = '{0}*'.format(auth[0])
   auths[auth[0]] = auth[3]
 return auths

def auth_list ( ) : auths = { } with salt . utils . fopen ( '/etc/security/auth_attr' , 'r' ) as auth_attr : for auth in auth_attr : auth = auth . split ( ':' ) if ( len ( auth ) != 6 ) : continue if ( auth [ 0 ] [ ( - 1 ) : ] == '.' ) : auth [ 0 ] = '{0}*' . format ( auth [ 0 ] ) auths [ auth [ 0 ] ] = auth [ 3 ] return auths
list all available authorization cli example: .