Package org.apache.directory.server.protocol.shared

Examples of org.apache.directory.server.protocol.shared.ServiceConfigurationException


            entry = findPrincipal( ldapServer, getPrincipal );
        }
        catch ( ServiceConfigurationException sce )
        {
            String message = I18n.err( I18n.ERR_659, servicePrincipalName, ldapServer.getSearchBaseDn() );
            throw new ServiceConfigurationException( message, sce );
        }

        if ( entry == null )
        {
            String message = I18n.err( I18n.ERR_659, servicePrincipalName, ldapServer.getSearchBaseDn() );
            throw new ServiceConfigurationException( message );
        }

        Subject subject = new Subject();

        for ( EncryptionType encryptionType : entry.getKeyMap().keySet() )
View Full Code Here


            session = directoryService.getAdminSession();
            this.searchBaseDn = searchBaseDn;
        }
        catch ( Exception e )
        {
            throw new ServiceConfigurationException( I18n.err( I18n.ERR_627 ), e );
        }

    }
View Full Code Here

            entry = findPrincipal( ldapServer, getPrincipal );
        }
        catch ( ServiceConfigurationException sce )
        {
            String message = I18n.err( I18n.ERR_659, servicePrincipalName, ldapServer.getSearchBaseDn() );
            throw new ServiceConfigurationException( message, sce );
        }

        if ( entry == null )
        {
            String message = I18n.err( I18n.ERR_659, servicePrincipalName, ldapServer.getSearchBaseDn() );
            throw new ServiceConfigurationException( message );
        }

        Subject subject = new Subject();

        for ( EncryptionType encryptionType : entry.getKeyMap().keySet() )
View Full Code Here

            catalog = new KerberosCatalog( ( Map ) execute( directoryService.getSession(), new GetCatalog() ) );
        }
        catch ( Exception e )
        {
            String message = I18n.err( I18n.ERR_624, catalogBaseDn );
            throw new ServiceConfigurationException( message, e );
        }
    }
View Full Code Here

            return ( PrincipalStoreEntry ) execute( directoryService.getSession(), new GetPrincipal( principal ) );
        }
        catch ( NamingException ne )
        {
            String message = I18n.err( I18n.ERR_625, principal.getRealm() );
            throw new ServiceConfigurationException( message, ne );
        }
    }
View Full Code Here

            return ( String ) execute( directoryService.getSession(), new ChangePassword( principal, newPassword ) );
        }
        catch ( NamingException ne )
        {
            String message = I18n.err( I18n.ERR_625, principal.getRealm() );
            throw new ServiceConfigurationException( message, ne );
        }
    }
View Full Code Here

        }
        catch ( Exception e )
        {
            LOG.error( e.getLocalizedMessage(), e );
            String message = I18n.err( I18n.ERR_156, catalogBaseDn );
            throw new ServiceConfigurationException( message, e );
        }
    }
View Full Code Here

        }
        catch ( NamingException ne )
        {
            LOG.error( ne.getLocalizedMessage(), ne );
            String message = I18n.err( I18n.ERR_157, question.getDomainName() );
            throw new ServiceConfigurationException( message, ne );
        }
        catch ( Exception e )
        {
            LOG.debug( "Unexpected error retrieving DNS records.", e );
            throw new DnsException( ResponseCode.SERVER_FAILURE );
View Full Code Here

        {
            CoreSession session = directoryService.getSession();
            ctx = new ServerLdapContext( directoryService, session, new DN( searchBaseDn ) );
        } catch ( Exception e )
        {
            throw new ServiceConfigurationException( I18n.err( I18n.ERR_649, searchBaseDn ), e );
        }

    }
View Full Code Here

        }
        catch ( Exception e )
        {
            LOG.error( e.getLocalizedMessage(), e );
            String message = I18n.err( I18n.ERR_156, catalogBaseDn );
            throw new ServiceConfigurationException( message, e );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.protocol.shared.ServiceConfigurationException

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.