PingDirectory

Creating a user-defined virtual attribute using dsconfig in non-interactive mode

About this task

You can create a virtual attribute in non-interactive command-line mode using dsconfig.

Steps

  • To set up the Employee Password Policy Assignment virtual attribute introduced in the previous section, run the following command.

    Example:

    $ bin/dsconfig create-virtual-attribute \
      --name "Employee Password Policy Assignment" \
      --type user-defined \
      --set enabled:true \
      --set attribute-type:ds-pwp-password-policy-dn \
      --set "filter:(employeeType=employee)" \
      --set "value:cn=Employee Password Policy,cn=Password Policies,cn=config"