Package org.apache.directory.shared.ldap.exception

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


            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

            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

            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

            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

       
        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

            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

            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

       
        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

            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

TOP

Related Classes of org.apache.directory.shared.ldap.exception.LdapAuthenticationException

Copyright © 2018 www.massapicom. 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.