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