mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-09 00:43:22 +00:00
See ChangeLog
Monotone-Parent: 795fdd1b62319c12f9aef930c35c63d2fd26c3ac Monotone-Revision: e290f01a5006f7dc9a5dec96622f04d6bcdb008c Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2009-04-13T13:10:16 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2009-04-13 Ludovic Marcotte <lmarcotte@inverse.ca>
|
||||
|
||||
* SoObjects/Contacts/SOGoContactLDAPFolder.m and
|
||||
SoObjects/SOGo/LDAPSource.h: renamed allEntryIDs to
|
||||
allEntryUIDs and we now use the UID instead of the ID
|
||||
when returning all entries since when the callback
|
||||
is invoked, we use the UID and NOT the ID.
|
||||
|
||||
2009-04-09 Ludovic Marcotte <lmarcotte@inverse.ca>
|
||||
|
||||
* Reverted previous patch and provided the correct
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
|
||||
- (NSArray *) toOneRelationshipKeys
|
||||
{
|
||||
return [ldapSource allEntryIDs];
|
||||
return [ldapSource allEntryUIDs];
|
||||
}
|
||||
|
||||
- (NSArray *) _flattenedRecords: (NSArray *) records
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
|
||||
- (NSDictionary *) lookupContactEntry: (NSString *) entryID;
|
||||
- (NSDictionary *) lookupContactEntryWithUIDorEmail: (NSString *) entryID;
|
||||
- (NSArray *) allEntryIDs;
|
||||
- (NSArray *) allEntryUIDs;
|
||||
- (NSArray *) fetchContactsMatching: (NSString *) filter;
|
||||
- (NSString *) sourceID;
|
||||
|
||||
|
||||
@@ -517,7 +517,7 @@ static NSLock *lock;
|
||||
return searchAttributes;
|
||||
}
|
||||
|
||||
- (NSArray *) allEntryIDs
|
||||
- (NSArray *) allEntryUIDs
|
||||
{
|
||||
NSMutableArray *ids;
|
||||
NSEnumerator *entries;
|
||||
@@ -534,7 +534,7 @@ static NSLock *lock;
|
||||
{
|
||||
NSArray *attributes;
|
||||
|
||||
attributes = [NSArray arrayWithObject: IDField];
|
||||
attributes = [NSArray arrayWithObject: UIDField];
|
||||
if ([_scope caseInsensitiveCompare: @"BASE"] == NSOrderedSame)
|
||||
entries = [ldapConnection baseSearchAtBaseDN: baseDN
|
||||
qualifier: nil
|
||||
@@ -556,7 +556,7 @@ static NSLock *lock;
|
||||
currentEntry = [entries nextObject];
|
||||
while (currentEntry)
|
||||
{
|
||||
value = [[currentEntry attributeWithName: IDField]
|
||||
value = [[currentEntry attributeWithName: UIDField]
|
||||
stringValueAtIndex: 0];
|
||||
if ([value length] > 0)
|
||||
[ids addObject: value];
|
||||
|
||||
Reference in New Issue
Block a user