]> err.no Git - scalable-opengroupware.org/blobdiff - SoObjects/SOGo/LDAPSource.m
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1163 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / SoObjects / SOGo / LDAPSource.m
index eeb0a14afb043414fc6b07c217fa138df5b8d54c..c2350e446793a451b4ea500f56a2908c3ef35e88 100644 (file)
@@ -272,6 +272,8 @@ static int sizeLimit;
   NSString *userDN;
   NGLdapConnection *bindConnection;
 
+  didBind = NO;
+
   if ([loginToCheck length] > 0)
     {
       bindConnection = [[NGLdapConnection alloc] initWithHostName: hostname
@@ -290,13 +292,10 @@ static int sizeLimit;
                                      binddn: userDN
                                      credentials: passwordToCheck];
          NS_HANDLER
-           didBind = NO;
          NS_ENDHANDLER
        }
       [bindConnection release];
     }
-  else
-    didBind = NO;
 
   return didBind;
 }