Support Questions
Find answers, ask questions, and share your expertise

Issue while setup LDAP server

Highlighted

Issue while setup LDAP server

While setup LDAP server I got some issue in populate the DIT with the values in the file dit.ldif

I run these commands : "[root@sandbox openldap]# ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f dit.ldif -H ldaps://ldap1.example.com"

while running these commands I got this issue "Enter LDAP Password:

ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)". I follow this link for setup ldap http://easylinuxtutorials.blogspot.in/2013/11/installing-configuring-openldap-server.html.

10945-screenshot-from-2016-12-30-151947.png

8 REPLIES 8
Highlighted

Re: Issue while setup LDAP server

Expert Contributor

@Narasimma varman try 'hadoop' as password.

Highlighted

Re: Issue while setup LDAP server

Yes,I try "hadoop" as password but still it getting error

Highlighted

Re: Issue while setup LDAP server

@Narasimma varman

What password did you use when you set it during the following step?

Generate the encrypted password for rootdn to use in /etc/openldap/slapd.conf
[root@ldap1 ~]# slappasswd
New password:
Re-enter new password:

You were supposed to take the result of this an use it in the /etc/openladp/slapd.conf file. The example, "{SSHA}GtG8bcLGeN/rf1iStKFK2pu0C2EZf/RX", should have been replaced with that value in

database        bdb
suffix          "dc=example,dc=com"
checkpoint      1024 15
rootdn          "cn=Manager,dc=example,dc=com"
rootpw          {SSHA}GtG8bcLGeN/rf1iStKFK2pu0C2EZf/RX
loglevel        256
sizelimit       unlimited

May try rerunning slapppasswd to generate a new password hash and use that in the slapd.conf file. After restarting, maybe the new manager password will be picked up.

Highlighted

Re: Issue while setup LDAP server

Yes, I did whatever you mention but still I am getting same issue

Highlighted

Re: Issue while setup LDAP server

I have already done this but still the issue is not resolved

Highlighted

Re: Issue while setup LDAP server

Super Collaborator

@Narasimma varman Can't contact LDAP server would mean either slapd is not running or port used is not correct.

From the command I see you are using ldaps://ldap1.example.com this is usually ldap with ssl which usually is the case when you are setting up ldap with certificates. From the error it looks that you have non-ssl ldap setup.

Please try using the command with "-H ldap://ldap1.example.com" instead of ldaps://

Highlighted

Re: Issue while setup LDAP server

I try "-H ldap://ldap1.example.com" but same issue is occured

Highlighted

Re: Issue while setup LDAP server

Is ldap1.example.com really the DNS name of the host where the LDAP server was installed? Or are we just using this for the example? Maybe try to connect from the same host and use localhost instead:

ldap://localhost
ldaps://localhost
Don't have an account?