updateUserAttribute(ldapAttrUidNumber + this.attribute.getFriendlyNameParameter(), String.valueOf((Integer) this.attribute.getValue()), LdapOperation.REPLACE_ATTRIBUTE, this.user);
} else {
if(ldapConnector.userAttributeExist(this.user, ldapAttrUidNumber + this.attribute.getFriendlyNameParameter())) {
updateUserAttribute(ldapAttrUidNumber + this.attribute.getFriendlyNameParameter(), null, LdapOperation.REMOVE_ATTRIBUTE, this.user);
updateUserAttribute(ldapAttrLogin + this.attribute.getFriendlyNameParameter(), (String) this.attribute.getValue(), LdapOperation.REPLACE_ATTRIBUTE, this.user);
if(ldapProperties.getLdapLoginNamespace().toLowerCase().equals(this.attribute.getFriendlyNameParameter())) {
updateUserAttribute(ldapAttrUserPassword, "{SASL}" + this.attribute.getValue() + "@" + ldapProperties.getLdapLoginNamespace(), LdapOperation.REPLACE_ATTRIBUTE, this.user);
if(ldapConnector.userAttributeExist(this.user, ldapAttrLogin + this.attribute.getFriendlyNameParameter())) {
updateUserAttribute(ldapAttrLogin + this.attribute.getFriendlyNameParameter(), null, LdapOperation.REMOVE_ATTRIBUTE, this.user);
if(ldapProperties.getLdapLoginNamespace().toLowerCase().equals(this.attribute.getFriendlyNameParameter())) {
if(ldapConnector.userAttributeExist(this.user, ldapAttrUserPassword)) {
updateUserAttribute(ldapAttrUserPassword, null, LdapOperation.REMOVE_ATTRIBUTE, this.user);