Thanks for reporting this bug and helping make Ubuntu better. Actually the ldapadd command should have a -b dc=example,dc=com (or the basedn of your directory). I must have set the BASE option in /etc/ldap/ldap.conf before using that command.
Using the -b should allow you to not have to sudo su openldap, can you give it a try to double check and comment?
Thanks for reporting this bug and helping make Ubuntu better. Actually the ldapadd command should have a -b dc=example,dc=com (or the basedn of your directory). I must have set the BASE option in /etc/ldap/ldap.conf before using that command.
Using the -b should allow you to not have to sudo su openldap, can you give it a try to double check and comment?
Thanks again.