[PATCH v3 4/7] wldap32: implement setting the LDAP_OPT_REFERRALS option
Damjan Jovanovic
damjan.jov at gmail.com
Thu Feb 18 10:49:25 CST 2021
Try 3 treats the "value" as pointer whose own value is meaningful,
not a pointer to a ULONG meaningful value.
Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
---
dlls/wldap32/option.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
-------------- next part --------------
diff --git a/dlls/wldap32/option.c b/dlls/wldap32/option.c
index cf948bf037c..388432a442c 100644
--- a/dlls/wldap32/option.c
+++ b/dlls/wldap32/option.c
@@ -497,11 +497,20 @@ ULONG CDECL ldap_set_optionW( WLDAP32_LDAP *ld, int option, void *value )
controlarrayfreeU( ctrlsU );
return ret;
}
+ case WLDAP32_LDAP_OPT_REFERRALS:
+ {
+ void *openldap_referral = LDAP_OPT_ON;
+ if (value == LDAP_OPT_OFF)
+ openldap_referral = LDAP_OPT_OFF;
+ else
+ FIXME("upgrading referral value %p to LDAP_OPT_ON (OpenLDAP lacks sufficient granularity)\n", value);
+ return map_error( ldap_set_option( ld->ld, option, openldap_referral ));
+ break;
+ }
case WLDAP32_LDAP_OPT_DEREF:
case WLDAP32_LDAP_OPT_DESC:
case WLDAP32_LDAP_OPT_ERROR_NUMBER:
case WLDAP32_LDAP_OPT_PROTOCOL_VERSION:
- case WLDAP32_LDAP_OPT_REFERRALS:
case WLDAP32_LDAP_OPT_SIZELIMIT:
case WLDAP32_LDAP_OPT_TIMELIMIT:
return map_error( ldap_set_option( ld->ld, option, value ));
More information about the wine-devel
mailing list