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



ldap_bind is a deprecated api and it is an asynchronous request. You
might want to use the ldap_simple_bind_s api instead.

Note: You could use ldap_simple_bind api if you want asynchronous
request. You will need to call the ldap_result to make sure your
binding is sucessful.



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Cheryl Wheeler
Sent: Thursday, November 29, 2007 10:06 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: ldap_search_st error...

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.

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.



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.