From 282c9ccd32aa3675b1d8982611392a418975ccfe Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 1 Oct 2008 02:26:40 +0000 Subject: [PATCH] ChangeLog Monotone-Parent: f0940e9496d2f6b614f37aed2fd66c564c0df278 Monotone-Revision: 632471715b42abed3c091997b4c9982252f960d2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-10-01T02:26:40 Monotone-Branch: ca.inverse.sogo --- SoObjects/SOGo/SOGoLDAPUserDefaults.m | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/SoObjects/SOGo/SOGoLDAPUserDefaults.m b/SoObjects/SOGo/SOGoLDAPUserDefaults.m index 01fc5dad5..8f1638457 100644 --- a/SoObjects/SOGo/SOGoLDAPUserDefaults.m +++ b/SoObjects/SOGo/SOGoLDAPUserDefaults.m @@ -133,7 +133,9 @@ _appendAtomToDictionary (_SOGoLDAPValue *atom, _SOGoLDAPValue *dictionary) if (oldAtomPtr) { oldAtom = *oldAtomPtr; - if (oldAtom->type == SOGoLDAPAtom) + if (oldAtom->type == SOGoLDAPArray) + container = oldAtom; + else { container = _createContainer (SOGoLDAPArray); container->key = oldAtom->key; @@ -141,12 +143,6 @@ _appendAtomToDictionary (_SOGoLDAPValue *atom, _SOGoLDAPValue *dictionary) _appendAtomToContainer (oldAtom, container); *oldAtomPtr = container; } - else if (oldAtom->type == SOGoLDAPArray) - container = oldAtom; - else - { -// some error handling here... - } } else container = dictionary; @@ -352,7 +348,7 @@ _convertLDAPAtomToNSDictionary (_SOGoLDAPValue *atom) // dn = "cn=admin,dc=inverse,dc=ca"; // password = "qwerty"; // uri = "ldap://127.0.0.1"; -// configDN = @"cn=sogo-config,dc=inverse,dc=ca"; +// configDN = "cn=sogo-config,dc=inverse,dc=ca"; static _SOGoLDAPValue * _initLDAPDefaults ()