× 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.



Hi Cheryl,

LDAP_OPERATIONS_ERROR means that you're doing an operation out of sequence. In other words, you have to do something else FIRST before you can do your ldap_search_st()... it depends on something else.

It could also mean that there's a bug in the server code. I know that OpenLDAP had a bug a few years back where it returned this when you passed an invalid user/password. It gave you "operations error" with the intent of telling you "you have to log in before you can do that", but since the user/password had already been sent (it was invalid, but no error was given to explain that) it was confusing.

But, that bug was fixed in... err... I want to say 2002 or 2003. Anyway, there are lots and lots of things that can cause an operations error. But, the basic intention of the error code is to tell you that you're doing your operations (i.e. calling the APIs) in the wrong sequence.

Unfortunately, I can't tell specifically what you're doing wrong -- I can only tell you what the message means.



Cheryl Wheeler wrote:
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 thread ...

Replies:

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.