Skip to content

idanelor/populated_ldap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Populated LDAP

A tool leveraging faker and osixia/docker-openldap to spin a container with populated fake users. Good for a quickly integrating LDAP into a system that requires authentication for PoC, Demo and Testing purposes.

Simply start by

docker run --name populated_ldap --detach -p 389:389 -e "LDAP_DOMAIN=example.com" -e "LDAP_ORGANISATION=Example Inc." -e "LDAP_USER_COUNT=100" -e "LDAP_ADMIN_PASSWORD=admin" idanelor/populated_ldap:lts 

For see the users either start the osixia/docker-openldap

docker run --name phpldapadmin-service -p 9999:443 --hostname phpldapadmin-service --link populated_ldap:ldap-host --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host  --detach osixia/phpldapadmin:0.7.1

Browse to "https://localhost:9999" and connect with "cn=admin,dc=example,dc=com" and selected password (admin by default)

Note: If your domain is foo.my.app.com than admin will be acordingly, cn=admin,dc=foo,dc=my,dc=app,dc=com

Populated users can be either found in https://localhost:9999 or by running docker logs populated_ldap

If you want just to populate an .ldif file that can be imported simply run the following:

cd resources
python3 ldap_populator.py --users-count 10 --domain example.com
cat users.ldif

Any questions, just reach out.

About

A variation of LDAP docker implementation with populated users

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published