]> git.sur5r.net Git - openldap/commitdiff
log attrs
authorPierangelo Masarati <ando@openldap.org>
Thu, 15 Dec 2005 19:12:09 +0000 (19:12 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 15 Dec 2005 19:12:09 +0000 (19:12 +0000)
libraries/libldap/search.c

index 60cac86f305042bb7daf3b7b274fe7f654c92077..57647d92f1db53d5708ec6a8406062407d53a9e2 100644 (file)
@@ -298,6 +298,23 @@ ldap_build_search_req(
                return( NULL );
        }
 
+#ifdef LDAP_DEBUG
+       if ( ldap_debug & LDAP_DEBUG_ARGS ) {
+               if ( attrs == NULL ) {
+                       Debug( LDAP_DEBUG_ARGS, "ldap_build_search_req ATTRS: *\n", 0, 0, 0 );
+                       
+               } else {
+                       int     i;
+
+                       Debug( LDAP_DEBUG_ARGS, "ldap_build_search_req ATTRS:\n", 0, 0, 0 );
+
+                       for ( i = 0; attrs[ i ]; i++ ) {
+                               Debug( LDAP_DEBUG_ARGS, "    %s\n", attrs[ i ], 0, 0 );
+                       }
+               }
+       }
+#endif /* LDAP_DEBUG */
+
        if ( ber_printf( ber, /*{*/ "{v}N}", attrs ) == -1 ) {
                ld->ld_errno = LDAP_ENCODING_ERROR;
                ber_free( ber, 1 );