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