[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Password read error
- To: "'Openldap list'" <openldap-software@OpenLDAP.org>
- Subject: Password read error
- From: Rafa <rafael.cano.ext@juntadeandalucia.es>
- Date: Tue, 19 Oct 2004 09:34:00 +0200
- In-reply-to: <009801c3f307$080c2480$0e01a8c0@CELLO>
- References: <009801c3f307$080c2480$0e01a8c0@CELLO>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312
I have a problem reading passwords from an ldap using JNDI
.
Attribute at=attributes.get("userPassword");
byte[] b=null;
if(at!=null){
b=(byte[])at.get(0);
}// else print("null!");
This code works fine, but sometimes 'at' is null. I've checked the
entries and searching (!(userPassword=*)) no rows are returned. What is
wrong? Do I have to use character encoding, i. e. "UTF-8"?
Thanks!