Package org.apache.directory.api.ldap.model.message

Examples of org.apache.directory.api.ldap.model.message.SearchScope


        {
            element.addAttribute( "dn", request.getBase().getName() );
        }

        // Scope
        SearchScope scope = request.getScope();
        if ( scope != null )
        {
            if ( scope == SearchScope.OBJECT )
            {
                element.addAttribute( "scope", "baseObject" );
View Full Code Here


        case SEARCHANDBIND:
        {
          bindAdmin(conn, ldap_admin_dn, ldap_admin_passwd);
          Dn baseDn = new Dn(config.getProperty(CONFIGKEY_LDAP_SEARCH_BASE, ""));
          String searchQ = String.format(config.getProperty(CONFIGKEY_LDAP_SEARCH_QUERY, "%s"), user);
          SearchScope scope = SearchScope.valueOf(config.getProperty(CONFIGKEY_LDAP_SEARCH_SCOPE, SearchScope.ONELEVEL.name()));
          EntryCursor cursor = conn.search(baseDn, searchQ, scope, "*");
          while (cursor.next()) {
            if (userDn != null) {
              log.error("more than 1 user found in LDAP");
              throw new OmException(-1L);
View Full Code Here

        {
            element.addAttribute( "dn", request.getBase().getName() );
        }

        // Scope
        SearchScope scope = request.getScope();
        if ( scope != null )
        {
            if ( scope == SearchScope.OBJECT )
            {
                element.addAttribute( "scope", "baseObject" );
View Full Code Here

            // Search Filter
            input.setReplSearchFilter( checkEmptyString( filterWidget.getFilter() ) );

            // Search Scope
            SearchScope scope = getSearchScope();

            if ( scope != null )
            {
                input.setReplSearchScope( scope.getLdapUrlValue() );
            }
            else
            {
                input.setReplSearchScope( null );
            }
View Full Code Here

            // Search Filter
            filterWidget.setFilter( checkNull( input.getReplSearchFilter() ) );

            // Search Scope
            SearchScope scope = null;
            try
            {
                scope = SearchScope.getSearchScope( SearchScope.getSearchScope( input.getReplSearchScope() ) );
            }
            catch ( IllegalArgumentException e )
View Full Code Here

            return null;
        }

        String searchBase = parameter.getSearchBase().getName();
        SearchControls controls = new SearchControls();
        SearchScope scope = parameter.getScope();

        switch ( scope )
        {
            case OBJECT:
                controls.setSearchScope( SearchControls.OBJECT_SCOPE );
View Full Code Here

TOP

Related Classes of org.apache.directory.api.ldap.model.message.SearchScope

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.