Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Standard way to make LDAP calls in ADF

user617801Mar 16 2015 — edited Mar 17 2015

Hi,

I am working in ADF 11.1.1.7.1 and have a requirement to integrate with LDAP. I need to create a UI to 'Reset User Password' in ADF. We do not have any api's/wsdl from LDAP team to integrate.

I am assuming I need to directly make LDAP calls to reset the password. I may extend this functionality in future for Provisioning, creating new pwd's etc.,

Please suggest me the best/standard/safe method to modify LDAP attributes. Any examples/blogs/articles would be appreciated.

Thanks.

Comments

jflack

I've used two approaches for this, and either works, so choose what works for you.

One is to create a POJO that provides the LDAP services that you need.  You can do this with JNDI with classes that are part of the standard Java libraries - see http://docs.oracle.com/javase/tutorial/jndi/ldap/jndi.html for a good tutorial.  Or there are good LDAP libraries available that may make this a bit easier - I like UnboundId - see https://www.ldap.com/unboundid-ldap-sdk-for-java.  Once you've written your POJO in the Model project, you can expose its methods to ADF as a data control.

I've also built my LDAP interface in the database with the DBMS_LDAP built-in package.  You could then extend an Application Module to call it.  Or what I did was to create a package that shows LDAP information in a set of nested tables, then built views with INSTEAD OF triggers on top of the packages.  Then I created ADF BC Entity Objects and View Objects to expose this to my ADF application.

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 14 2015
Added on Mar 16 2015
2 comments
1,428 views