Commit 0623dac0 authored by Yuri Aksenov's avatar Yuri Aksenov

Added cyris sasl

parent 419da03b
...@@ -36,13 +36,14 @@ server: ldap-service ...@@ -36,13 +36,14 @@ server: ldap-service
patch -Np1 -d openldap-2.4.46 < openldap-2.4.46-arm64.patch patch -Np1 -d openldap-2.4.46 < openldap-2.4.46-arm64.patch
patch -Np1 -d openldap-2.4.46 < openldap-2.4.46-consolidated-1.patch patch -Np1 -d openldap-2.4.46 < openldap-2.4.46-consolidated-1.patch
cd openldap-2.4.46 && autoconf cd openldap-2.4.46 && autoconf
cd openldap-2.4.46 && ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --disable-static --enable-debug --with-tls=openssl --enable-dynamic --enable-crypt --enable-slapd --enable-modules --enable-rlookups --enable-backends=mod --disable-ndb --disable-sql --disable-shell --disable-bdb --disable-hdb --enable-overlays=mod cd openldap-2.4.46 && ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --disable-static --enable-debug --with-tls=openssl --enable-dynamic --enable-crypt --enable-slapd --enable-modules --enable-rlookups --enable-backends=mod --disable-ndb --disable-sql --disable-shell --disable-bdb --disable-hdb --enable-overlays=mod --with-cyrus-sasl
$(MAKE) -C openldap-2.4.46 depend $(MAKE) -C openldap-2.4.46 depend
$(MAKE) -C openldap-2.4.46 $(MAKE) -C openldap-2.4.46
# $(MAKE) -C openldap-2.4.46 test
$(MAKE) -C openldap-2.4.46 install $(MAKE) -C openldap-2.4.46 install
sed -e "s/\.la/.so/" -i /etc/openldap/slapd.{conf,ldif}{,.default} sed -e "s/\.la/.so/" -i /etc/openldap/slapd.{conf,ldif}{,.default}
install -v -dm700 -o ldap -g ldap /var/lib/openldap cd openldap-2.4.46 && install -v -dm700 -o ldap -g ldap /var/lib/openldap
install -v -dm700 -o ldap -g ldap /etc/openldap/slapd.d cd openldap-2.4.46 && install -v -dm700 -o ldap -g ldap /etc/openldap/slapd.d
chmod -v 640 /etc/openldap/slapd.{conf,ldif} chmod -v 640 /etc/openldap/slapd.{conf,ldif}
chown -v root:ldap /etc/openldap/slapd.{conf,ldif} chown -v root:ldap /etc/openldap/slapd.{conf,ldif}
install -v -dm755 /usr/share/doc/openldap-2.4.46 install -v -dm755 /usr/share/doc/openldap-2.4.46
...@@ -50,8 +51,6 @@ server: ldap-service ...@@ -50,8 +51,6 @@ server: ldap-service
@echo "d /run/openldap 755 ldap ldap -" > /usr/lib/tmpfiles.d/slapd.conf @echo "d /run/openldap 755 ldap ldap -" > /usr/lib/tmpfiles.d/slapd.conf
@echo "$$LDAP_SERVICE" > /lib/systemd/system/slapd.service @echo "$$LDAP_SERVICE" > /lib/systemd/system/slapd.service
systemctl enable slapd systemctl enable slapd
mkdir /var/run/openldap
chown -v ldap:ldap /var/run/openldap
rm -rf openldap-2.4.46 rm -rf openldap-2.4.46
...@@ -62,7 +61,7 @@ Description = LDAP server ...@@ -62,7 +61,7 @@ Description = LDAP server
[Service] [Service]
; -d0 stops slapd from forking ; -d0 stops slapd from forking
ExecStart = /usr/sbin/slapd -u ldap -g ldap -h "ldap://127.0.0.1:389/ ldaps:/// ldapi:///" ExecStart = /usr/sbin/slapd -u ldap -g ldap -h "ldap://127.0.0.1:389/ ldaps:/// ldapi:///" -d 0
Restart = always Restart = always
RestartSec = 180 RestartSec = 180
IOSchedulingClass = realtime IOSchedulingClass = realtime
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment