Softerra LDAP Administrator Help | Show AllHide All |
The function generates a random string of a specified length.
The following example modifies the userPassword attribute of all users in CN=Terminated Employees,DC=company and set it to the value of six random characters.
UPDATE "CN=Terminated Employees,DC=company" SET $userPassword=RANDOM_STRING(6); WHERE $objectClass='user' AND $objectCategory='Person';