|
Hi Lim, and Matt,
"__I think that error can be ignored. I add a additional check on search
result to make sure it is not null before throwing an error.__"
aec..> I have gone on to use
"entry = ldap_first_entry(ld:result)"
and it consistently returns the *NULL pointer. That's why I'm assuming that the
negative return code on rc=ldap_search(...) is "correct" in the sense that it
is reflecting some kind of problem, presumably with the connection.
---->>>> Hi Matt,
I didn't post the RPG prototypes I'm using but they go like this:
ldap_init PR * extproc('ldap_init')
defhost * value options(*string)
defport 10I 0 value
So with value and options(*string) that should be converting the parm to a
pointer before passing it. However I will now go back and try it with the _
%addr() function....
And the prototype for the ldap_search():
ldap_search PR 10I 0 ExtProc('ldap_search')
ld * value
base * value options(*string)
scope 10I 0 value
filter * value options(*string)
attrs * value
attrsonly 10I 0 value
--Alan
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.