diff --git a/tinyldap.c b/tinyldap.c index 364064e..70de32d 100644 --- a/tinyldap.c +++ b/tinyldap.c @@ -483,6 +483,22 @@ static void answerwith(uint32 ofs,struct SearchRequest* sr,long messageid,int ou /* now go through list of requested attributes */ { struct AttributeDescriptionList* adl=sr->attributes; + if (!adl) { + /* did not ask for any attributes. send 'em all. */ + /* to do that, construct a list of all attributes */ + uint32 i; + char* x=map+5*4+size_of_string_table+4; + adl=alloca((attribute_count-1)*sizeof(struct AttributeDescriptionList)); + for (i=0; i