Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-2632: adedit script for a list of computer roles in the joined zone with the option to add the current computer

Centrify DirectControl ,  

12 April,16 at 11:08 AM

Applies to: All versions of Centrify DirectControl

Question:

Is it possible to create an adedit script that presents a list of computer roles in the joined zone and give them the option to add the current computer to one or more of the available roles?

Answer:

Use the following code.

slz CN=Global,CN=Zones,OU=Unix,DC=centrifyimage,DC=vms
>get_child_zones -crole
{CN=Global,CN=Zones,OU=Unix,DC=centrifyimage,DC=vms/Apache Servers} {CN=Global,CN=Zones,OU=Unix,DC=centrifyimage,DC=vms/Oracle Servers}
#SELECT COMPUTER ROLE
>slz "CN=Global,CN=Zones,OU=Unix,DC=centrifyimage,DC=vms/Apache Servers"
#GET COMPUTERS ATTRIBUTE FROM COMPUTER ROLE
>gzf computers
Apache-Servers@centrifyimage.vms

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.