Package org.apache.ldap.common.name

Examples of org.apache.ldap.common.name.LdapName


                        tuples, OperationScope.ENTRY, null, GROUP_NAMES, USER_NAME,
                        null, AuthenticationLevel.NONE, null,
                        null, null, null, null ).size() )
       
        Set wrongGroupNames = new HashSet();
        wrongGroupNames.add( new LdapName( "ou=unrelatedgroup" ) );
       
        Assert.assertEquals(
                0, filter.filter(
                        tuples, OperationScope.ENTRY, null, wrongGroupNames, USER_NAME,
                        null, AuthenticationLevel.NONE, USER_NAME,
View Full Code Here


        else
        {
            Set names = new HashSet();
            try
            {
                names.add( new LdapName( "dummy=dummy" ) );
            }
            catch( NamingException e )
            {
                throw new Error();
            }
View Full Code Here

        String suffix = ( String ) env.getbuf.toString() );

        if ( suffix != null )
        {
            suffix = new LdapName( suffix ).toString();
        }

        config.setSuffix( suffix );

        // --------------------------------------------------------------------
View Full Code Here

     * @return the distinguished name of the entry representing the system preferences node
     * @throws NamingException if there are namespace problems while translating the path
     */
    public static Name toSysDn( String absPrefPath ) throws NamingException
    {
        LdapName dn = new LdapName( SYSPREF_BASE );

        String[] comps = absPrefPath.split( "/" );

        for ( int ii = 0; ii < comps.length; ii++ )
        {
            if ( comps[ii] != null && ! comps[ii].trim().equals( "" ) )
            {
                dn.add( "prefNodeName=" + comps[ii] );
            }
        }

        return dn;
    }
View Full Code Here

    {
        Name usersBaseDn = null;

        try
        {
            usersBaseDn = new LdapName( USERS_BASE_DN );
        }
        catch ( NamingException e )
        {
            e.printStackTrace();
            // should never really happen since names are correct
View Full Code Here

    {
        Name groupsBaseDn = null;

        try
        {
            groupsBaseDn = new LdapName( GROUPS_BASE_DN );
        }
        catch ( NamingException e )
        {
            e.printStackTrace();
            // should never really happen since names are correct
View Full Code Here

    {
        Name adminDn = null;

        try
        {
            adminDn = new LdapName( ADMIN_PRINCIPAL );
        }
        catch ( NamingException e )
        {
            e.printStackTrace();
            // should never really happen since names are correct
View Full Code Here

    public SystemPartition( Database db, SearchEngine searchEngine,
                            AttributeType[] indexAttributes )
        throws NamingException
    {
        super( db, searchEngine, indexAttributes );
        suffix = new LdapName() ;
       
        try
        {
            suffix.add( SUFFIX ) ;
        }
View Full Code Here

        attributeRegistry = globalRegistries.getAttributeTypeRegistry();
        binaryAttributeFilter = new BinaryAttributeFilter();

        // stuff for dealing with subentries (garbage for now)
        String subschemaSubentry = ( String ) nexus.getRootDSE().get( "subschemaSubentry" ).get();
        subentryDn = new LdapName( subschemaSubentry ).toString().toLowerCase();
    }
View Full Code Here

                String ldif = ( String ) iterator.next();

                parser.parse( attributes, ldif );

                Name dn = new LdapName( ( String ) attributes.remove( "dn" ).get() );

                dn.remove( 0 );

                ctx.createSubcontext( dn, attributes );
            }
        }
        catch ( Exception e )
View Full Code Here

TOP

Related Classes of org.apache.ldap.common.name.LdapName

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.