|
User Management Guide |
This chapter describes how to configure an authentication realm for your Director project. It has these sections:
For background information about the Directory subsystem, see
Understanding Authentication Realms.
Director provides pluggable realms for supported J2EE application server vendors, as well as LDAP support. You select a realm when you create a new project using the Director Project Wizard in exteNd Workbench.
For most realm configurations (excluding LDAP realms), Workbench will automatically configure the realm based on your selection in the Wizard. For LDAP realms more setup is required, as described in Configuring an LDAP realm.
Here is the list of available realm configurations
An LDAP configuration allows you to integrate your Novell eDirectory LDAP realm with the Directory and User subsystems. You specify LDAP configuration properties when you create a project using the Director Project Wizard. These properties are described in LDAP directory configuration properties and LDAP user configuration properties.
You must also do the following before you deploy your project:
Import the UUID auxiliary class provided with the Director install. See Configuring and using SSL for LDAP connections.
Set up your LDAP server to use SS, if applicable. See Configuring and using SSL for LDAP connections.
When you select an LDAP realm using the Project Wizard in Workbench, you get this panel related to the Directory subsystem integration:
When you select an LDAP realm using the Project Wizard in Workbench, you get this panel related to the User subsystem integration:
Before you deploy a project that implements one of the LDAP application server realms, you need to import the provided auxiliary class specified in the UUID auxiliary class property. The purpose of this class is to add a UUID attribute that allows the Director and User subsystem APIs to access the LDAP realm.
You import this class using the NDS Import Wizard in the Novell ConsoleOne eDirectory tool.
To import the UUID auxiliary class in ConsoleOne:
With the NDS container selected in ConsoleOne, select Wizards>NDS Import/Export.
Click Import LDIF File and choose Next.
Navigate to the ldif file in your Director installation path and select it (it is located at bin/extElemImport.ldif). Click Next.
Verify the LDAP host name and port, choose Authenticated Login, and specify your administrator DN (distinguished name) and password.
Verify the information and click Finish.
NOTE: SSL connections are slower than plain or clear-text connections. The initial portal connection can take up to 30 seconds to be established.
To configure the LDAP server to support SSL:
In ConsoleOne, open the properties on the LDAP Server object that represents the LDAP server you are using with Director.
For the SSL Certificate field, select an SSL Certificate object.
To export the Trusted Root Certificate:
Open the properties on the SSL certificate object that you configured in the preceding procedure.
Press Export and save the file in binary DER format, typically named TrustedRootCert.der.
To download and install the Java Secure Socket Extension (JSSE):
NOTE: This step is required only if your server is running with a JRE older than 1.4 and is not already configured to use JSSE.
Follow the installation instructions for JSSE summarized as follows:
Copy JSSE.JAR, JNET.JAR and JCERT.JAR to the server's JRE extensions directory (for example: jre/lib/ext).
Find and edit the java.security file, located in the lib/security directory of the server's JRE (for example: jre/lib/security/java.security).
Follow the directions at the beginning of the document to add the JSSE SSL provider:
Add a line to the security providers section using the format below, replacing name with the next provider number in succession:
security.provider.name =com.sun.net.ssl.internal.ssl.Provider
To import the Trusted Root Certificate into your cacerts or jssecacerts trust store file:
Find the cacerts or jssecacerts file. It is located in the lib/security directory of the server's JRE (for example: jre/lib/security/cacerts).
Find keytool, located in the /bin folder relative to your Java home folder.
NOTE: You must use a keytool that comes with JVM 1.3 or higher.
Run the following command, making replacements listed below:
keytool -import -alias aliasName -file TrustedRootCert.der -keystore cacerts -storepass changeit
To configure Director to use SSL in the Directory Service:
Click the Directory tab and then click Directory Ldap Options lower tab.
Change the LDAP host to include the SSL port for eDirectory (for example: localhost:636).
When you complete the Project Wizard, Workbench generates two descriptors containing editable key/value pairs representing realm and Directory subsystem configuration properties:
|
Descriptor |
Contents |
For information, see |
|---|---|---|
|
config.xml |
Stores the realm configuration properties |
The section on how the subsystems register themselves in the Core Development Guide |
|
services.xml |
Stores the Directory subsystem service configuration |
Generally you only need to edit these files directly for special cases. See Editing or changing realms.
The descriptors are located in your project tree in the DirectoryService-conf folder in the DirectoryService.jar.
For more information about where project files are located, see the section on Director project structure in the Core Development Guide.
This section applies to the non-ldap exteNd application server realm only.
By default, the writable realm for the Novell exteNd application server is SilverUsers. You can optionally configure your readable realm to be Windows NT, LDAP, or NIS+, while keeping SilverUsers as your security provider.
NOTE: If you are accessing an external LDAP realm through Novell eDirectory, the exteNd ServerLdap realm is the recommended LDAP configuration. See Configuring an LDAP realm.
To configure a different security provider in exteNd:
In Workbench, open config.xml for the Directory subsystem.
For more information about where project files are located, see the section on Director project structure in the Core Development Guide.
For each key/value pair, double-click the Key field and the Value field and enter these values:
For Windows NT:
For LDAP (read-only):
NOTE: If you are accessing an external LDAP realm through Novell eDirectory, the exteNd ServerLdap realm is the recommended LDAP configuration. See Configuring an LDAP realm.
For NIS+:
NOTE: If you want to reconfigure your primary realm, see Configuring a primary realm.
For more information, see deploying a Director project in the Core Development Guide.
Configuring a primary realm By default, the readable realm is your primary realm. For API method calls, the Directory subsystem checks the primary realm first.
To specify your writable realm as the primary realm:
Open your project's Directory services subsystem descriptor:
...\library\DirectoryService\DirectoryService-conf\services.xml
Enter the requested values as shown:
For more information, see the section on deploying a Director project in the Core Development Guide.
To write a custom pluggable realm, you need to implement the interface com.sssw.fw.directory.EbiRealm (for a readable realm) or EbiWriteableRealm (for a writable realm).
For more information, see
Writing a custom realm.
In Workbench, open your project's Directory service descriptor, located at:
...\DirectoryService\DirectoryService-conf\services.xml
:
In Workbench, open your project's Directory subsystem configuration file, located at:
... \DirectoryService\DirectoryService-conf\config.xml
If your realm is readable-only, enter a key/value pair that matches the value you entered in services.xml:
If the custom realm is readable/writable, add the same value with this key:
For more information, see the section on deploying a Director project in the Core Development Guide.
You can edit the current realm configurations or change realms and redeploy your project in Workbench.
To edit or change a realm configuration:
With your Director project open in Workbench, choose Project>Director Project>Configuration.
To edit or change a realm configuration choose the Directory tab at the top of the form:
To configure or reconfigure an LDAP realm, select the Directory LDAP Options tab and enter your changes on the form.
To edit the User subsystem LDAP options, select the User tab at the top of the form and enter your changes on the form.
For more information, see the section on deploying a Director project in the Core Development Guide.
|
User Management Guide |
Copyright © 2000, 2001, 2002, 2003 SilverStream Software, LLC, a wholly owned subsidiary of Novell, Inc. All rights reserved.