mirror of https://github.com/apache/cloudstack.git
Merge pull request #779 from karuturi/findbugs-pr-755
Fixing findbugs error due to PR #755 mergeissue: Boxing/unboxing to parse a primitive * pr/779: Fixing findbugs error due to PR #755 merge Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
commit
8442bd87d7
|
|
@ -85,7 +85,7 @@ public class ADLdapUserManagerImpl extends OpenLdapUserManagerImpl implements Ld
|
|||
boolean isDisabledUser = false;
|
||||
String userAccountControl = LdapUtils.getAttributeValue(result.getAttributes(), _ldapConfiguration.getUserAccountControlAttribute());
|
||||
if (userAccountControl != null) {
|
||||
int control = Integer.valueOf(userAccountControl);
|
||||
int control = Integer.parseInt(userAccountControl);
|
||||
// second bit represents disabled user flag in AD
|
||||
if ((control & 2) > 0) {
|
||||
isDisabledUser = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue