Skip to content

Commit

Permalink
Use uid instead of displayName to do password change
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry de Graaff committed Apr 4, 2016
1 parent 258a7b8 commit f3038ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void preModify(Account acct, String newPassword, Map context, Map<String,
System.setProperty("javax.net.ssl.trustStore", "/opt/zimbra/java/jre/lib/security/cacerts");
System.setProperty("javax.net.debug", "all");
ADConnection adc = new ADConnection(domain);
adc.updatePassword(acct.getDisplayName(), newPassword);
adc.updatePassword(acct.getUid, newPassword);
} catch (NamingException ex) {
throw AccountServiceException.PERM_DENIED(ex.toString());
}
Expand All @@ -48,4 +48,4 @@ public void preModify(Account acct, String newPassword, Map context, Map<String,
public void postModify(Account acct, String newPassword, Map context) {
// do nothing
}
}
}

0 comments on commit f3038ef

Please sign in to comment.