Disable REFERRALS. Should add -C/-CC/-R options (chase w/ prompting,

chase w/o prompting, disable referrals).
This commit is contained in:
Kurt Zeilenga 1999-09-05 19:20:01 +00:00
parent 12bcc10c85
commit ed0e5393b4
4 changed files with 10 additions and 0 deletions

View 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: ");

View 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: ");

View 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: ");

View 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 )