You are not logged in.

#1 2014-03-29 00:55:25

wyntre5150
Member
Registered: 2014-03-29
Posts: 3

openLDAP installation

I just installed Arch for the first time on my raspberry pi.  I followed the install guide for openLDAP on the wiki but noticed that a few extra steps were necessary.

After:

# cp /etc/openldap/DB_CONFIG.example /var/lib/openldap/openldap-data/DB_CONFIG
# chown ldap:ldap /var/lib/openldap/openldap-data/DB_CONFIG

I had to run:

chown ldap:ldap /etc/openldap
mdkir /run/openldap
chown ldap:ldap /run/openldap

I wanted to see if anyone else was running would verify that these steps are necessary.  If not maybe someone will find this helpful.

~~~~wyntre5150

wiki.archlinux.org/index.php/OpenLDAP

Offline

#2 2014-04-21 22:26:14

maarten21
Member
Registered: 2014-04-21
Posts: 5

Re: openLDAP installation

The chown on /etc/openldap I had to do as well. I am still struggling to get TLS to work according the instructions. I do not manage to get a self signed cerificate served by slapd.

Offline

#3 2014-05-17 05:43:25

wirelessben
Member
Registered: 2014-05-17
Posts: 3

Re: openLDAP installation

@maarten21: I know your pain. To that end, I have a script that will get you from nothing to TLS configured and working in 5 minutes. I'm not sure where to post it, though.

Offline

#4 2014-05-17 06:41:02

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: openLDAP installation

Why not share the script here?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2014-05-18 16:25:46

wirelessben
Member
Registered: 2014-05-17
Posts: 3

Re: openLDAP installation

Edit: Replaced the static code here with a link to the public Github repository: https://github.com/FOSSperts/archlinux- … aperver.sh

wget https://github.com/FOSSperts/archlinux-openldap/blob/master/createldapserver.sh
# run as root
chmod 700 createldapserver.sh    # change permissions to executable for the owner
./createldapserver.sh                     # run the script

Last edited by wirelessben (2014-05-25 15:34:42)

Offline

#6 2014-05-19 18:56:15

maarten21
Member
Registered: 2014-04-21
Posts: 5

Re: openLDAP installation

Thanks. Script works.

Figured out: what misses on the wiki page is the 'rm -rf $configdir'

Offline

#7 2014-05-25 15:11:08

wirelessben
Member
Registered: 2014-05-17
Posts: 3

Re: openLDAP installation

Thanks for testing! Added a link to the script on the [https://wiki.archlinux.org/index.php/OpenLDAP OpenLDAP page]. It's a public repository on Github now, so users will get future bugfixes.

Last edited by wirelessben (2014-05-25 15:11:37)

Offline

Board footer

Powered by FluxBB