Examples of LdapAuthenticationException


Examples of org.apache.directory.shared.ldap.exception.LdapAuthenticationException

            LOG.info( "Cannot bind to the server " );
        }

        DN dn = opContext.getDn();
        String upDn = ( dn == null ? "" : dn.getName() );
        throw new LdapAuthenticationException( I18n.err( I18n.ERR_229, upDn ) );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapAuthenticationException

            else
            {
                // Bad password ...
                String message = I18n.err( I18n.ERR_230, opContext.getDn().getName() );
                LOG.info( message );
                throw new LdapAuthenticationException( message );
            }
        }
        else
        {
            // Bad password ...
            String message = I18n.err( I18n.ERR_230, opContext.getDn().getName() );
            LOG.info( message );
            throw new LdapAuthenticationException( message );
        }
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapAuthenticationException

            if ( userEntry == null )
            {
                DN dn = opContext.getDn();
                String upDn = ( dn == null ? "" : dn.getName() );

                throw new LdapAuthenticationException( I18n.err( I18n.ERR_231, upDn ) );
            }
        }
        catch ( Exception cause )
        {
            LOG.error( I18n.err( I18n.ERR_6, cause.getLocalizedMessage() ) );
            LdapAuthenticationException e = new LdapAuthenticationException( cause.getLocalizedMessage() );
            e.setRootCause( e );
            throw e;
        }

        Value<?> userPassword;
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapAuthenticationException

            LOG.info( "Cannot bind to the server " );
        }

        DN dn = opContext.getDn();
        String upDn = ( dn == null ? "" : dn.getName() );
        throw new LdapAuthenticationException( I18n.err( I18n.ERR_229, upDn ) );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapAuthenticationException

       
        ClonedServerEntry userEntry = modContext.lookup( lookupContext );

        if ( userEntry == null )
        {
            throw new LdapAuthenticationException( I18n.err( I18n.ERR_512, principalDn ) );
        }

        EntryAttribute objectClass = userEntry.getOriginalEntry().get( SchemaConstants.OBJECT_CLASS_AT );
       
        if ( !objectClass.contains( SchemaConstants.KRB5_PRINCIPAL_OC ) )
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapAuthenticationException

            else
            {
                // Bad password ...
                String message = I18n.err( I18n.ERR_230, opContext.getDn().getName() );
                LOG.info( message );
                throw new LdapAuthenticationException( message );
            }
        }
        else
        {
            // Bad password ...
            String message = I18n.err( I18n.ERR_230, opContext.getDn().getName() );
            LOG.info( message );
            throw new LdapAuthenticationException( message );
        }
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapAuthenticationException

            if ( userEntry == null )
            {
                DN dn = opContext.getDn();
                String upDn = ( dn == null ? "" : dn.getName() );

                throw new LdapAuthenticationException( I18n.err( I18n.ERR_231, upDn ) );
            }
        }
        catch ( Exception cause )
        {
            LOG.error( I18n.err( I18n.ERR_6, cause.getLocalizedMessage() ) );
            LdapAuthenticationException e = new LdapAuthenticationException( cause.getLocalizedMessage() );
            e.initCause( e );
            throw e;
        }

        Value<?> userPassword;
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapAuthenticationException

       
        ClonedServerEntry userEntry = modContext.lookup( lookupContext );

        if ( userEntry == null )
        {
            throw new LdapAuthenticationException( "Failed to authenticate user '" + principalDn + "'." );
        }

        EntryAttribute objectClass = userEntry.getOriginalEntry().get( SchemaConstants.OBJECT_CLASS_AT );
       
        if ( !objectClass.contains( SchemaConstants.KRB5_PRINCIPAL_OC ) )
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapAuthenticationException

            else
            {
                // Bad password ...
                String message = "Password not correct for user '" + opContext.getDn().getUpName() + "'";
                LOG.info( message );
                throw new LdapAuthenticationException(message);
            }
        }
        else
        {
            // Bad password ...
            String message = "Password not correct for user '" + opContext.getDn().getUpName() + "'";
            LOG.info( message );
            throw new LdapAuthenticationException(message);
        }
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapAuthenticationException

            if ( userEntry == null )
            {
            LdapDN dn = opContext.getDn();
            String upDn = ( dn == null ? "" : dn.getUpName() );
           
                throw new LdapAuthenticationException( "Failed to lookup user for authentication: "
                    + upDn );
            }
        }
        catch ( Exception cause )
        {
            LOG.error( "Authentication error : " + cause.getMessage() );
            LdapAuthenticationException e = new LdapAuthenticationException( cause.getMessage() );
            e.setRootCause( e );
            throw e;
        }

        Value<?> userPassword;
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.