dbgen.pl man page

dbgen.pl — Random LDIF database creator


dbgen.pl [Options] -o output_file -n number


Random LDIF database creator.  Used to generate large LDIF files for use in testing the Directory Server.


A summary of options is included below:


Verbose output


Quiet output

-s suffix

LDAP suffix. Default is 'dc=example,dc=com'

-c CN naming style

Naming style for RDN's. Default is UID

-O organizationalPersons

Organizationalpersons objectClass. Default is inetOrgPerson.

-p piranha style ACI

Piranha style aci. Default is barracua

-r seed

Seed number for random number generator


Print extra entries for orgchart


Suppress printing of the preamble


Suppress printing of Organizational Units


Location of directory containing data files, default is /usr/share/dirsrv/data

-n number

Number of entries to be generated

-b number

Beginning number for RDN e.g. uid=1 (ending number is -n value + beginning number)

-j number

0 pad numbers used in RDN to this many digits e.g. with 4 1 becomes 0001 (ignored unless -b number is specified)


Add groups containing uniquemembers; generate a group for every 100 user entries created that contains the 100 members


dbgen.pl was written by the 389 Project.

Reporting Bugs

Report bugs to https://pagure.io/389-ds-base/new_issue


March 31, 2017