Differences between revisions 16 and 17
Revision 16 as of 2022-05-13 16:31:47
Size: 1440
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 21: Line 21:
Line 37: Line 38:
root@kall:~# slapadd -F /etc/ldap/slapd.d/ -l backup.ldif
-#################### 100.00% eta none elapsed spd 29.9 k/s
Closing DB...

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)