See ChangeLog

Monotone-Parent: 2ff14c56a17684b19765d7bcced2675ab78095b7
Monotone-Revision: a638a09e849ae382ffe2e645259462cb8007bccd

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-11-24T21:25:42
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte committed 2008-11-24 21:25:42 +00:00
1 parent 57765e6911
commit b3e5fb6c92
4 files changed
+30 -4

No files matched your search

+10 -1
View File
@@ -297,6 +297,8 @@ static NSString *LDAPContactInfoAttribute = nil;
NSMutableString *responseString;
NSDictionary *contact;
NSString *contactInfo;
NSArray *allUsers;
int i;
response = [context response];
[response setStatus: 200];
@@ -304,8 +306,15 @@ static NSString *LDAPContactInfoAttribute = nil;
forKey: @"Content-Type"];
responseString = [NSMutableString new];
while ((contact = [users nextObject]))
// We sort our array - this is pretty useful for the Web
// interface of SOGo.
allUsers = [[users allObjects]
sortedArrayUsingSelector: @selector(caseInsensitiveDisplayNameCompare:)];
for (i = 0; i < [allUsers count]; i++)
{
contact = [allUsers objectAtIndex: i];
uid = [contact objectForKey: @"c_uid"];
if ([LDAPContactInfoAttribute length])
{