mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-12 00:48:00 +00:00
Monotone-Parent: 8714a90171f0256424d65122b72c98a61ef5f55a
Monotone-Revision: 72e1b73ecd70270e80d3a060fabe219cfcdd21cd Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-11-19T16:51:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
+15
-5
@@ -229,12 +229,22 @@ main (int argc, char **argv, char **env)
|
||||
ud = [NSUserDefaults standardUserDefaults];
|
||||
[ud addSuiteNamed: @"sogod"];
|
||||
|
||||
dispatcher = [SOGoToolDispatcher new];
|
||||
if ([dispatcher run])
|
||||
rc = 0;
|
||||
if ([ud objectForKey: @"SOGoLDAPSources"])
|
||||
{
|
||||
dispatcher = [SOGoToolDispatcher new];
|
||||
if ([dispatcher run])
|
||||
rc = 0;
|
||||
else
|
||||
rc = -1;
|
||||
[dispatcher release];
|
||||
}
|
||||
else
|
||||
rc = -1;
|
||||
[dispatcher release];
|
||||
{
|
||||
NSLog (@"No LDAP source is configured in the SOGo configuration of this"
|
||||
@" account. Please make sure to use this tool under the same"
|
||||
@" username as SOGo.");
|
||||
rc = -1;
|
||||
}
|
||||
|
||||
[pool release];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user