1 Reply Latest reply on Oct 5, 2014 10:52 AM by Ken Kin

    Can JDBC-LDAP bridge driver be added as datasource?

    slimbim Newbie

      Can JDBC-LDAP bridge driver (http://www.openldap.org/jdbcldap/) be added as datasource in JBoss AS 7.1? Have a need to query LDAP via SQL statements...

      If so, I am not familiar with details of the configurations/settings required (e.g. exact module.xml content, class/driver names etc.)...

       

      Could someone guide me on how this can be added?

       

      Thank you.

        • 1. Re: Can JDBC-LDAP bridge driver be added as datasource?
          Ken Kin Newbie

          Yes, it looks like the following in your springframework context:

           

          <bean id="ldapDataSource" class="org.springframework.jdbc.datasource.SingleConnectionDataSource" destroy-method="destroy">
             <property name="driverClassName" value="com.octetstring.jdbcLdap.sql.JdbcLdapDriver" />
             <property name="url" value="jdbc:ldap://host.yourdomain.com" />
             <property name="username" value="username" />
             <property name="password" value="password" />

              </bean>