]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapdelete.c
Disable REFERRALS. Should add -C/-CC/-R options (chase w/ prompting,
[openldap] / clients / tools / ldapdelete.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: ");