Perry Minchew writes:

> Does anyone know of a way to "hard insert" or auto-generate the
> directory structure from the given dn?  My last choice, if all else
> fails, is to check each leaf of the path one at a time to see if
> exists

You can hopefully skip that part, at least.  Attempt to insert the
entry.  If it fails with noSuchObject, check the matchedDN of the
response.  That should be the DN of the nearest existing parent.
It does depend on the server, and access controls etc, though.

> and insert each node from there on out.
>
> Ideally, I would like to just say "create node with this dn whether the
> path exists right now or not."

That goes against the directory model.  Like attempting to create a file
in a directroy which does not exist.

-- 
Regards,
Hallvard

---
You are currently subscribed to [email protected] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the 
SUBJECT of the message.

Reply via email to