]> git.sur5r.net Git - openldap/commitdiff
Force referrals on
authorKurt Zeilenga <kurt@openldap.org>
Mon, 29 May 2000 20:43:29 +0000 (20:43 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 29 May 2000 20:43:29 +0000 (20:43 +0000)
clients/tools/ldapsearch.c

index da6831074139dffcfe6e7859ac642aa9407b9cee..319b31b8860fef9c2025a93950a4d293179492ff 100644 (file)
@@ -151,7 +151,10 @@ main( int argc, char **argv )
        debug = verbose = binary = not = vals2tmp =
                attrsonly = manageDSAit = ldif = want_bindpw = 0;
 
-       deref = referrals = sizelimit = timelimit = version = -1;
+       deref = sizelimit = timelimit = version = -1;
+
+       /* default should be off */
+       referrals = 1;
 
        scope = LDAP_SCOPE_SUBTREE;
        authmethod = LDAP_AUTH_SIMPLE;
@@ -197,7 +200,7 @@ main( int argc, char **argv )
                manageDSAit++;
                break;
        case 'R':       /* don't automatically chase referrals */
-               referrals = (int) LDAP_OPT_OFF;
+               referrals = 0;
                break;
        case 'A':       /* retrieve attribute names only -- no values */
                ++attrsonly;