From 74ecd01f5a9849a3e81119bb4223d3c573f458b2 Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 1 Apr 2005 10:59:17 +0000 Subject: [PATCH] if client does not ask for any attributes, list 'em all --- tinyldap.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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