|
I am trying to incorporated LDAP into a rpgle program on the iseries.
The ldap_init and ldap_bind appear to be working correctly. The
subsequent ldap_search_st comes back with an 'operations error'.
Information was found by googling this error, that an individual had
gotten an "operations error" and ignored it and the search worked fine
for them. Such is not the case for me.
This is what my ldap_search_st statement looks like:
filter = '(cn=*'+SearchArg+'*)';
AttrVal(1) = 'cn' + x'00';
AttrVal(2) = 'mail' + x'00';
AttrPtr(1) = %addr(AttrVal(1));
AttrPtr(2) = %addr(AttrVal(2));
AttrPtr(3) = *NULL;
p_timeval = %addr(timeout);
tv_sec = 120;
tv_usec = 0;
rc = ldap_search_st( ld:
MY_BASE_DN:
LDAP_SCOPE_SUBTREE:
Filter:
%addr(AttrPtr):
0:
%addr(timeout):
result);
Any help in determining what this 'operations error' means and how to
proceed with this would be greatly appreciated. If you need more info,
let me know and I'll get it to you.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.