diff --git a/SoObjects/SOGo/LDAPSource.m b/SoObjects/SOGo/LDAPSource.m index 782a91d9e..b4fc87286 100644 --- a/SoObjects/SOGo/LDAPSource.m +++ b/SoObjects/SOGo/LDAPSource.m @@ -260,11 +260,13 @@ static NSLock *lock; if ([encryption isEqualToString: @"SSL"]) rc = [encryptedConn useSSL]; - else if ([encryption isEqualToString: @"SSL"]) + else if ([encryption isEqualToString: @"STARTTLS"]) rc = [encryptedConn startTLS]; else { - [self errorWithFormat: @"encryption scheme '%@' not supported: use 'SSL' or 'STARTTLS'"]; + [self errorWithFormat: + @"encryption scheme '%@' not supported:" + @" use 'SSL' or 'STARTTLS'", encryption]; rc = NO; }