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

Password read error



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!