Retrive Data from Ldap

Hi All:

Iam working for a client that want to create a corporate portal which

involves creating a common sign on for their application using ldap

authentication.

After authentication , i'm trying to get the userid and password from

the ldap ,since the password is encryped ,we have another attribute

which stores the password in clear text. I'm trying to read the

firstname,lastname,userid, password(from new attribute), but it returns

me a nothing .

I get this exception message in iwtDesktop logs

ERROR: ProviderManager.initProvider()

com.iplanet.portalserver.providers.ProfileProviderException: error

loading user

profile

com.iplanet.portalserver.profile.ProfileException: Undefined attribute

or privil

ege

at

com.iplanet.portalserver.providers.ProfileProviderAdapter.load(Profil

eProviderAdapter.java:751)

at

com.iplanet.portalserver.providers.ProfileProviderAdapter.init(Profil

eProviderAdapter.java:96)

at

com.iplanet.portalserver.desktop.ProviderManager.initProvider(Provide

*********************************************************

I have a Jsp page in which i try to read it from the xml files

JSPProvider provider =

(JSPProvider)pageContext.getAttribute("JSPProvider");

provider.loadProperties("iwtAuthClientMembership-*");

Session sess = provider.getSession();

Profile profile = sess.getUserProfile();

String uid = sess.getClientID();

String ldappword =

profile.getAttributeString("iwtAuthClientMembership-storepassword");

Thanks

Sunil

[1685 byte] By [] at [2008-2-10]