]> git.sur5r.net Git - openldap/commitdiff
Should have left 'scope' alone.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 29 Dec 1998 05:44:18 +0000 (05:44 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 29 Dec 1998 05:44:18 +0000 (05:44 +0000)
clients/tools/ldappasswd.c
clients/tools/ldapsearch.c

index 03d2fccb464e16ce1d90ea381bf285ee101ecbb6..54b5bc4bf5f384d27aeac7551b8f98d229b72e3a 100644 (file)
@@ -360,7 +360,7 @@ main (int argc, char *argv[])
        int             i, j;
        int             ldapport = 0;
        int             debug = 0;
-       int             scope = -1;
+       int             scope = LDAP_SCOPE_SUBTREE;
        int             sizelimit = -1;
        int             timelimit = -1;
        int             version = -1;
index 254cc59e98350559c638f3a0b1ed0fdb7fe8c6b6..9fb538bcbe354441aae59aa004045241b4e30928 100644 (file)
@@ -96,9 +96,9 @@ main( int argc, char **argv )
     debug = verbose = allow_binary = not = vals2tmp =
            attrsonly = ldif = want_bindpw = 0;
 
-       deref = referrals = sizelimit = timelimit =
-       scope = version = -1;
+       deref = referrals = sizelimit = timelimit = version = -1;
 
+       scope = LDAP_SCOPE_SUBTREE;
     authmethod = LDAP_AUTH_SIMPLE;
 
     while (( i = getopt( argc, argv, "WKknuvtRABLD:s:f:h:b:d:P:p:F:a:w:l:z:S:")) != EOF ) {