Problem with LDAP Add to Secondary Directory

I am having difficulty programmatically doing an LDAP add operation to a secondary directory I’ve set up via Directory Services.

My setup is the following (names changed to protect the innocent):

My primary domain is Dev, and I’ve created a secondary address book referenced by directory assistance for a non-Notes domain called Web. LDAP queries work just fine against this directory, so I know it’s being referenced.

The error I’m receiving when attempting to add a user with a DN of “cn=First Last, O=Web” is LDAP 32: No such object. If I do the exact same thing to my primary directory (specifying Dev as the O), I get an authentication error, since the primary directory is not LDAP-write enabled. I am assuming that I need to create an O=Web container before I can add users to it, but am at a loss as to how, apart from possibly creating a Notes domain, which I don’t want to do. (Or do I?)

Thanx in advance for any help…

Subject: Problem with LDAP Add to Secondary Directory

I am assuming that I need to create an O=Web container before I can add users to it,Yes, this is true - the parent hierarchy must exist.

but am at a loss as to how, apart from possibly creating a Notes domain, which I don’t want to do. (Or do I?)

Can you add (via LDAP) an objectclass=organization object named O=Web first? The LDAP server should then create an “(LDAP Organization)” document (see Designer) which isn’t normally visible in any views. I think this is what you want to do.