44 lines
943 B
Markdown
44 lines
943 B
Markdown
# ldapdock
|
|
**_a configurable container running LDAP_**
|
|
|
|
most important steps to run the daemon server, some steps are NOT neccesary
|
|
|
|
build ldapdock
|
|
```
|
|
> docker build -t ldapdock /path/to/dockerfile
|
|
```
|
|
|
|
after build, check the docker image has been created properly with the given REPOSITORY name
|
|
```
|
|
> docker images
|
|
REPOSITORY TAG IMAGE ID CREATED SIZE
|
|
ldapdock latest 0e4a1521b346 6 hours ago 138MB
|
|
```
|
|
|
|
run into the container setting up the LDAP server and the hostname
|
|
```
|
|
> docker run -h example.com -i -t ldapdock /bin/bash
|
|
```
|
|
|
|
### _Inside the ldapdock image_
|
|
|
|
edit base configuration of openLDAP server
|
|
```
|
|
> vim /etc/ldap/ldap.conf
|
|
```
|
|
|
|
check
|
|
|
|
create a openLDAP root user password
|
|
```
|
|
> slappasswd
|
|
New password:
|
|
Re-enter new password:
|
|
{SSHA}RXBw4x2g3pxghcp6fEMQvrsBT4EXawsd
|
|
```
|
|
|
|
start the openLDAP daemon server
|
|
```
|
|
> service slapd start
|
|
* Starting OpenLDAP slapd [ OK ]
|
|
``` |