Terve, Koitan saada openldapin näillä ohjeilla toimimaan:
http://www.server-world.info/en/note?os=CentOS_7&p=openldaphomma vain hyytyy heti alkumetreillä.
Osaisiko joku kertoa mitäs tässä nyt tehdään:
"[root@dlp ~]#
vi /etc/openldap/slapd.d/cn=config/olcDatabase\={0}config.ldif
# line 6: change
olcAccess:
{0}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by * break"
Tämän kun saa tehtyä ja yrittää käynnistää slapdin niin herjaa seuraavaa:
Job for slapd.service failed. See 'systemctl status slapd.service' and 'journalctl -xn' for details.
journalctl -xn komennolla saatu sisältö:
at su 2015-02-15 12:01:15 EET. --
er[11138]: pam_unix(runuser:session): session closed for user ldap
-config.sh[11135]: Checking configuration file failed:
-config.sh[11135]: 54e06e6a ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/o
-config.sh[11135]: 54e06e6a <= str2entry: str2ad(dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn
-config.sh[11135]: slaptest: bad configuration file!
[11151]: @(#) $OpenLDAP: slapd 2.4.39 (Jun 9 2014 23:23:12) $
mockbuild@worker1.bsys.centos.org:/builddir/build/BUILD/openldap-2.4.39/openlda
[11151]: DIGEST-MD5 common mech free
md[1]: slapd.service: control process exited, code=exited status=1
md[1]: Failed to start OpenLDAP Server Daemon.
begin at su 2015-02-15 12:58:01 EET, end at su 2015-02-15 16:28:28 EET. --
helmi 15 16:28:28 centlinux-server runuser[6137]: pam_unix(runuser:session): session closed for user ldap
helmi 15 16:28:28 centlinux-server check-config.sh[6134]: Checking configuration file failed:
helmi 15 16:28:28 centlinux-server check-config.sh[6134]: 54e0ad0c ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config//olcDatabase={0}config.ldif"
helmi 15 16:28:28 centlinux-server check-config.sh[6134]: 54e0ad0c <= str2entry: str2ad(dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by * break ): empty AttributeDescription
helmi 15 16:28:28 centlinux-server check-config.sh[6134]: slaptest: bad configuration file!
helmi 15 16:28:28 centlinux-server slapd[6150]: @(#) $OpenLDAP: slapd 2.4.39 (Jun 9 2014 23:23:12) $
mockbuild@worker1.bsys.centos.org:/builddir/build/BUILD/openldap-2.4.39/openldap-2.4.39/servers/slapd
helmi 15 16:28:28 centlinux-server slapd[6150]: DIGEST-MD5 common mech free
helmi 15 16:28:28 centlinux-server systemd[1]: slapd.service: control process exited, code=exited status=1
helmi 15 16:28:28 centlinux-server systemd[1]: Failed to start OpenLDAP Server Daemon.
-- Subject: Unit slapd.service has failed
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/listinfo/systemd-devel--
-- Unit slapd.service has failed.
--
-- The result is failed.
helmi 15 16:28:28 centlinux-server systemd[1]: Unit slapd.service entered failed state.
Oisko kellään tarjota neuvoja mites tästä kannattaa edetä?