-
Notifications
You must be signed in to change notification settings - Fork 2.1k
How to test user_ldap
Morris Jobke edited this page Mar 17, 2015
·
12 revisions
I used a docker container to run OpenLDAP in.
docker run -d -p 389:389 enalean/ldap-dev
This will fetch automatically the needed docker container to run this LDAP instance. LDAP now listens on port 389 of your host.
With following command you will create a PHPLDAPAdmin instance on your hosts port 8800
where you can easiely browse the LDAP content.(login password is welcome0
) You need to add your host IP address.
docker run -p 8800:80 -e LDAP_HOST=IP_OF_YOUR_HOST -e LDAP_BASE_DN=dc=tuleap,dc=local -e LDAP_LOGIN_DN=cn=Manager,dc=tuleap,dc=local -d windfisch/phpldapadmin
Clone this gist (@blizzz gists updated with the credentials of the docker container)
git clone https://gist.github.com/5530c1109e5b55c8319a.git ldap
cd ldap
php batchCreateUsers.php
Tested config:
- Server:
localhost
, Port: gets autodetected - User DN:
cn=Manager,dc=tuleap,dc=local
- Password:
welcome0
- Base DN:
dc=tuleap,dc=local
- User Filter:
inetOrgPerson
as object class should be fine - Login Filter:
LDAP Username
works - Group Filter: not needed
- Advanced -> Directory Settings -> User Display Name Field:
displayName
(camelCase ;))
Every zombie has a user name (e.g. zombie294), which you can use to login on ownCloud. As password use the username. You can find all usernames with PHPLDAPAdmin