You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2011/04/17 09:56:08 UTC
svn commit: r1094116 -
/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Author: kayyagari
Date: Sun Apr 17 07:56:08 2011
New Revision: 1094116
URL: http://svn.apache.org/viewvc?rev=1094116&view=rev
Log:
o pass true flag to the constructor to create ppolicy response
Modified:
directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java?rev=1094116&r1=1094115&r2=1094116&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java Sun Apr 17 07:56:08 2011
@@ -371,7 +371,7 @@ public class AuthenticationInterceptor e
if ( isPPolicyReqCtrlPresent )
{
PasswordPolicyDecorator responseControl =
- new PasswordPolicyDecorator( directoryService.getLdapCodecService() );
+ new PasswordPolicyDecorator( directoryService.getLdapCodecService(), true );
responseControl.getResponse().setPasswordPolicyError( e.getErrorCode() );
addContext.addResponseControl( responseControl );
}
@@ -528,7 +528,7 @@ public class AuthenticationInterceptor e
if ( isPPolicyReqCtrlPresent )
{
PasswordPolicyDecorator responseControl =
- new PasswordPolicyDecorator( directoryService.getLdapCodecService() );
+ new PasswordPolicyDecorator( directoryService.getLdapCodecService(), true );
responseControl.getResponse().setPasswordPolicyError( PasswordPolicyErrorEnum.CHANGE_AFTER_RESET );
modifyContext.addResponseControl( responseControl );
}
@@ -545,7 +545,7 @@ public class AuthenticationInterceptor e
if ( isPPolicyReqCtrlPresent )
{
PasswordPolicyDecorator responseControl =
- new PasswordPolicyDecorator( directoryService.getLdapCodecService() );
+ new PasswordPolicyDecorator( directoryService.getLdapCodecService(), true );
responseControl.getResponse().setPasswordPolicyError( PasswordPolicyErrorEnum.MUST_SUPPLY_OLD_PASSWORD );
modifyContext.addResponseControl( responseControl );
}
@@ -560,7 +560,7 @@ public class AuthenticationInterceptor e
if ( isPPolicyReqCtrlPresent )
{
PasswordPolicyDecorator responseControl =
- new PasswordPolicyDecorator( directoryService.getLdapCodecService() );
+ new PasswordPolicyDecorator( directoryService.getLdapCodecService(), true );
responseControl.getResponse().setPasswordPolicyError( PasswordPolicyErrorEnum.PASSWORD_MOD_NOT_ALLOWED );
modifyContext.addResponseControl( responseControl );
}
@@ -575,7 +575,7 @@ public class AuthenticationInterceptor e
if ( isPPolicyReqCtrlPresent )
{
PasswordPolicyDecorator responseControl =
- new PasswordPolicyDecorator( directoryService.getLdapCodecService() );
+ new PasswordPolicyDecorator( directoryService.getLdapCodecService(), true );
responseControl.getResponse().setPasswordPolicyError( PasswordPolicyErrorEnum.PASSWORD_TOO_YOUNG );
modifyContext.addResponseControl( responseControl );
}
@@ -604,7 +604,7 @@ public class AuthenticationInterceptor e
if ( isPPolicyReqCtrlPresent )
{
PasswordPolicyDecorator responseControl =
- new PasswordPolicyDecorator( directoryService.getLdapCodecService() );
+ new PasswordPolicyDecorator( directoryService.getLdapCodecService(), true );
responseControl.getResponse().setPasswordPolicyError( e.getErrorCode() );
modifyContext.addResponseControl( responseControl );
}
@@ -635,7 +635,7 @@ public class AuthenticationInterceptor e
if ( isPPolicyReqCtrlPresent )
{
PasswordPolicyDecorator responseControl =
- new PasswordPolicyDecorator( directoryService.getLdapCodecService() );
+ new PasswordPolicyDecorator( directoryService.getLdapCodecService(), true );
responseControl.getResponse().setPasswordPolicyError( PasswordPolicyErrorEnum.PASSWORD_IN_HISTORY );
modifyContext.addResponseControl( responseControl );
}
@@ -878,7 +878,7 @@ public class AuthenticationInterceptor e
boolean isPPolicyReqCtrlPresent = bindContext.hasRequestControl( PasswordPolicy.OID );
PasswordPolicyDecorator pwdRespCtrl =
- new PasswordPolicyDecorator( directoryService.getLdapCodecService() );
+ new PasswordPolicyDecorator( directoryService.getLdapCodecService(), true );
boolean authenticated = false;
PasswordPolicyException ppe = null;
@@ -1386,7 +1386,7 @@ public class AuthenticationInterceptor e
if ( isPPolicyReqCtrlPresent )
{
PasswordPolicyDecorator pwdRespCtrl =
- new PasswordPolicyDecorator( directoryService.getLdapCodecService() );
+ new PasswordPolicyDecorator( directoryService.getLdapCodecService(), true );
pwdRespCtrl.getResponse().setPasswordPolicyError( PasswordPolicyErrorEnum.CHANGE_AFTER_RESET );
opContext.addResponseControl( pwdRespCtrl );
}