Browse Source

Signed-off-by: Russ Whitehead <william.whitehead@lexisnexis.com>

Russ Whitehead 9 years ago
parent
commit
fe83445717
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/security/LdapSecurity/ldapconnection.cpp

+ 1 - 1
system/security/LdapSecurity/ldapconnection.cpp

@@ -4515,7 +4515,7 @@ private:
             ptr = comma + 1;
         }
 
-        if (ptr && !organizationalUnitExists(ptr))
+        if (ptr && strstr(ptr,"ou=") && !organizationalUnitExists(ptr))
             createLdapBasedn(user, ptr, ptype);
 
         addOrganizationalUnit(user, oubuf.str(), ptr, ptype);