[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Manual LDAP 2.4.44 Installation



Am Fri, 21 Apr 2017 17:35:34 +0000 (UTC)
schrieb Alexandre Vilarinho <vilarinhomail-dev@yahoo.com.br>:

> Hello all,
> Recently I've installed LDAP - version 2.4.44 Manually in a Ubuntu
> 16.04 TLS server. root@Linux-LDAP-SERVER:~# lsb_release -aNo LSB
> modules are available.Distributor ID: UbuntuDescription: Ubuntu
> 16.04.2 LTSRelease: 16.04Codename: xenialroot@Linux-LDAP-SERVER:~# I
> followed every step in the official Quick-Start Quide
> (http://www.openldap.org/doc/admin24/quickstart.html) But from step 9
> forward it practically didn't work: 9.Import the configuration
> database You are now ready to import your configration database for
> use by slapd(8), by running the command:su root
> -c /usr/local/sbin/slapadd -F /usr/local/etc/cn=config
> -l /usr/local/etc/openldap/slapd.ldif
> root@Linux-LDAP-SERVER:~# /usr/local/sbin/slapadd
> -F /usr/local/etc/cn=config
> -l /usr/local/etc/openldap/slapd.ldif58fa3f94 invalid config
> directory /usr/local/etc/cn=config, error 2slapadd: bad configuration
> directory! root@Linux-LDAP-SERVER:~# 10. Start SLAPD. You are now
> ready to start the Standalone LDAP Daemon, slapd(8), by running the
> command:su root -c /usr/local/libexec/slapd
> -F /usr/local/etc/cn=config To check to see if the server is running
> and configured correctly, you can run a search against it with
> ldapsearch(1). By default, ldapsearch is installed
> as /usr/local/bin/ldapsearch:ldapsearch -x -b '' -s base
> '(objectclass=*)' namingContexts Note the use of single quotes around
> command parameters to prevent special characters from being
> interpreted by the shell. This should return:dn: namingContexts:
> dc=example,dc=com root@Linux-LDAP-SERVER:~# /usr/local/libexec/slapd
> -F /usr/local/etc/cn=configroot@Linux-LDAP-SERVER:~# ldapsearch -x -b
> 'dc=example,dc=com' '(objectclass=*)'ldap_sasl_bind(SIMPLE): Can't
> contact LDAP server (-1)root@Linux-LDAP-SERVER:~# What am i doing
> wrong? Why can't it contact the server, if the installation was ok,
> with no errors ou warnings... Regards

man slapd(8), run slapd in debugging mode.

--Dieter

-- 
Dieter Klünter | Systemberatung
http://sys4.de
GPG Key ID: E9ED159B
53°37'09,95"N
10°08'02,42"E