LDAP Service Provider
This section discusses how to enable authentication against a Directory Services using: LDAP Service Provider for JNDI. LDAP Service Provider for JNDI provides access to eDirectory and other directories using LDAP (Lightweight Directory Access Protocol), an Internet standard for accessing directory information. JNDI (Java Naming and Directory Interface) provides a consistent interface across multiple services through the use of service providers. LDAP Service Provider for JNDI is LDAP v3-compliant and includes support for the virtual list views and server-side sorting controls available on eDirectoryeDirectory. Because it uses LDAP, it has no dependencies on the Novell Client software. Dependencies LDAP Service Provider for JNDI requires a Sun Microsystems Java 2 SDK, Standard Edition, version 1.2 (http://java.sun.com/products/jdk/1.2/) for the platform you are developing on and a Java Virtual Machine (JVM) for the application's target platform. If your target platform is the NetWare server, a JVM v1.1 is included in this component. Download it from: http://developer.novell.com. JNDI JNDI (Java Naming and Directory Interface) is an industry-wide, open interface that gives developers a common interface for navigating the many naming systems that exist in the computing world today. JNDI greatly simplifies the code needed to browse directory services such as NDS, X.500, and LDAP. JNDI information can be found at http://java.sun.com/products/jndi. JNDI is owned by JavaSoft and is distributed by Java licensees. JNDI is part of the JavaSoft Enterprise API. The LDAP Service Provider for JNDI uses JNDI 1.2. LDAP LDAP (Lightweight Directory Access Protocol) is becoming an Internet standard for accessing directory information, allowing LDAP-enabled applications to access multiple directories. LDAP v3 supports such features as secure connections through SSL or SASL, entry management, schema management, and LDAP extensions and controls for expanding LDAP's functionality. The LDAP Service Provider for JNDI is compliant with LDAP v3 and supports SSL connections. Documentation We've enabled Start menu documentation entries. After you have installed the documentation, use the "NDK Documents" entry on your Start menu to quickly locate and access NDK documentation. To read or print the documentation, you need Adobe Acrobat Reader, a free download from http://www.adobe.com. The documents in this download were created as standalone files; therefore, links between files in this download and links to files in other downloads will not resolve. The download includes the following files:
Dependencies The LDAP Service Provider for JNDI requires a JDK 1.2 for the platform you are developing on, Java Secure Socket Extension (JSSE), and a JVM for the application's target platform. If your application requires secure connections, it also requires Novell SSL for Java. If your application requires obtaining effective rights, you need the LDAP server and the extensions that are available in the next release of eDirectory. To obtain a copy of eDirectory 8.5, see Novell's developer product site: http://developer.novell.com. If you used an early beta version of eDirectory 8.5, be aware that the OIDs for the effective rights extensions changed for beta 5 and the final release. The getEffectivePrivilegesRequest extension now has 2.16.840.1.113719.1.27.100.33 as its OID, and the getEffectivePrivilegesResponse extension has 2.16.840.1.113719.1.27.100.34 as its OID. List of Files There are five files in the download:
SSL Integration The LDAP Service Provider for JDNI does not support mutual authentication, but it supports server-side authentication. In server-side authentication, the client receives a certificate from the server and can then use the certificate to ensure that authentication takes places to a trusted host. For this type of authentication to succeed, the LDAP server must have a certificate to use with SSL, the Java client must have a place to store the certificate, and the LDAP service provider must be set to use SSL. Setting Up the LDAP Server The LDAP server must be configured to use SSL. For instructions, see the product documentation that came with your version of eDirectory or see the documentation at http://www.novell.com/documentation/lg/ndsse/ndsseenu/data/a2iiifa.html. Setting Up the KeyStore for the Java Client The Java client must have a KeyStore for storing root certificates. The following steps explain how to use the KeyTool in JDK 1.2 to create a KeyStore with a certificate.
ssl_sdk1.2.jar
security.provider.1=com.novell.service.security.
keytool -import -file c:\test\ssl.der -keystore
the KeyStore file.
ssl.keystore = sslkey.keystore
User home Enabling the LDAP Service Provider for SSL Connections To integrate Novell's SSL solution with the LDAP service provider, complete the following steps.
jsse.jar
"java.naming.factory.initial","com.sun.jndi.ldap.L
// Sample code file: Env.java
|
|||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||