-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
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
Labels
No labels