mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-27 12:54:17 +00:00
See ChangeLog.
Monotone-Parent: d4394b4b92fdfda720d67698c9fbadc75787ad18 Monotone-Revision: e8c7d8a4465a1b9357c1d9f201dec2b93c5f3507 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2012-02-11T07:08:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -268,7 +268,7 @@
|
||||
while ((currentID = [allIDs nextObject]))
|
||||
{
|
||||
sourceDomain = [[_sources objectForKey: currentID] domain];
|
||||
if (![domain length] || [domain isEqualToString: sourceDomain])
|
||||
if (![domain length] || ![sourceDomain length] || [domain isEqualToString: sourceDomain])
|
||||
{
|
||||
metadata = [_sourcesMetadata objectForKey: currentID];
|
||||
if ([[metadata objectForKey: @"canAuthenticate"] boolValue])
|
||||
@@ -609,7 +609,8 @@
|
||||
while (!userEntry && (sourceID = [sogoSources nextObject]))
|
||||
{
|
||||
currentSource = [_sources objectForKey: sourceID];
|
||||
userEntry = [currentSource lookupContactEntryWithUIDorEmail: uid];
|
||||
userEntry = [currentSource lookupContactEntryWithUIDorEmail: uid
|
||||
inDomain: domain];
|
||||
if (userEntry)
|
||||
{
|
||||
[currentUser setObject: sourceID forKey: @"SOGoSource"];
|
||||
@@ -876,6 +877,7 @@
|
||||
|
||||
- (NSArray *) _fetchEntriesInSources: (NSArray *) sourcesList
|
||||
matching: (NSString *) filter
|
||||
inDomain: (NSString *) domain
|
||||
{
|
||||
NSMutableArray *contacts;
|
||||
NSEnumerator *sources;
|
||||
@@ -888,7 +890,8 @@
|
||||
{
|
||||
currentSource = [_sources objectForKey: sourceID];
|
||||
[contacts addObjectsFromArray:
|
||||
[currentSource fetchContactsMatching: filter]];
|
||||
[currentSource fetchContactsMatching: filter
|
||||
inDomain: domain]];
|
||||
}
|
||||
|
||||
return [self _compactAndCompleteContacts: [contacts objectEnumerator]];
|
||||
@@ -899,15 +902,17 @@
|
||||
{
|
||||
return [self
|
||||
_fetchEntriesInSources: [self addressBookSourceIDsInDomain: domain]
|
||||
matching: filter];
|
||||
matching: filter
|
||||
inDomain: domain];
|
||||
}
|
||||
|
||||
- (NSArray *) fetchUsersMatching: (NSString *) filter
|
||||
inDomain: (NSString *) domain
|
||||
{
|
||||
return [self _fetchEntriesInSources:
|
||||
[self authenticationSourceIDsInDomain: domain]
|
||||
matching: filter];
|
||||
return [self
|
||||
_fetchEntriesInSources: [self authenticationSourceIDsInDomain: domain]
|
||||
matching: filter
|
||||
inDomain: domain];
|
||||
}
|
||||
|
||||
- (NSString *) getLoginForDN: (NSString *) theDN
|
||||
|
||||
Reference in New Issue
Block a user