]> git.sur5r.net Git - openldap/commitdiff
Just set ppolicy control in tool_bind()
authorHoward Chu <hyc@openldap.org>
Fri, 14 May 2004 19:28:42 +0000 (19:28 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 14 May 2004 19:28:42 +0000 (19:28 +0000)
clients/tools/common.c

index 29f469d75165db92c5178711062c43265383aa8d..61383523bacc24a8752d41e0f0038f6af33d0bc5 100644 (file)
@@ -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;