Package org.apache.directory.shared.ldap.name

Examples of org.apache.directory.shared.ldap.name.DN.normalize()


        {
            principalDn = "";
        }

        DN userDn = new DN( principalDn );
        userDn.normalize( service.getSchemaManager().getNormalizerMapping() );
        LdapPrincipal principal = new LdapPrincipal( userDn, AuthenticationLevel.SIMPLE );

        if ( dn == null )
        {
            dn = "";
View Full Code Here


        {
            principalDn = "";
        }
       
        DN userDn = new DN( principalDn );
        userDn.normalize( service.getSchemaManager().getNormalizerMapping() );
        LdapPrincipal principal = new LdapPrincipal( userDn, AuthenticationLevel.SIMPLE );
       
        if ( dn == null )
        {
            dn = "";
View Full Code Here

        // create system users area
        // -------------------------------------------------------------------

        Map<String,OidNormalizer> oidsMap = schemaManager.getNormalizerMapping();
        DN userDn = new DN( ServerDNConstants.USERS_SYSTEM_DN );
        userDn.normalize( oidsMap );
       
        if ( !partitionNexus.hasEntry( new EntryOperationContext( adminSession, userDn ) ) )
        {
            firstStart = true;
View Full Code Here

        // -------------------------------------------------------------------
        // create system groups area
        // -------------------------------------------------------------------

        DN groupDn = new DN( ServerDNConstants.GROUPS_SYSTEM_DN );
        groupDn.normalize( oidsMap );
       
        if ( !partitionNexus.hasEntry( new EntryOperationContext( adminSession, groupDn ) ) )
        {
            firstStart = true;
View Full Code Here

        // -------------------------------------------------------------------
        // create administrator group
        // -------------------------------------------------------------------

        DN name = new DN( ServerDNConstants.ADMINISTRATORS_GROUP_DN );
        name.normalize( oidsMap );
       
        if ( !partitionNexus.hasEntry( new EntryOperationContext( adminSession, name ) ) )
        {
            firstStart = true;
View Full Code Here

        // -------------------------------------------------------------------
        // create system configuration area
        // -------------------------------------------------------------------

        DN configurationDn = new DN( "ou=configuration,ou=system" );
        configurationDn.normalize( oidsMap );
       
        if ( !partitionNexus.hasEntry( new EntryOperationContext( adminSession, configurationDn ) ) )
        {
            firstStart = true;
View Full Code Here

        // -------------------------------------------------------------------
        // create system configuration area for partition information
        // -------------------------------------------------------------------

        DN partitionsDn = new DN( "ou=partitions,ou=configuration,ou=system" );
        partitionsDn.normalize( oidsMap );
       
        if ( !partitionNexus.hasEntry( new EntryOperationContext( adminSession, partitionsDn ) ) )
        {
            firstStart = true;
View Full Code Here

        // -------------------------------------------------------------------
        // create system configuration area for services
        // -------------------------------------------------------------------

        DN servicesDn = new DN( "ou=services,ou=configuration,ou=system" );
        servicesDn.normalize( oidsMap );
       
        if ( !partitionNexus.hasEntry( new EntryOperationContext( adminSession, servicesDn ) ) )
        {
            firstStart = true;
View Full Code Here

        // -------------------------------------------------------------------
        // create system configuration area for interceptors
        // -------------------------------------------------------------------

        DN interceptorsDn = new DN( "ou=interceptors,ou=configuration,ou=system" );
        interceptorsDn.normalize( oidsMap );
       
        if ( !partitionNexus.hasEntry( new EntryOperationContext( adminSession, interceptorsDn ) ) )
        {
            firstStart = true;
View Full Code Here

        // -------------------------------------------------------------------
        // create system preferences area
        // -------------------------------------------------------------------

        DN sysPrefRootDn = new DN( ServerDNConstants.SYSPREFROOT_SYSTEM_DN );
        sysPrefRootDn.normalize( oidsMap );
       
        if ( !partitionNexus.hasEntry( new EntryOperationContext( adminSession, sysPrefRootDn ) ) )
        {
            firstStart = true;
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.