]> git.sur5r.net Git - openldap/commitdiff
Disable REFERRALS. Should add -C/-CC/-R options (chase w/ prompting,
authorKurt Zeilenga <kurt@openldap.org>
Sun, 5 Sep 1999 19:20:01 +0000 (19:20 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 5 Sep 1999 19:20:01 +0000 (19:20 +0000)
chase w/o prompting, disable referrals).

clients/tools/ldapdelete.c
clients/tools/ldapmodify.c
clients/tools/ldapmodrdn.c
clients/tools/ldappasswd.c

index 694d7f8b613dab2180f1317c40b0bbdee8822757..c69bf02d86f79dd9bc07d85c22611ea9c4857cc6 100644 (file)
@@ -157,6 +157,9 @@ main( int argc, char **argv )
                ldap_set_option( ld, LDAP_OPT_DEREF, &deref );
        }
 
+       /* don't chase referrals */
+       ldap_set_option( ld, LDAP_OPT_REFERRALS, LDAP_OPT_OFF );
+
        if (want_bindpw)
                passwd = getpass("Enter LDAP Password: ");
 
index bd6a0cb64ac036850325c091b86de688790e4450..8ad142745b49f3cf8647b9ba6f8164ac81f2179b 100644 (file)
@@ -251,6 +251,8 @@ main( int argc, char **argv )
                int deref = LDAP_DEREF_NEVER;
                ldap_set_option( ld, LDAP_OPT_DEREF, &deref);
        }
+       /* don't chase referrals */
+       ldap_set_option( ld, LDAP_OPT_REFERRALS, LDAP_OPT_OFF );
 
        if (want_bindpw)
                passwd = getpass("Enter LDAP Password: ");
index 9e4556964c96f7ffe1617f81c889d37e29ae86a1..7246d334d1531fa0f0d652ef1b3aba0243d3779a 100644 (file)
@@ -209,6 +209,9 @@ main(int argc, char **argv)
                int deref = LDAP_DEREF_NEVER;
                ldap_set_option( ld, LDAP_OPT_DEREF, &deref);
        }
+       /* don't chase referrals */
+       ldap_set_option( ld, LDAP_OPT_REFERRALS, LDAP_OPT_OFF );
+
 
        if (want_bindpw)
                passwd = getpass("Enter LDAP Password: ");
index f463b0379b0433ded784150f3bf697a563a5145c..e9c51e3767635b668f9c11acdf96aeb9f6426293 100644 (file)
@@ -623,6 +623,8 @@ main (int argc, char *argv[])
                int deref = LDAP_DEREF_NEVER;
                ldap_set_option( ld, LDAP_OPT_DEREF, &deref);
        }
+       /* don't chase referrals */
+       ldap_set_option( ld, LDAP_OPT_REFERRALS, LDAP_OPT_OFF );
 
        if (version != -1 &&
                ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &version ) != LDAP_OPT_SUCCESS )