]> git.sur5r.net Git - openldap/commitdiff
Additional LDIF comments
authorKurt Zeilenga <kurt@openldap.org>
Tue, 29 Oct 2002 02:04:16 +0000 (02:04 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 29 Oct 2002 02:04:16 +0000 (02:04 +0000)
clients/tools/ldapsearch.c

index 639d8c818da47f53743835d45230af063b7c981e..e1bd8ae056209e76dd6d1d9a0160a2389fd1d7b2 100644 (file)
@@ -1030,8 +1030,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 );