Solved

Weblogic OpenLDAPAuthenticator : How to get LDAP fields (such as homephone) of users in application

Posted on 2010-09-10
3
1,091 Views
Last Modified: 2013-12-10
Hello !

I have a Weblogic Domain with a security realm containing an LDAPAuthenticator ...

My problem : i can authenticate in the application with a user in the Ldap, but i need to get some fields stored in the Ldap such as :
- email
- phone number
- ...

I don't know how to do that. Is there a way to get an object representing the ldap user, and by this way get the ldap attributes ?

Thanks for your responses.
0
Comment
Question by:cobol60
  • 2
3 Comments
 
LVL 10

Expert Comment

by:ECollin
ID: 33646954
0
 
LVL 1

Author Comment

by:cobol60
ID: 33647176
The problem is that i don't want to reconnect via another ldap library ...

I MUST use weblogic authentication because the ldap schema can be altered in the future and we need to be able to configure the ldap requesting via the Weblogic console and NOT to redeploy the application.

So the solution i need could be :
- getting an object from the weblogic authentication subsystem
- on this object getting the ldap attributes.

Can i do this with the library you mentionned ?

if Yes, could you provide a sample ?

Thanks
0
 
LVL 10

Accepted Solution

by:
ECollin earned 500 total points
ID: 33676229
you won' be able to retrieve ldap objects read by the ldap authenticator. This component will run as a black box inside the security framework.
I think there is a confusion between authenticating users and retrieving profile information such as email, firstname... It's not the responibility of the weblogic server security framework to load profile information. You have to write and deploy your own component to achieve this.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
session migration servlets 2 42
even odd program using while loop 3 60
iterator/ListIterator approach 17 41
Tagging and Merging on Branch 1 30
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question