Examples

  1. The following example shows how run ARSLSYNC in preview mode with verbose output. Preview mode allows you to review the changes that will be made when you later run the program again in sync mode. In this example, ARSLSYNC runs in the default Content Manager OnDemand instance because you did not specify the -h or -I parameter. A list of user names to be synchronized is written to standard out, which usually defaults to being sent to the screen if you run the program interactively. When you are satisfied that your configuration is set correctly, change the -t to -s to run the program in sync mode.
        arslsync -tv
    If needed, you could send the preview output to a file instead of sending it to the screen:
        arslsync -tv > test.out
  2. The following example shows how to run ARSLSYNC in sync mode with verbose output for an instance named CMODPROD. As part of the setup, you might define a list of Content Manager OnDemand groups that should be excluded from the sync by using the ARS_LDAP_IGN_GROUPS entry in the ARS.CFG file as shown in the sample ARS.CFG file entries. In this example, ARSLSYNC will ignore the Content Manager OnDemand groups named CMOD_ADMINS and CMOD_USERADMINS.
        arslsync -I CMODPROD -sv
    In this example, you would include the ARS_LDAP_IGN_GROUPS entry in your ARS.CFG file along with your other ARS.CFG entries that are related to ARSLSYNC:
        ARS_LDAP_SERVER=adserver.yourcompany.com 
        ARS_LDAP_PORT=3268 
        ARS_LDAP_USE_SSL=FALSE 
        ARS_LDAP_BASE_DN=CN=Users,DC=steaks,DC=com
        ARS_LDAP_BIND_ATTRIBUTE=sAMAccountName 
        ARS_LDAP_MAPPED_ATTRIBUTE=sAMAccountName 
        ARS_LDAP_ALLOW_ANONYMOUS=FALSE 
        ARS_LDAP_IGN_USERIDS=ADMIN 
        ARS_LDAP_SERVER_TYPE=AD 
        ARS_LDAP_USER_FILTER=(&(objectclass=user)(memberOf=CN=CMOD_USERS,CN=Builtin,DC=steaks,DC=com))
        ARS_LDAP_GROUP_FILTER=(objectclass=group) 
        ARS_LDAP_GROUP_MAPPED_ATTRIBUTE=CN 
        ARS_LDAP_IGN_GROUPS=CMOD_ADMINS,CMOD_USERADMINS