From dfc850ceb3dbda3f19c7517bb78dc2e4932db0bc Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 29 May 2000 20:43:29 +0000 Subject: [PATCH] Force referrals on --- clients/tools/ldapsearch.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index da68310741..319b31b886 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -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; -- 2.39.5