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.