Skip to content
Permalink
Browse files
Fix for DIRAPI-344
  • Loading branch information
elecharny committed Jun 13, 2019
1 parent b228f52 commit 9ba50f5654425fc7dfa3cf0a4ab8e14348a3b935
Showing 1 changed file with 9 additions and 2 deletions.
@@ -95,8 +95,15 @@ public String normalize( String value, PrepareString.AssertionType assertionType
return oid;
}

// if all else fails
throw new LdapOtherException( I18n.err( I18n.ERR_13725_CANNOT_HANDLE_NAME_AND_OPTIONAL_UID_NORM, value ) );
// if all else fails and the schema is not in relaxed mode, throw an exception
if ( schemaManager.isStrict() )
{
throw new LdapOtherException( I18n.err( I18n.ERR_13725_CANNOT_HANDLE_NAME_AND_OPTIONAL_UID_NORM, value ) );
}
else
{
return value;
}
}


0 comments on commit 9ba50f5

Please sign in to comment.