LDAP Server : Import Test Users
php LDAP admin is a user friendly client to operate LDAP server. If you want to use LDAP user data for your task, you might need dummy users. There are multiple reasons such as security policy when real users' data cannot be used for any automated task.
Here we will see how you can import sample or dummy user data which is same as real data.
Steps :
1. Download zip file of LDIF Generator from here.
2. Extract it and open the software using command
java -jar LDIFGen.jar
3. Add Domain Component (dc) name of your LDAP server in the field "Base added to Generate Records". In my case it was
dc=example, dc=com
4. Number of records can be 500 or 5000 depends on your requirement.
5. Field 'Directory where input data is stored' : This is the path of the 'data' directory which you can find in the extracted LDIF generator folder.
Make sure D is capital in the path name if it is capital in the extracted folder.
6. Output directory path can be anywhere on the system. Make sure you have write permission in the folder.
7. Click on 'Run' button. An output file output.ldif file will be generated.
8. Open php LDAP Admin and click on import option in the left menu. Select the output.ldif file and click on Proceed.
9. All sample users will be imported into the LDAP server.
You can see the complete procedure in the following video.