I'm teaching myself elementary JNDI using Sun's JNDI Tutorial. The tutorial has name/file service provider exercises and directory/ldap service provider exercises. No problem with the naming service exercises (using an fs provider service I downloaded from Sun), but question about the ldap (and I know nothing to speak of about ldap):
I'm using SDK 1.4.2, so I've got the ldap service provider built in.I downloaded and installed (on Windows XP) a Win32 bundling of OpenLDAP from Lucas Bergman. To my amazement, my JNDI Tutorial directory service exercises connect to the OpenLDAP server. But the exercises require loading tutorial.ldif into the directory server, and I can't get past an "invalid credentials" error when running ldapadd.exe.
I know the problem concerns the directory server config file ldap.conf and Access Control. I've looked through the Quick Start and man for OpenLDAP and tried to hack out a ldap.conf that works, but I'm working in the blind. If my diagnosis is right, then I'm looking for the simplest but correct ldap.conf, with a superuser who can bind/write anything. Any help appreciated in validating my diagnosis and giving me a ldap.conf I can use.
Here's what I'm putting in at the command line:
I'm prompted for and enter password "secret." I get back an
Here is my ldap.conf file, copied from an example given in the OpenLDAP manual, with my (perhaps erroneous) changes of Unix directory syntax to that of Windows: