[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Adding new entry

On Wednesday, July 25, 2001, at 01:40 PM, Wes Quinn wrote:
I'm new to LDAP and I'm trying to add a new entry using OpenLDAP 2.0.11 and Netscape Java SDK 4.0 and I keep getting this error on the ld.add call no matter what I try:
Error: netscape.ldap.LDAPException: error result (32); No such object
I've been working on this the past few days and I'm using the Add.java example that was included with the SDK.  Here is the code.  I'm basically trying to just add a person in the hierarchy.
                /* Specify the DN we're adding */
//               String dn = "ou=People, o=tls-us.com";   // <= This failed too and many combinations
//               String dn = "ou=People, o=tls-us, o=com";   // <= This failed too and many combinations
               String dn = "uid=wbjensen, ou=People, o=tls-
us.com";   // <= *** Code that needs changing

1. Did you already add the entry for ou=People? (This is a classic first error..)

2. You're mixing up your directory root. This uses the root you have in slapd.conf
String dn = "uid=wbjensen, ou=People, dc=tls-us, dc=com";   // <= *** Code that needs changing
(suffix          "dc=tls-us, dc=com")
but this:
String dn = "uid=wbjensen, ou=People, o=tls-us.com";   // <= *** Code that needs changing


ron@opus1.com, 520-326-6109, http://www.opus1.com/ron/
The opinions expressed in this email are not necessarily those of myself,
my employers, or any of the other little voices in my head.