mirror of https://github.com/apache/activemq.git
Merge pull request #476 from jbonofre/AMQ-6833
[AMQ-6833] Cleanly close DirContext in LDAPLoginModule when the authentication is complete
This commit is contained in:
commit
6e650841fd
|
@ -332,6 +332,10 @@ public class LDAPLoginModule implements LoginModule {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (context != null) {
|
||||||
|
close(context);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue