Skip to content

Very slow responses #3

@klimaye

Description

@klimaye

Hello,

First of all, a great library and awesome instructions. They just work!.

I have a question about the performance as I am not sure if I am doing something crazy here.

My query to pull down users from Active Directory is taking upwards of 30 seconds.

I want to pull contact information on all users within a org. I have tried to reduce that set to just include the actual people and filter out people in the disabled accounts OU.

Is there a better/faster way of doing achieving this?

NSString *filter = @"(&(objectCategory=person)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(telephonenumber=*))";
        NSArray *attributes = @[@"OU", @"cn", @"telephonenumber", @"mobile", @"homephone", @"mail"];
        startDate = [[NSDate date] timeIntervalSince1970];
        currentOperation = [session ldapSearchBaseDN:@"dc=company, dc=com"
                                                scope:LKLdapSearchScopeSubTree filter:filter
                                           attributes:attributes attributesOnly:NO];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions