Differences between revisions 6 and 17 (spanning 11 versions)
Revision 6 as of 2020-02-16 21:58:32
Size: 276
Comment:
Revision 17 as of 2022-05-13 17:09:17
Size: 1602
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
 * 192.168.1.58 ldap (virtual IP-address)
 * 192.168.1.59 ldap01
 * 192.168.1.60 ldap02
 * 192.168.1.65 ldap (virtual IP-address)
 * 192.168.1.66 ldap01
 * 192.168.1.67 ldap02
Line 12: Line 12:
 anything prior to 2.4.54 should be avoided
{{{
apt-get install slapd ldap-utils
}}}

important article to set the password for ldapadd, etc.
https://www.djaodjin.com/blog/setup-open-ldap.blog.html
needed to provide rfc822mailmember from misc.ldif
Line 14: Line 23:
apt-get install slapd ldap-utils root@kall:~# slappasswd
New password:
Re-enter new password:
{SSHA}XXX

root@kall:~# ldapmodify -Q -Y EXTERNAL -H ldapi:/// << EOF
dn: olcDatabase={0}config,cn=config
changetype:modify
add: olcRootPW
olcRootPW: {SSHA}XXX

root@kall:~# ldapadd -x -H ldap:/// -f /etc/ldap/schema/misc.ldif -D "cn=admin,cn=config" -W
Enter LDAP Password:
adding new entry "cn=misc,cn=schema,cn=config"

root@kall:~# slapadd -F /etc/ldap/slapd.d/ -l backup.ldif
-#################### 100.00% eta none elapsed spd 29.9 k/s
Closing DB...

Line 20: Line 48:
 * https://www.openldap.org/doc/admin24/replication.html
 * https://linoxide.com/linux-how-to/install-openldap-2-different-hosts-configure-mirror-mode/
 * https://ypbind.de/maus/ldap_ha_loadbalancing.html
 * https://www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Provider%20Replication
 * https://www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Provider%20Replication
 * https://mishikal.wordpress.com/2019/04/23/configuring-mmr-using-delta-syncrepl-in-openldap-updating-an-existing-standalone-configuration/

DO NOT USE

not complete in any way

LDAP

  • 192.168.1.65 ldap (virtual IP-address)
  • 192.168.1.66 ldap01
  • 192.168.1.67 ldap02

really ?

  • anything prior to 2.4.54 should be avoided

apt-get install slapd ldap-utils

important article to set the password for ldapadd, etc. https://www.djaodjin.com/blog/setup-open-ldap.blog.html needed to provide rfc822mailmember from misc.ldif

root@kall:~# slappasswd
New password: 
Re-enter new password: 
{SSHA}XXX

root@kall:~# ldapmodify -Q -Y EXTERNAL -H ldapi:/// << EOF
dn: olcDatabase={0}config,cn=config
changetype:modify
add: olcRootPW
olcRootPW: {SSHA}XXX

root@kall:~# ldapadd -x -H ldap:/// -f /etc/ldap/schema/misc.ldif -D "cn=admin,cn=config" -W
Enter LDAP Password: 
adding new entry "cn=misc,cn=schema,cn=config"

root@kall:~# slapadd -F /etc/ldap/slapd.d/ -l backup.ldif 
-#################### 100.00% eta   none elapsed                 spd  29.9 k/s 
Closing DB...

References

None: LDAP (last edited 2022-05-13 17:09:17 by Kristian Kallenberg)