Search in sources :

Example 1 with PasswordPolicyControl

use of org.ldaptive.control.PasswordPolicyControl in project cas by apereo.

the class Beans method getPooledBindAuthenticationHandler.

private static PooledBindAuthenticationHandler getPooledBindAuthenticationHandler(final AbstractLdapAuthenticationProperties l, final PooledConnectionFactory factory) {
    final PooledBindAuthenticationHandler handler = new PooledBindAuthenticationHandler(factory);
    handler.setAuthenticationControls(new PasswordPolicyControl());
    return handler;
}
Also used : PooledBindAuthenticationHandler(org.ldaptive.auth.PooledBindAuthenticationHandler) PasswordPolicyControl(org.ldaptive.control.PasswordPolicyControl)

Example 2 with PasswordPolicyControl

use of org.ldaptive.control.PasswordPolicyControl in project cas by apereo.

the class LdapUtils method getPooledBindAuthenticationHandler.

private static PooledBindAuthenticationHandler getPooledBindAuthenticationHandler(final AbstractLdapAuthenticationProperties l, final PooledConnectionFactory factory) {
    final PooledBindAuthenticationHandler handler = new PooledBindAuthenticationHandler(factory);
    handler.setAuthenticationControls(new PasswordPolicyControl());
    return handler;
}
Also used : PooledBindAuthenticationHandler(org.ldaptive.auth.PooledBindAuthenticationHandler) PasswordPolicyControl(org.ldaptive.control.PasswordPolicyControl)

Aggregations

PooledBindAuthenticationHandler (org.ldaptive.auth.PooledBindAuthenticationHandler)2 PasswordPolicyControl (org.ldaptive.control.PasswordPolicyControl)2