]> git.sur5r.net Git - openldap/commitdiff
Add more LDIF comments
authorKurt Zeilenga <kurt@openldap.org>
Wed, 23 Oct 2002 18:34:54 +0000 (18:34 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 23 Oct 2002 18:34:54 +0000 (18:34 +0000)
clients/tools/ldapsearch.c

index a9b995d0f194f1d975cbe91cdfd61a31c20419f4..28e5325b1116b6e04db8ff5d7a23d0aee1f91aec 100644 (file)
@@ -1087,8 +1087,14 @@ main( int argc, char **argv )
        }
 
        if (ldif < 2 ) {
-               printf( "#\n# LDAPv%d\n# filter%s: %s\n# requesting: ",
+               printf( "#\n"
+                       "# LDAPv%d\n"
+                       "# base <%s> with scope %s\n"
+                       "# filter%s: %s\n"
+                       "# requesting: ",
                        version,
+                       base, (scope == LDAP_SCOPE_BASE) ? "base"
+                               : ((scope == LDAP_SCOPE_ONELEVEL) ? "one" : "sub"),
                        infile != NULL ? " pattern" : "",
                        filtpattern );