I am new to LDAP and Directory Services in general (My goal is to import ldif files containing certificates from a Public Key Directory (pkddownloadsg.icao.int/download)).
But I am already failing at setting up OpenLDAP in Ubuntu correctly. I followed this guide: https://ubuntu.com/server/docs/service-ldap The setup process seems to be working correctly but when I want to see the entire DIT; the rootDN is somehow missing:
user1@computer:~$ ldapsearch -x -LLL -H ldap:/// -b dc=example,dc=com dn dn: dc=example,dc=com There should be a 2nd line:
dn: cn=admin,dc=example,dc=com That's probably the reason why I cannot add ldif files:
user1@computer:~$ sudo ldapadd -x -D "cn=admin,dc=example,dc=com" -W -f icaopkd.ldif -v ldap_initialize( <DEFAULT> ) Enter LDAP Password: ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) Any idea what might be causing this?