Package org.apache.ldap.common.exception

Examples of org.apache.ldap.common.exception.LdapConfigurationException


            ldapService = service;
            log.debug("Successful bind of LDAP Service completed: " + ldapService);
        }
        catch (IOException e) {
            String msg = "Failed to bind the LDAP protocol service to the service registry: " + service;
            LdapConfigurationException lce = new LdapConfigurationException(msg);
            lce.setRootCause(e);
            log.error(msg, e);
            throw lce;
        }
    }
View Full Code Here


            }
        }
        catch ( IOException e )
        {
            String msg = "Failed to bind the LDAP protocol service to the service registry: " + service;
            LdapConfigurationException lce = new LdapConfigurationException( msg );
            lce.setRootCause( e );
            log.error( msg, e );
            throw lce;
        }
    }
View Full Code Here

            if (LOG.isInfoEnabled()) {
                LOG.info("Successful bind of LDAP Service completed: " + ldapService);
            }
        } catch (IOException e) {
            String msg = "Failed to bind the LDAP protocol service to the service registry: " + service;
            LdapConfigurationException lce = new LdapConfigurationException(msg);
            lce.setRootCause(e);
            LOG.error(msg, e);
            throw lce;
        }
    }
View Full Code Here

            ldapService = service;
            log.debug("Successful bind of LDAP Service completed: " + ldapService);
        }
        catch (IOException e) {
            String msg = "Failed to bind the LDAP protocol service to the service registry: " + service;
            LdapConfigurationException lce = new LdapConfigurationException(msg);
            lce.setRootCause(e);
            log.error(msg, e);
            throw lce;
        }
    }
View Full Code Here

                log.info("Successful bind of LDAP Service completed: " + ldapService);
            }
        }
        catch (IOException e) {
            String msg = "Failed to bind the LDAP protocol service to the service registry: " + service;
            LdapConfigurationException lce = new LdapConfigurationException(msg);
            lce.setRootCause(e);
            log.error(msg, e);
            throw lce;
        }
    }
View Full Code Here

            ldapService = service;
            log.debug("Successful bind of LDAP Service completed: " + ldapService);
        }
        catch (IOException e) {
            String msg = "Failed to bind the LDAP protocol service to the service registry: " + service;
            LdapConfigurationException lce = new LdapConfigurationException(msg);
            lce.setRootCause(e);
            log.error(msg, e);
            throw lce;
        }
    }
View Full Code Here

            ldapService = service;
            log.debug("Successful bind of LDAP Service completed: " + ldapService);
        }
        catch (IOException e) {
            String msg = "Failed to bind the LDAP protocol service to the service registry: " + service;
            LdapConfigurationException lce = new LdapConfigurationException(msg);
            lce.setRootCause(e);
            log.error(msg, e);
            throw lce;
        }
    }
View Full Code Here

        }
        catch ( Exception e )
        {
            String msg = "failed while trying to parse system ldif file";

            NamingException ne = new LdapConfigurationException( msg );

            ne.setRootCause( e );

            throw ne;
        }
    }
View Full Code Here

             */
            if ( env.get( TYPE ).equals( "simple" ) )
            {
                if ( !env.containsKey( CREDS ) )
                {
                    throw new LdapConfigurationException( "missing required "
                            + CREDS + " property for simple authentication" );
                }

                if ( !env.containsKey( PRINCIPAL ) )
                {
                    throw new LdapConfigurationException( "missing required "
                            + PRINCIPAL + " property for simple authentication" );
                }
            }
            /*
             * If bind is none make sure credentials and the principal
             * name are NOT set within the environment, otherwise complain
             */
            else if ( env.get( TYPE ).equals( "none" ) )
            {
                if ( env.containsKey( CREDS ) )
                {
                    throw new LdapConfigurationException( "ambiguous bind "
                            + "settings encountered where bind is anonymous yet "
                            + CREDS + " property is set" );
                }
                if ( env.containsKey( PRINCIPAL ) )
                {
                    throw new LdapConfigurationException( "ambiguous bind "
                            + "settings encountered where bind is anonymous yet "
                            + PRINCIPAL + " property is set" );
                }
            }
            /*
             * If bind is anything other than simple or none we need to
             * complain because SASL is not a supported auth method yet
             */
            else
            {
                throw new LdapAuthenticationNotSupportedException( ResultCodeEnum.AUTHMETHODNOTSUPPORTED );
            }
        }
        else if ( env.containsKey( CREDS ) )
        {
            if ( !env.containsKey( PRINCIPAL ) )
            {
                throw new LdapConfigurationException( "credentials provided "
                        + "without principal name property: " + PRINCIPAL );
            }
        }
    }
View Full Code Here

        }
        catch ( Exception e )
        {
            String msg = "failed while trying to parse system ldif file";

            NamingException ne = new LdapConfigurationException( msg );

            ne.setRootCause( e );

            throw ne;
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.ldap.common.exception.LdapConfigurationException

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.