Please find following sample data source configuration to access jdbc using LDAP connection.
<datasource> <name>DATASOURCE_NAME</name> <description>The datasource used for BPS</description> <jndiConfig> <name>jdbc/JNDI_NAME</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url>jdbc:oracle:thin:@ldap://localhost:389/cn=wso2dev2,cn=OracleContext,dc=test,dc=com</url> <username>DB_USER_NAME</username> <password>DB_PASSWORD</password> <driverClassName>oracle.jdbc.OracleDriver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1 FROM DUAL</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource>