|
Hi,
I'm trying to set the LDAP_OPT_REFERRALS option off but I keep running
into a "Bad parameter to an ldap routine" error. I've searched the
archives and found two similar questions bu not answers. Doesn't mean the
aren't there I just can't find them so I'm asking too.
IBM's documentation has the following interface:
int ldap_set_option(
LDAP **ld*,
int *optionToSet*,
const void **optionValue* )
I have the following prototype defined:
D ldap_set_option...
D PR 10I 0 EXTPROC('ldap_set_option')
D ldapPointer * value
D LDAP_OPT_REFERRALS...
D 10I 0 value
D ldapOptValue * CONST
D LDAP_OPT_REFERRALS...
D S 10I 0 inz(2)
D ldapOptValue S *
D debugOffValue S 10I 0 inz(0)
/free
.
.
.
debugOffValue = ldapDebugOff;
ldapOptValue = %addr(debugOffValue);
returnCode = ldap_set_option(ldapPointer:
LDAP_OPT_REFERRALS:
ldapOptValue);
.
.
.
/end-free
I've tried other combinations but I keep receiving a return code value of
89 with a message text of "Bad parameter to an ldap routine".
Using
D ldapOptValue * value
results in the same error
What parameter is bad? I can't tell. My guess is parameter 3.
A trace dump is of no use.
ldap_start_operation: ld->ld_ref_count(1)
ldap_end_operation: ld->ld_ref_count(0)
ldap_err2string: err(89)
Does anyone see anything wrong with the way I set up the prototype?
Any suggestions?
T
hank you,
Gary Monnier
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.