Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 23. Creating Test Entries
		The 
dsctl ldifgen command creates LDIF files with different types of test entries. For example, you can use this LDIF file to populate a test instance or a sub-tree to test the performance of Directory Server with the example entries.
	
		You can pass one of the following entry type arguments to 
dsctl ldifgen:
	- users: Creates an LDIF file that contains user entries.
- groups: Creates an LDIF file that contains static group and member entries.
- cos-def: Creates an LDIF file that either contains a classic pointer or an indirect Class of Service (CoS) definition.
- cos-template: Creates an LDIF file that contains a CoS template.
- roles: Creates an LDIF file that contains managed, filtered, or indirect role entries.
- mod-load: Creates an LDIF file that contains modify operations. Import this file using the- ldapmodifyutility.
- nested: Creates an LDIF file that contains heavily nested entries in a cascading or fractal tree design.
Note
			The 
dsctl ldifgen command creates only the LDIF file. To load the file into your Directory Server instance, use the:
		- ldapmodifyutility after you created an LDIF file using the- mod-loadoption
- ldapaddutility for all other options
		Except for the 
nested entry type, if you do not provide any command line options, the dsctl ldifgen command uses an interactive mode:
	dsctl instance_name ldifgen entry_type
# dsctl instance_name ldifgen entry_type23.1. Creating an LDIF File with Example User Entries
Copier lienLien copié sur presse-papiers!
			Use the 
dsctl ldifgen users command to create an LDIF file with example user entries. For example, to create an LDIF file named /tmp/users.ldif that adds 100,000 generic users to the dc=example,dc=com suffix, enter:
		dsctl instance_name ldifgen users --suffix "dc=example,dc=com" --number 100000 --generic --ldif-file=/tmp/users.ldif
# dsctl instance_name ldifgen users --suffix "dc=example,dc=com" --number 100000 --generic --ldif-file=/tmp/users.ldif
			Note that the command creates the following organizational units (OU) and randomly assigns the users to these OUs:
		
- ou=accounting
- ou=product development
- ou=product testing
- ou=human resources
- ou=payroll
- ou=people
- ou=groups
			For further details and other options you can use to create the LDIF file, enter:
		
dsctl instance_name ldifgen users --help
# dsctl instance_name ldifgen users --help