Browse Source

HPCC-15109 LDAP Resources listed twice in ECLWatch

The LDAP paged result feature introduced an extra loop in the getResources()
method that results in each resource being returned twice or more. This PR
removes the extra loop

Signed-off-by: Russ Whitehead <william.whitehead@lexisnexis.com>
Russ Whitehead 9 years ago
parent
commit
ee0f8c8759
1 changed files with 0 additions and 3 deletions
  1. 0 3
      system/security/LdapSecurity/ldapconnection.cpp

+ 0 - 3
system/security/LdapSecurity/ldapconnection.cpp

@@ -3226,9 +3226,6 @@ public:
                 StringBuffer descbuf;
                 StringBuffer descbuf;
                 StringBuffer curname;
                 StringBuffer curname;
                 CLDAPGetAttributesWrapper   atts(ld, message);
                 CLDAPGetAttributesWrapper   atts(ld, message);
-                for ( attribute = atts.getFirst();
-                      attribute != NULL;
-                      attribute = atts.getNext())
                 {
                 {
                     CLDAPGetValuesLenWrapper vals(ld, message, attribute);
                     CLDAPGetValuesLenWrapper vals(ld, message, attribute);
                     if (vals.hasValues())
                     if (vals.hasValues())