× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.



Cheryl Wheeler

Old Dominion Freight Line, Inc.









****************************
CONFIDENTIALITY NOTICE: The information contained in this message may be confidential, privileged, proprietary, or otherwise legally exempt from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this message, any part of it, or any attachments. If you have received this message in error, please delete this message and any attachments from your system without reading the content and notify the sender immediately of the inadvertent transmission. Thank you for your cooperation.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.