skip to main content
Using LDAP with the OpenAccess SDK Clients : Using an LDAP Server as Your JNDI Service Provider
 

Using an LDAP Server as Your JNDI Service Provider

You can use an LDAP server as your JNDI service provider for storing connection information for the JDBC Client. This information has been taken from RFC 2713 Schema for Representing Java Objects in an LDAP Directory, which can be found at http://www.faqs.org/rfcs/rfc2713.html.
An example of an LDAP entry definition for JDBC is shown below:

dn: cn=IP on myServer,ou=myUser,ou=USERS,o=Development
cn: DAM on myServerobjectClass: top
objectClass: javaContainer
objectClass: javaObject
objectClass: javaNamingReference
javaReferenceAddress: #0#description#
javaReferenceAddress: #1#portNumber#19986
javaReferenceAddress: #2#serverName#myServerjavaReferenceAddress: #3#serverDataSource#Default
javaReferenceAddress: #4#encrypted#1
javaReferenceAddress: #5#customproperties#(A=abc;B=xyz)
javaFactory: com.ddtek.jdbcx.openaccess.OpenAccessDataSourceFactory
javaClassName: com.ddtek.jdbcx.openaccess.OpenAccessDataSource