The rest of the reloadHint support...

This commit is contained in:
Howard Chu 2005-10-15 03:27:05 +00:00
parent 17a7ce8de5
commit 8c8e6293f9

View File

@ -2139,6 +2139,13 @@ sp_cf_gen(ConfigArgs *c)
rc = 1; rc = 1;
} }
break; break;
case SP_USEHINT:
if ( si->si_usehint ) {
c->value_int = 1;
} else {
rc = 1;
}
break;
} }
return rc; return rc;
} else if ( c->op == LDAP_MOD_DELETE ) { } else if ( c->op == LDAP_MOD_DELETE ) {
@ -2159,6 +2166,12 @@ sp_cf_gen(ConfigArgs *c)
else else
rc = LDAP_NO_SUCH_ATTRIBUTE; rc = LDAP_NO_SUCH_ATTRIBUTE;
break; break;
case SP_USEHINT:
if ( si->si_usehint )
si->si_usehint = 0;
else
rc = LDAP_NO_SUCH_ATTRIBUTE;
break;
} }
return rc; return rc;
} }
@ -2193,6 +2206,9 @@ sp_cf_gen(ConfigArgs *c)
case SP_NOPRES: case SP_NOPRES:
si->si_nopres = c->value_int; si->si_nopres = c->value_int;
break; break;
case SP_USEHINT:
si->si_usehint = c->value_int;
break;
} }
return rc; return rc;
} }
@ -2440,6 +2456,7 @@ static int syncprov_parseCtrl (
rs->sr_text = "Sync control : cookie decoding error"; rs->sr_text = "Sync control : cookie decoding error";
return LDAP_PROTOCOL_ERROR; return LDAP_PROTOCOL_ERROR;
} }
tag = ber_peek_tag( ber, &len );
} }
if ( tag == LDAP_TAG_RELOAD_HINT ) { if ( tag == LDAP_TAG_RELOAD_HINT ) {
if (( ber_scanf( ber, /*{*/ "b", &rhint )) == LBER_ERROR ) { if (( ber_scanf( ber, /*{*/ "b", &rhint )) == LBER_ERROR ) {