- python 2.7
- python-ldap: sudo yum install -y python-ldap
suppose:
- ou=people,dc=example,dc=com exists to store all users
- ou=organization,dc=example,dc=com exists to store all organizations
features:
- bulk sample inetOrgPerson:(all passwords are set to 1)
- ./samper.py --subject 10 --prefx test // create 10 users whose username starts with test
- ./samper.py --subject 10 --chinese // create 10 users for whom, randomize username, and randomize with a chinese name
- bulk sample groupOfUniqueNames: ./samper.py --org // create organizations
- bulk sample inetOrgPerson and groupOfUniqueNames:
- ./samper.py --subject 100 --prefix test --org // create 100 users and some orgs, then randomize the membership
- login test:
- ./login.py --uri ldap://localhost:1389 -D 'uid=[email protected],ou=people,dc=example,dc=com' -w '1'