<div dir="ltr">I think you have this line in <span style="color:rgb(0,0,0);font-size:12.8px"> basedomain.ldif :</span><div><br></div><div>dc: Server</div><div><br></div><div>and it should be </div><div><br></div><div>dc: ringways</div><div><br></div><div>This is only a guess though, I've never used LDAP.</div></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 16:54, 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">The whole list of files is<br>
<br>
[root@ollie2 ldap]# cat reset_ldap.sh<br>
<span class="">#!/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>
<br>
<br>
<br>
<br>
<br>
</span>[root@ollie2 ldap]# cat setup_ldap.sh<br>
#!/bin/bash -x<br>
<br>
ldapadd -Y EXTERNAL -H ldapi:/// -f chrootpw.ldif<br>
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/cosine.ldif<br>
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/nis.ldif<br>
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/inetorgperson.ldif<br>
ldapmodify -Y EXTERNAL -H ldapi:/// -f chdomain.ldif<br>
<span class="">ldapadd -x -D cn=Manager,dc=ringways,dc=com -W -f basedomain.ldif<br>
<br>
<br>
<br>
<br>
</span>[root@ollie2 ldap]# cat chrootpw.ldif<br>
# specify the password generated above for "olcRootPW" section<br>
<br>
dn: olcDatabase={0}config,cn=config<br>
changetype: modify<br>
add: olcRootPW<br>
olcRootPW: {SSHA}bbn4VrMZ0CAt6rZtVWBUX+RruM8yz+d4<br>
<br>
<br>
<br>
[root@ollie2 ldap]# cat chdomain.ldif<br>
<span class=""># replace to your own domain name for "dc=***,dc=***" section<br>
<br>
</span># specify the password generated above for "olcRootPW" section<br>
<br>
dn: olcDatabase={1}monitor,cn=config<br>
changetype: modify<br>
replace: olcAccess<br>
olcAccess: {0}to * by<br>
dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth"<br>
<span class=""> read by dn.base="cn=Manager,dc=ringways,dc=com" read by * none<br>
<br>
</span>dn: olcDatabase={2}hdb,cn=config<br>
changetype: modify<br>
replace: olcSuffix<br>
olcSuffix: dc=ringways,dc=com<br>
<br>
dn: olcDatabase={2}hdb,cn=config<br>
changetype: modify<br>
replace: olcRootDN<br>
olcRootDN: cn=Manager,dc=ringways,dc=com<br>
<br>
dn: olcDatabase={2}hdb,cn=config<br>
changetype: modify<br>
add: olcRootPW<br>
olcRootPW: {SSHA}HFbPOXoq0AZOmjLCQxsC0Ykj16G8XyHf<br>
dn: olcDatabase={2}hdb,cn=config<br>
changetype: modify<br>
add: olcAccess<br>
olcAccess: {0}to attrs=userPassword,shadowLastChange by<br>
<span class=""> dn="cn=Manager,dc=ringways,dc=com" write by anonymous auth by self write by<br>
* none<br>
</span>olcAccess: {1}to dn.base="" by * read<br>
<span class="">olcAccess: {2}to * by dn="cn=Manager,dc=ringways,dc=com" write by * read<br>
<br>
<br>
<br>
<br>
</span>[root@ollie2 ldap]# cat basedomain.ldif<br>
<span class=""># replace to your own domain name for "dc=***,dc=***" section<br>
<br>
dn: dc=ringways,dc=com<br>
objectClass: top<br>
objectClass: dcObject<br>
objectclass: organization<br>
o: Ringways<br>
dc: Server<br>
<br>
dn: cn=Manager,dc=ringways,dc=com<br>
objectClass: organizationalRole<br>
cn: Manager<br>
description: Directory Manager<br>
<br>
dn: ou=People,dc=ringways,dc=com<br>
objectClass: organizationalUnit<br>
ou: People<br>
<br>
dn: ou=Group,dc=ringways,dc=com<br>
objectClass: organizationalUnit<br>
ou: Group<br>
<br>
<br>
</span>[root@ollie2 ldap]#<br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>