Random Numbers Function (Version 3.2 onwards)


Random Numbers function creates random numbers, you can update an entry attribute with random numbers using RandomNumbers function.



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


Ldap Update with Random Numbers Update Ldap with Random Numbers



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:

Current Timestamp Function

Current Start of Day Function

Current End of Day Function

Random Alphabets Function


Ldapsoft Home page LDAP Admin Tool Home Page