<div dir="ltr">I haven't got any experience with LDAP but I had a quick look at some others with a similar thing - Do you have the password stored in the rootpw field in slapd.conf and did you encrypt your password with slappasswd before pasting into that field?<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">David Morris<br>

3G Telecommunications Limited<br><div><br>Office: +44 (0)113 391 0781<div>Mobile: +44 (0) 7790 606023<br>email: <a href="mailto:david.morris@3gtelecoms.net" target="_blank">david.morris@3gtelecoms.net</a><br><div><span>skype: david-3gtelecommunications </span>
</div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 27 November 2015 at 15:33, Gary Stainburn <span dir="ltr"><<a href="mailto:gary.stainburn@ringways.co.uk" target="_blank">gary.stainburn@ringways.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to get LDAP working on my mail server for both user authentication<br>
and addressbook purposes.<br>
<br>
I have tried the tutorials on both<br>
<br>
<a href="http://www.server-world.info/en/note?os=CentOS_7&p=openldap&f=1" rel="noreferrer" target="_blank">http://www.server-world.info/en/note?os=CentOS_7&p=openldap&f=1</a><br>
<br>
and<br>
<br>
<a href="http://albanianwizard.org/ubuntu-10-0-4-lucid-lynx-ldap-configuration-the-working-how-to.albanianwizard" rel="noreferrer" target="_blank">http://albanianwizard.org/ubuntu-10-0-4-lucid-lynx-ldap-configuration-the-working-how-to.albanianwizard</a><br>
<br>
(The second one is for Ubuntu, but claimed to be a complete and working demo)<br>
<br>
However, when I try to last part of each of these tutorials I get the<br>
following.<br>
<br>
ldapadd -x -D cn=admin,dc=ringways,dc=com -W -f /tmp/dit.ldif<br>
Enter LDAP Password:<br>
ldap_bind: Invalid credentials (49)<br>
<br>
Note: in the server-world one I tried using "dc=ringways,dc=com" as well as<br>
leaving it as "dc=server,dc=world"  but it didn't seem to make any<br>
difference.<br>
<br>
After each attempt I reset  everything using the following script.<br>
<br>
[root@ollie2 ~]# cat reset_ldap.sh<br>
#!/bin/bash -x<br>
<br>
systemctl stop slapd<br>
rpm -e openldap-servers openldap-clients<br>
cd /var/lib<br>
rm -Rf ldap<br>
cd /etc/openldap/<br>
rm -Rf slapd.d/<br>
yum -y install openldap-servers openldap-clients<br>
cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG<br>
systemctl start slapd<br>
slaptest -F /etc/openldap/slapd.d<br>
[root@ollie2 ~]#<br>
<br>
Do I need to do anything else, as it would appear that there is something I'm<br>
missing.<br>
<br>
<br>
_______________________________________________<br>
Wylug-help mailing list<br>
<a href="mailto:Wylug-help@wylug.org.uk">Wylug-help@wylug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/wylug-help" rel="noreferrer" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/wylug-help</a><br>
</blockquote></div><br></div>