This section covers the following topics:
The naming convention for object names followed by Novell’s JNDI service providers is not the same as that of traditional NetWare names. For example, to specify the complete name and path of a file on a NetWare server you would use the following form:
MY_SERVER/SYS:PUBLIC\MYFILE
With Novell’s JNDI service providers, assuming the initial context is the NetWareInitialContext, the same file's path would be
Servers/MY_SERVER/FileSystem/SYS/PUBLIC/MYFILE
Names used in JNDI naming conventions include Trees, Servers, Bindery, FileSystem, and NCPExtensions. These names are keywords that must be used in name strings at their appropriate location. Novell’s JNDI service providers use these keywords to resolve names to the proper objects.
The naming convention that you use depends on your initial context factory (see Initial Context), which determines what namespace you are using. See the following table to find a list of object names for a given namespace.
Use NetWare object names relative to the NetWare initial context (NW_INITIAL_CONTEXT_FACTORY), which could be thought of as the root of Novell’s NetWare naming systems.
Servers/My_Server - A server
Servers/My_Server/Bindery - The bindery root
Servers/My_Server/Bindery/A-SERVER+4 - A bindery object (server)
Servers/My_Server/FileSystem - The file system root
Servers/My_Server/FileSystem/My_Volume - A file system volume
Servers/My_Server/FileSystem/My_Volume/My_Dir/my_file.txt - A file
Servers/My_Server/NCPExtensions - The NCPExtensions root
Servers/My_Server/NCPExtensions/SNMP - An NCPExtensions object
Trees/My_Tree - The root of the tree
Trees/My_Tree/My_Org - An organization in the tree
Trees/My_Tree/O=My_Org - An organization in the tree
Trees/My_Tree/My_Org_Unit.My_Org - An organizational unit within the organization
Trees/My_Tree/OU=My_Org_Unit.O=My_Org - An organizational unit within the organization
Trees/My_Tree/My_User.My_Org_Unit.My_Org - A user in the organizational unit
Trees/My_Tree/CN=My_User.OU=My_Org_Unit.O=My_Org - A user in the organizational unit
NDS names have the following properties:
For example:
My_User.My_Org_Unit.My_Org
not
My_Org.My_Org_Unit.My_User
Use NDS object names relative to the NDS initial context (NDS_INITIAL_CONTEXT_FACTORY), which could be thought of as the root of Novell’s NDS naming systems.
My_Tree/CN=My_Server.O=My_Org - A server
My_Tree/CN=My_Server.O=My_Org/Bindery - The bindery root
My_Tree/CN=My_Server.O=My_Org/Bindery/A-SERVER+4 - A bindery object
My_Tree/CN=My_Server.O=My_Org/FileSystem - A file sytem root
My_Tree/CN=My_Server.O=My_Org/FileSystem/My_Volume - A file system volume
My_Tree/CN=My_Server.O=My_Org/FileSystem/My_Volume/My_Dir/my_file.txt - A file system file
My_Tree/CN=My_Server.O=My_Org/NCPExtensions - The NCPExtensions root
My_Tree/CN=My_Server.O=My_Org/NCPExtensions/SNMP - An NCPExtensions object
My_Tree - The root of the tree
My_Tree/My_Org - An organization in the tree
My_Tree/O=My_Org - An organization in the tree
My_Tree/My_Org_Unit.My_Org - An organizational unit within the organization
My_Tree/OU=My_Org_Unit.O=My_Org - An organizational unit within the organization
My_Tree/My_User.My_Org_Unit.My_Org - A user in the organizational unit
My_Tree/CN=My_User.OU=My_Org_Unit.O=My_Org- A user in the organizational unit
NDS object names have the following properties:
For example:
My_User.My_Org_Unit.My_Org
not
My_Org.My_Org_Unit.My_User
Use Server object names relative to the ServerDirContext (SERVER_INITIAL_CONTEXT_FACTORY), which could be thought of as the root of Novell’s Server naming system.
My_Server - A server object.
My_Server/Bindery - The bindery root
My_Server/Bindery/A-SERVER+4 - A bindery object (server)
My_Server/FileSystem - The file system root
My_Server/FileSystem/My_Volume - A file system volume
My_Server/FileSystem/My_Volume/My_Dir/my_file.txt - A file
My_Server/NCPExtensions - The NCPExtensions root
My_Server/NCPExtensions/SNMP - An NCPExtensions object
You can get NDS objects directly from NDSInitialContext (See NDS Namespace for how this is done).
To get NDS objects in indirectly you must first federate into the bindery, then use the extended tree name obtained by calling list() to federate into the NDS namespace. An example of this is as follows:
My_Server/Bindery/<tree name>+<extension>+278>/
Use File System object names relative to the FileSystem initial context (FS_INITIAL_CONTEXT_FACTORY), which could be thought of as the root of Novell’s File System naming system.
My_Server - The file system root
My_Server/My_Volume - A file system volume
My_Server/My_Volume/My_Dir/my_file.txt - A file