mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fixing findbugs error due to PR #755 merge
issue: Boxing/unboxing to parse a primitive
This commit is contained in:
parent
b6e212f2c7
commit
b69a69def7
@ -85,7 +85,7 @@ public class ADLdapUserManagerImpl extends OpenLdapUserManagerImpl implements Ld
|
|||||||
boolean isDisabledUser = false;
|
boolean isDisabledUser = false;
|
||||||
String userAccountControl = LdapUtils.getAttributeValue(result.getAttributes(), _ldapConfiguration.getUserAccountControlAttribute());
|
String userAccountControl = LdapUtils.getAttributeValue(result.getAttributes(), _ldapConfiguration.getUserAccountControlAttribute());
|
||||||
if (userAccountControl != null) {
|
if (userAccountControl != null) {
|
||||||
int control = Integer.valueOf(userAccountControl);
|
int control = Integer.parseInt(userAccountControl);
|
||||||
// second bit represents disabled user flag in AD
|
// second bit represents disabled user flag in AD
|
||||||
if ((control & 2) > 0) {
|
if ((control & 2) > 0) {
|
||||||
isDisabledUser = true;
|
isDisabledUser = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user