|
@@ -3225,25 +3225,24 @@ public:
|
|
|
{
|
|
|
StringBuffer descbuf;
|
|
|
StringBuffer curname;
|
|
|
- CLDAPGetAttributesWrapper atts(ld, message);
|
|
|
+
|
|
|
+ CLDAPGetValuesLenWrapper vals(ld, message, attribute);
|
|
|
+ if (vals.hasValues())
|
|
|
{
|
|
|
- CLDAPGetValuesLenWrapper vals(ld, message, attribute);
|
|
|
- if (vals.hasValues())
|
|
|
+ const char* val = vals.queryCharValue(0);
|
|
|
+ if(val != NULL)
|
|
|
{
|
|
|
- const char* val = vals.queryCharValue(0);
|
|
|
- if(val != NULL)
|
|
|
+ if(stricmp(attribute, fldname) == 0)
|
|
|
{
|
|
|
- if(stricmp(attribute, fldname) == 0)
|
|
|
- {
|
|
|
- curname.append(val);
|
|
|
- }
|
|
|
- else if(stricmp(attribute, "description") == 0)
|
|
|
- {
|
|
|
- descbuf.append(val);
|
|
|
- }
|
|
|
+ curname.append(val);
|
|
|
+ }
|
|
|
+ else if(stricmp(attribute, "description") == 0)
|
|
|
+ {
|
|
|
+ descbuf.append(val);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
if(curname.length() == 0)
|
|
|
continue;
|
|
|
StringBuffer resourcename;
|