Skip to content
Permalink
Browse files
FC-291 - Support Relax Control
  • Loading branch information
shawnmckinney committed Apr 6, 2021
1 parent 9dffb9c commit 5f4a7ed7a1faa4c9caaabea347beb2d69132ac34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
@@ -2133,7 +2133,7 @@ String deletePwPolicy( User user ) throws UpdateException

mods.add( new DefaultModification( ModificationOperation.REMOVE_ATTRIBUTE, OPENLDAP_POLICY_SUBENTRY ) );
ld = getAdminConnection();
modify( ld, userDn, mods, user );
modify( ld, userDn, mods, user, true );
}
catch ( LdapException e )
{
@@ -259,6 +259,7 @@ protected void add( LdapConnection connection, Entry entry, FortEntity entity, b
{
addRequest.addControl( new RelaxControlImpl() );
}
// TODO: verify response has no errors:
AddResponse response = connection.add( addRequest );
}

@@ -326,6 +327,7 @@ protected void modify( LdapConnection connection, String dn, List<Modification>
COUNTERS.incrementMod();
audit( mods, entity );
ModifyRequest modRequest = new ModifyRequestImpl();
// TODO: find a better way:
for( Modification mod : mods )
{
modRequest.addModification( mod );
@@ -335,6 +337,7 @@ protected void modify( LdapConnection connection, String dn, List<Modification>
modRequest.addControl( new RelaxControlImpl() );
}
modRequest.setName( new Dn( dn ) );
// TODO: verify response has no errors:
ModifyResponse response = connection.modify( modRequest );
}

0 comments on commit 5f4a7ed

Please sign in to comment.