Examples of ChangePasswordError


Examples of org.apache.directory.server.changepw.messages.ChangePasswordError

    {
        ChangePasswordRequest message = new ChangePasswordRequest( ( short ) 2, null, null );

        handler.messageReceived( session, message );

        ChangePasswordError reply = ( ChangePasswordError ) session.getMessage();
        ErrorMessage error = reply.getErrorMessage();
        assertEquals( "Protocol version unsupported", 6, error.getErrorCode() );
    }
View Full Code Here

Examples of org.apache.directory.server.changepw.messages.ChangePasswordError

    {
        ChangePasswordRequest message = new ChangePasswordRequest( ( short ) 1, null, null );

        handler.messageReceived( session, message );

        ChangePasswordError reply = ( ChangePasswordError ) session.getMessage();
        ErrorMessage error = reply.getErrorMessage();
        assertEquals( "Request failed due to an error in authentication processing", 3, error.getErrorCode() );
    }
View Full Code Here

Examples of org.apache.directory.server.changepw.messages.ChangePasswordError

        ChangePasswordRequest message = new ChangePasswordRequest( ( short ) 1, apReq, priv );

        handler.messageReceived( session, message );

        ChangePasswordError reply = ( ChangePasswordError ) session.getMessage();
        ErrorMessage error = reply.getErrorMessage();
        assertEquals( "Initial flag required", 7, error.getErrorCode() );

        //ChangePasswordReply reply = ( ChangePasswordReply ) session.getMessage();

        //processChangePasswordReply( reply, serviceTicket.getSessionKey(), subSessionKey );
View Full Code Here

Examples of org.apache.directory.server.changepw.messages.ChangePasswordError

        ChangePasswordRequest message = new ChangePasswordRequest( ( short ) 0xFF80, apReq, priv );

        handler.messageReceived( session, message );

        ChangePasswordError reply = ( ChangePasswordError ) session.getMessage();
        ErrorMessage error = reply.getErrorMessage();
        assertEquals( "Protocol version unsupported", 6, error.getErrorCode() );
    }
View Full Code Here

Examples of org.apache.directory.server.changepw.messages.ChangePasswordError

        ChPwdDummySession session = new ChPwdDummySession();
        ChangePasswordRequest message = new ChangePasswordRequest( ( short ) 2, null, null );

        handler.messageReceived( session, message );

        ChangePasswordError reply = ( ChangePasswordError ) session.getMessage();
        KrbError error = reply.getKrbError();
        assertEquals( "Protocol version unsupported", 6, error.getErrorCode() );
    }
View Full Code Here

Examples of org.apache.directory.server.changepw.messages.ChangePasswordError

        ChPwdDummySession session = new ChPwdDummySession();
        ChangePasswordRequest message = new ChangePasswordRequest( ( short ) 1, null, null );

        handler.messageReceived( session, message );

        ChangePasswordError reply = ( ChangePasswordError ) session.getMessage();
        KrbError error = reply.getKrbError();
        assertEquals( "Request failed due to an error in authentication processing", 3, error.getErrorCode() );
    }
View Full Code Here

Examples of org.apache.directory.server.changepw.messages.ChangePasswordError

        ChangePasswordRequest message = new ChangePasswordRequest( ( short ) 1, apReq, priv );

        handler.messageReceived( session, message );

        ChangePasswordError reply = ( ChangePasswordError ) session.getMessage();
        KrbError error = reply.getKrbError();
        assertEquals( "Initial flag required", 7, error.getErrorCode() );

        //ChangePasswordReply reply = ( ChangePasswordReply ) session.getMessage();

        //processChangePasswordReply( reply, serviceTicket.getSessionKey(), subSessionKey );
View Full Code Here

Examples of org.apache.directory.server.changepw.messages.ChangePasswordError

        ChangePasswordRequest message = new ChangePasswordRequest( ( short ) 0xFF80, apReq, priv );

        handler.messageReceived( session, message );

        ChangePasswordError reply = ( ChangePasswordError ) session.getMessage();
        KrbError error = reply.getKrbError();
        assertEquals( "Protocol version unsupported", 6, error.getErrorCode() );
    }
View Full Code Here

Examples of org.apache.directory.server.kerberos.changepwd.messages.ChangePasswordError

                log.warn( ke.getLocalizedMessage() );
            }

            KrbError errorMessage = getErrorMessage( server.getConfig().getServicePrincipal(), ke );

            session.write( new ChangePasswordError( request.getVersionNumber(), errorMessage ) );
        }
        catch ( Exception e )
        {
            log.error( I18n.err( I18n.ERR_152, e.getLocalizedMessage() ), e );

            KrbError error = getErrorMessage( server.getConfig().getServicePrincipal(), new ChangePasswordException(
                ChangePasswdErrorType.KRB5_KPASSWD_UNKNOWN_ERROR ) );
            session.write( new ChangePasswordError( request.getVersionNumber(), error ) );
        }
    }
View Full Code Here

Examples of org.apache.directory.server.kerberos.changepwd.messages.ChangePasswordError

           
            AbstractPasswordMessage reply = sendAndReceiveChngPwdMsg( req, channel );
           
            if ( reply instanceof ChangePasswordError )
            {
                ChangePasswordError err = ( ChangePasswordError ) reply;
               
                ChangePasswordResult result = new ChangePasswordResult( err.getKrbError().getEData() );

                return result;
            }
           
            ChangePasswordReply chngPwdReply = ( ChangePasswordReply ) reply;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.