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



That's the way I understand it also Matt, however, my problem was even
passing bad parms, I was still getting a pointer.  I was never getting
the Null.  I have managed to get past the init now(well at least I'm
getting a new error on the Bind(can't contact LDAP Server)  Before it
was indicating ('invalid credentials)

Michael Smith
iSeries.mySeries.


-----Original Message-----
From: Haas, Matt [mailto:Matt.Haas@xxxxxxxxxxx] 
Sent: Thursday, April 21, 2005 12:57 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: LDAP Query


There are working examples in the archives that show how to do this.
Reading from LDAP isn't difficult by writing (which is a modify query)
is but there are examples of both. If I remember how it works, a
successful connect returns a pointer that you pass into the other API
calls. If the pointer is null, the connect didn't work and you need to
check errno to find out why (the samples likely have that in them as
well).

Matt

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Smith, Mike
Sent: Thursday, April 21, 2005 12:40 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: LDAP Query


Rob Said
Honestly I've only casually glanced at the code so far. Where is the
name of the ldap server?

As I understand it(and I might be totally wrong)  The name of the LDAP
server is the first parm of the LDAP_INIT procedure.  It can be null or
it can be a space seperated list of host to search.  

In original example it is *NULL which means localhost. 
I tried using the IP address in my situation.  I then tried just random
names and all returned a pointer.  

Michael Smith
iSeries.mySeries.

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


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


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.