• You can also use dsconfig in non-interactive command-line mode to create a virtual attribute. The following command sets up the Employee Password Policy Assignment virtual attribute introduced in the previous section:
    $ 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"