get_role_apps
Use the get_role_apps command to return a Tcl list of PAM application rights associated with the currently selected role.
The get_role_apps command does not query Active Directory for the role. If you change the PAM applications associated with the current role using ADEdit without saving the role to Active Directory, the PAM applications you retrieve using get_role_apps won’t match the same PAM applications for the role as stored in Active Directory.
You can only use the get_role_apps command if the currently selected zone is a classic4 or hierarchical zone. The command does not work in other types of zones.
Zone Type
Classic and hierarchical
Syntax
get_role_apps
Abbreviation
grap
Options
This command takes no options.
Arguments
This command takes no arguments.
Return Value
This command returns a Tcl list of PAM applications associated with the currently selected role. Each PAM application in the list shows the application name followed by a slash (/) and the zone in which the PAM application is defined.
Examples
get_role_apps
This example returns the list of PAM applications for the currently selected role: ftp/cz1
Related Commands
Before you use this command, you must have a currently selected role stored in memory. The following commands to view and select the role to work with:
get_rolesreturns a Tcl list of roles in the currently selected zone.list_roleslists tostdoutthe roles in the currently selected zone.new_rolecreates a new role and stores it in memory.select_roleretrieves a role from Active Directory and stores it in memory.
After you have a role stored in memory, you can use the following commands to work with that role’s attributes, delete the role, or save information for the role:
add_command_to_roleadds a UNIX command to the currently selected role.add_pamapp_to_roleadds a PAM application to the currently selected role.delete_roledeletes the selected role from Active Directory and from memory.get_role_commandsreturns a Tcl list of the UNIX commands associated with the currently selected role.get_role_fieldreads a field value from the currently selected role.list_role_rightsreturns a list of all UNIX commands and PAM applications associated with the currently selected role.remove_command_from_roleremoves a UNIX command from the currently selected role.remove_pamapp_from_roleremoves a PAM application from the currently selected role.save_rolesaves the selected role with its current settings to Active Directory.set_role_fieldsets a field value in the currently selected role.