Examples of LdapInvalidDnException


Examples of org.apache.directory.shared.ldap.model.exception.LdapInvalidDnException

            // of the workingDirectory followed by the suffix
            if ( ( suffixDn == null ) || ( suffixDn.isEmpty() ) )
            {
                String msg = I18n.err( I18n.ERR_150 );
                LOG.error( msg );
                throw new LdapInvalidDnException( msg );
            }
   
            if ( !suffixDn.isSchemaAware() )
            {
                suffixDn.apply( schemaManager );
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.exception.LdapInvalidDnException

        {
            if ( addContext.getDn().size() != 3 )
            {
                String msg = I18n.err( I18n.ERR_81 );
                LOG.error( msg );
                throw new LdapInvalidDnException( ResultCodeEnum.NAMING_VIOLATION, msg );
            }
           
            String ouValue = addContext.getDn().getRdn().getNormValue().getString();
            ouValue = ouValue.trim().toLowerCase();
           
            if ( ! VALID_OU_VALUES.contains( ouValue ) )
            {
                String msg = I18n.err( I18n.ERR_82, VALID_OU_VALUES );
                LOG.error( msg );
                throw new LdapInvalidDnException( ResultCodeEnum.NAMING_VIOLATION, msg );
            }
           
            // this is a valid container.
            return;
        }
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.