Random Numbers function creates random numbers, you can update an entry attribute with random numbers using RandomNumbers function.
Syntax:
RandomNumbers(n) where n denotes the number of digits in the generated number for e.g RandomNumbers9 will generate a number with 9 digits
To Update a userPassword attribute of an entry with RandomNumbers you write sql statement as:
UPDATE cn=testuser4,ou=testusers,o=stooges set userPassword=RandomNumbers9
![]()
To Update userPassword for all entries in a container you write sql statement as:
UPDATE ou=testusers,o=stooges set userPassword=RandomNumbers9 subtreescope
Note: When writing update statement please make sure that you don't have any spaces after '=' operator
Related Links:
| LDAP Admin Tool Home Page | |