blob: 07ec67b4cc5bcc89306936470c3f7b6a937523c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
************************************************************
The OpenLDAP server package has been successfully installed.
In order to run the LDAP server, you need to edit
%%PREFIX%%/etc/openldap/slapd.conf
to suit your needs and add the next lines to /etc/rc.conf:
slapd_enable="YES"
slapd_args='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/????x-mod=0777 ldap://0.0.0.0/"'
Then start the server with
%%PREFIX%%/etc/rc.d/slapd.sh start
or reboot.
NOTE: There is no real reason to run slapd as root. Add
'-u ldap -g ldap'
to slapd_args, create a user "ldap" with
pw add group ldap -g 389
pw add user ldap -u 389 -g 389 -d /nonexistent \
-c "OpenLDAP Server" -s /sbin/nologin -p "*"
and do
chown -R ldap:ldap %%LDAP_RUN_DIR%% \
%%LOCALSTATEDIR%%/openldap-data %%PREFIX%%/etc/openldap/slapd.conf
and your server runs with a non-privileged user id.
************************************************************
|