You can create a virtual attribute in non-interactive command-line mode using dsconfig. To set up the Employee Password Policy Assignment virtual attribute introduced in the previous section, run the following command. $ 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"
You can create a virtual attribute in non-interactive command-line mode using dsconfig. To set up the Employee Password Policy Assignment virtual attribute introduced in the previous section, run the following command. $ 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"