[blfs-book] [BLFS Trac] #4619: openldap-2.4.39

BLFS Trac trac at linuxfromscratch.org
Tue Jan 28 06:51:43 PST 2014


#4619: openldap-2.4.39
-------------------------+-----------------------
 Reporter:  fo           |       Owner:  fo
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  current
Component:  BOOK         |     Version:  SVN
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-----------------------
Changes (by fo):

 * owner:  blfs-book@… => fo
 * status:  new => assigned


Comment:

 Recompiled with debug enabled and solved.


 {{{
 root [ /home/fernando ]# start_daemon /usr/sbin/slapd -u ldap -g ldap -h
 "ldap://127.0.0.1:389/ ldaps:/// ldapi:///" -d 1
 ldap_url_parse_ext(ldap://localhost/)
 ldap_init: trying /etc/openldap/ldap.conf
 ldap_init: using /etc/openldap/ldap.conf
 ldap_url_parse_ext(ldap://127.0.0.1)
 ldap_init: HOME env is /root
 ldap_init: trying /root/ldaprc
 ldap_init: trying /root/.ldaprc
 ldap_init: trying ldaprc
 ldap_init: LDAPCONF env is NULL
 ldap_init: LDAPRC env is NULL
 52e7c1e2 @(#) $OpenLDAP: slapd 2.4.39 (Jan 28 2014 11:21:24) $
         root at VMWLFS74:/home/fernando/tmp/paco-
 build-2014.01.28-11h18m35s/openldap-2.4.39/servers/slapd
 ldap_pvt_gethostbyname_a: host=VMWLFS74, r=0
 52e7c1e2 daemon_init: listen on ldap://127.0.0.1:389/
 52e7c1e2 daemon_init: listen on ldaps:///
 52e7c1e2 daemon_init: listen on ldapi:///
 52e7c1e2 daemon_init: 3 listeners to open...
 ldap_url_parse_ext(ldap://127.0.0.1:389/)
 52e7c1e2 daemon: listener initialized ldap://127.0.0.1:389/
 ldap_url_parse_ext(ldaps:///)
 52e7c1e2 daemon: listener initialized ldaps:///
 ldap_url_parse_ext(ldapi:///)
 52e7c1e2 daemon: listener initialized ldapi:///
 52e7c1e2 daemon_init: 4 listeners opened
 ldap_create
 52e7c1e2 slapd init: initiated server.
 52e7c1e2 slap_sasl_init: initialized!
 52e7c1e2 could not open config file "/etc/openldap/slapd.conf": Permission
 denied (13)
 52e7c1e2 slapd destroy: freeing system resources.
 52e7c1e2 slapd stopped.
 52e7c1e2 connections_destroy: nothing to destroy.
 root [ /home/fernando ]# evaluate_retval
 *****                                                                  [
 FAIL ]
 root [ /home/fernando ]# ls -l /etc/openldap/slapd.conf
 -rw------- 1 root root 2100 Jan 28 10:36 /etc/openldap/slapd.conf
 root [ /home/fernando ]# chown -v ldap:ldap
 /etc/openldap/slapd.confalterado o dono de “/etc/openldap/slapd.conf” de
 root:root para ldap:ldap
 root [ /home/fernando ]# start_daemon /usr/sbin/slapd -u ldap -g ldap -h
 "ldap://127.0.0.1:389/ ldaps:/// ldapi:///" -d 1 &
 [1] 16298
 root [ /home/fernando ]# ldap_url_parse_ext(ldap://localhost/)
 ldap_init: trying /etc/openldap/ldap.conf
 ldap_init: using /etc/openldap/ldap.conf
 ldap_url_parse_ext(ldap://127.0.0.1)
 ldap_init: HOME env is /root
 ldap_init: trying /root/ldaprc
 ldap_init: trying /root/.ldaprc
 ldap_init: trying ldaprc
 ldap_init: LDAPCONF env is NULL
 ldap_init: LDAPRC env is NULL
 52e7c224 @(#) $OpenLDAP: slapd 2.4.39 (Jan 28 2014 11:21:24) $
         root at VMWLFS74:/home/fernando/tmp/paco-
 build-2014.01.28-11h18m35s/openldap-2.4.39/servers/slapd
 ldap_pvt_gethostbyname_a: host=VMWLFS74, r=0
 52e7c224 daemon_init: listen on ldap://127.0.0.1:389/
 52e7c224 daemon_init: listen on ldaps:///
 52e7c224 daemon_init: listen on ldapi:///
 52e7c224 daemon_init: 3 listeners to open...
 ldap_url_parse_ext(ldap://127.0.0.1:389/)
 52e7c224 daemon: listener initialized ldap://127.0.0.1:389/
 ldap_url_parse_ext(ldaps:///)
 52e7c224 daemon: listener initialized ldaps:///
 ldap_url_parse_ext(ldapi:///)
 52e7c224 daemon: listener initialized ldapi:///
 52e7c224 daemon_init: 4 listeners opened
 ldap_create
 52e7c224 slapd init: initiated server.
 52e7c224 slap_sasl_init: initialized!
 52e7c224 bdb_back_initialize: initialize BDB backend
 52e7c224 bdb_back_initialize: Berkeley DB 6.0.20: (June 24, 2013)
 52e7c224 bdb_db_init: Initializing BDB database
 ...



 52e7c224 slapd startup: initiated.
 52e7c224 backend_startup_one: starting "cn=config"
 52e7c224 config_back_db_open
 52e7c224 config_build_entry: "cn=config"
 52e7c224 config_build_entry: "cn=module{0}"
 52e7c224 config_build_entry: "cn=schema"
 52e7c224 >>> dnNormalize: <cn={0}core>
 52e7c224 <<< dnNormalize: <cn={0}core>
 52e7c224 config_build_entry: "cn={0}core"
 52e7c224 config_build_entry: "olcDatabase={-1}frontend"
 52e7c224 config_build_entry: "olcDatabase={0}config"
 52e7c224 config_build_entry: "olcDatabase={1}bdb"
 52e7c224 backend_startup_one: starting "dc=my-domain,dc=com"
 52e7c224 bdb_db_open: database "dc=my-domain,dc=com":
 dbenv_open(/var/lib/openldap).
 52e7c224 slapd starting

 root [ /home/fernando ]# evaluate_retval
   *                                                                    [
 OK  ]
 }}}

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/4619#comment:5>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch



More information about the blfs-book mailing list