Examples of LDAPSearchConstraints


Examples of netscape.ldap.LDAPSearchConstraints

     */
    @Test
    public void testOnReferralWithManageDsaITControl() throws Exception
    {
        LDAPConnection conn = getWiredConnection( getLdapServer() );
        LDAPConstraints constraints = new LDAPSearchConstraints();
        constraints.setClientControls( new LDAPControl( LDAPControl.MANAGEDSAIT, true, new byte[0] ) );
        constraints.setServerControls( new LDAPControl( LDAPControl.MANAGEDSAIT, true, new byte[0] ) );
        conn.setConstraints( constraints );
       
        // ModifyDN success
        conn.rename( "uid=akarasuluref,ou=users,ou=system", "uid=ref", true, constraints );
        LDAPEntry entry = conn.read( "uid=ref,ou=users,ou=system", ( LDAPSearchConstraints ) constraints );
View Full Code Here

Examples of netscape.ldap.LDAPSearchConstraints

     */
    @Test
    public void testNewSuperiorOnReferralWithManageDsaITControl() throws Exception
    {
        LDAPConnection conn = getWiredConnection( getLdapServer() );
        LDAPConstraints constraints = new LDAPSearchConstraints();
        constraints.setClientControls( new LDAPControl( LDAPControl.MANAGEDSAIT, true, new byte[0] ) );
        constraints.setServerControls( new LDAPControl( LDAPControl.MANAGEDSAIT, true, new byte[0] ) );
        conn.setConstraints( constraints );
       
        // ModifyDN success
        try
        {
View Full Code Here

Examples of netscape.ldap.LDAPSearchConstraints

     */
    public LDAPSearchResults LDAPSearch() {
        LDAPSearchResults res = null;
        try {
            LDAPPersistSearchControl persistCtrl = PSearchControl();
            LDAPSearchConstraints cons = connection.getSearchConstraints();
            cons.setBatchSize(1);
            cons.setServerControls(persistCtrl);
            // Start the persistent search.
            res = connection.search(suffix, LDAPv3.SCOPE_SUB, "(objectclass=*)", null, false, cons);
        } catch (LDAPException ex) {
            System.out.println("[Thread id: " + threadId + "] LDAPSearch :" + ex.getMessage());
            System.exit(1);
View Full Code Here

Examples of org.ietf.ldap.LDAPSearchConstraints

            timelimit = 32767;
        } else {
            timelimit = pTimeLimit;
        }

        LDAPSearchConstraints constraints = new LDAPSearchConstraints();
        constraints.setMaxResults(pSizeLimit);
        constraints.setServerTimeLimit(timelimit);
        constraints.setDereference(0)// UDS does not support Dereference of Aliases set to no

        StringBuilder filter = new StringBuilder();
        filter.append(pFilter.getAttributeValueDesc());
        filter.append("=");
        if (pFilter.getType() == LDAP.Constants.LDAP_FILTER_PRESENT) {
View Full Code Here

Examples of org.ietf.ldap.LDAPSearchConstraints

            timelimit = 32767;
        } else {
            timelimit = pTimeLimit;
        }

        LDAPSearchConstraints constraints = new LDAPSearchConstraints();
        constraints.setMaxResults(pSizeLimit);
        constraints.setServerTimeLimit(timelimit);
        constraints.setDereference(0)// UDS does not support Dereference of Aliases set to no

        StringBuilder filter = new StringBuilder();
        filter.append(pFilter.getAttributeValueDesc());
        filter.append("=");
        if (pFilter.getType() == LDAP.Constants.LDAP_FILTER_PRESENT) {
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.