-= Using LDAP in Docket
+= Using LDAP in Docker
It is possible to experiment with a local LDAP server under
https://docs.docker.com/install/[Docker]. There is a
databas will be lost. All of the steps above will have to be re-done
the next time the server is started.
-In order to make the LDAP database persiste, see the
+In order to make the LDAP database persistent, see the
https://github.com/osixia/docker-openldap[osixia/openldap
instructions].
= Testing via `ldapsearch`
-Prior to configuring the `ldap` module, the LDAP serve rmust first be
+Prior to configuring the `ldap` module, the LDAP server must first be
validated using the `ldapsearch` tool.
[source,shell]
Where you replace the following as appropriately:
-* *`ldaps://ldap.example.com:636`:* location of the LDAP server and how to connect
+* `ldaps://ldap.example.com:636`
+ * location of the LDAP server and how to connect
* `ldaps` is LDAP over SSL and defaults to port `636/tcp`
* `ldapi` is for UNIX socket connections
-* `cn=freeradius,dc=example,dc=com`:* username used by FreeRADIUS when connecting to LDAP
+* `cn=freeradius,dc=example,dc=com`
+ * username used by FreeRADIUS when connecting to LDAP
-* `mypassword`:* password used by FreeRADIUS is to use when connecting to LDAP
+* `mypassword`
+ * password used by FreeRADIUS is to use when connecting to LDAP
-* `ou=people,dc=example,dc=com`:* top branch ('base') of the LDAP tree where users are found
+* `ou=people,dc=example,dc=com`
+ * top branch ('base') of the LDAP tree where users are found
-* `(objectClass=inetOrgPerson)`:*
+* `(objectClass=inetOrgPerson)`
http://www.zytrax.com/books/ldap/apa/search.html[search filter]
which captures the users (this is the LDAP equivalent of the `WHERE`
clause in SQL)