[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Error userpassword value from search result.



I believe the userPassword is returned to you Base64 encoded. Use any of the
Base64 java classes available to decode it (ex.
org.apache.xerces.utils.Base64)

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Haixiang GONG
> Sent: Friday, June 29, 2001 11:08 AM
> To: openldap-software@OpenLDAP.org
> Subject: Error userpassword value from search result.
>
>
> Hello all,
>
> I can not get correct value from the "userpassword" attribute.
>
> Linux 2.2.4
> LDAP 2.0.11
> development tools: Tomcat/JSP/JNDI
>
> I store the crypt user password in the "userpassword" like this:
> USERPASSWORD: {crypt}n1ljB4QXe7/Zw
>
> but when I use JSP to get the value, it search result become :
> USERPASSWORD: [B@2bb514
>
> I try to use PHP, and get the same result. But when I use LDAP
> Browser, the value if correct shown there.
>
> Can someone tell me how to change the formation of it?
>
> Thank you.
>