how to read password hashes

This commit is contained in:
Peter Hormanns 2020-04-01 13:41:44 +02:00
parent 9fc2991cf6
commit 2bfcfefe04
2 changed files with 2 additions and 1 deletions

View File

@ -80,5 +80,5 @@ public class PasswordValidator {
final String encode = BASE64.encodeAsString(hashBytes);
return LABEL + new String(encode);
}
}

View File

@ -38,6 +38,7 @@ public class UsersDAO {
usr.setDisplayname(session.getStringValue(attribs, "displayName"));
usr.setLogin(session.getStringValue(attribs, "uid"));
usr.setDn(result.getNameInNamespace());
// usr.setPassword(new String(session.getBytesValue(attribs, "userPassword")));
usersHash.put(usr.getDn(), usr);
}
return usersHash;