From: Howard Chu Date: Fri, 14 May 2004 19:28:42 +0000 (+0000) Subject: Just set ppolicy control in tool_bind() X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~368 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dfd400df24e663f089a63d312101571df26d7f31;p=openldap Just set ppolicy control in tool_bind() --- diff --git a/clients/tools/common.c b/clients/tools/common.c index 29f469d751..61383523ba 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -914,17 +914,6 @@ tool_server_controls( LDAP *ld, LDAPControl *extra_c, int count ) i++; } -#ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST - if ( ppolicy ) { - c[i].ldctl_oid = LDAP_CONTROL_PASSWORDPOLICYREQUEST; - c[i].ldctl_value.bv_val = NULL; - c[i].ldctl_value.bv_len = 0; - c[i].ldctl_iscritical = 0; - ctrls[i] = &c[i]; - i++; - } -#endif - if ( preread ) { char berbuf[LBER_ELEMENT_SIZEOF]; BerElement *ber = (BerElement *)berbuf;