I am using Novell's Clientless JNDI implementation. How...
Articles and Tips: qna
01 Nov 2002
Q.
I am using Novell's Clientless JNDI implementation. How would I check whether a particular Organizational Unit (OU) exists or not? I have a list of OUs and I am writing a function that creates an OU if it doesn't exist. Can this be done easily? Also, what does it mean to create something (user or OU) "with a Session?" Thanks.
A.
You can easily verify the existence of an OU by trying to access it through a "lookup," if it fails, then it doesn't exist. An NJCL Session is a different way to attach to a server and authenticate to the tree (the standard way is to attach to "any" server and authenticated to the tree). The main advantage of Sessions is that you can authenticate multiple times as different users from the same application.
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.