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



Ok, so it is as I thought, I think we have some limitations in our
active directory set up.  I was of the understanding that you login and
then query the information that you need from active directory and that
works great from your example but I think we have people not set up
correctly in the active directory so this becomes a network admin issue.
Once again, thank you for your help.  This was exactly what I needed to
know.

Kevin Touchette 

-----Original Message-----
From: web400@xxxxxxxxxxxxxxxx [mailto:web400@xxxxxxxxxxxxxxxx] 
Sent: Wednesday, November 02, 2005 10:46 AM
To: Web Enabling the AS400 / iSeries
Subject: RE: [WEB400] Reading active directory from RPG


>  Scott's code was exactly what I was looking for, the only thing I 
> don't understand is, how do I authenticate a user's password.
> I don't think we want to make it so that all users can connect to the 
> LDAP server.

ldap_simple_bind_s() does that.  There's an example of this in the code
that you looked at.  instead of hard-coding the userid/password in the
LOGIN_ACCT & LOGIN_PASSWD variables, ask the user for them.


> Or do we?  I was kind of thinking that one account would be able to 
> connect and do a query of a user profile and password?  How do I get 
> the password to authenticate it?

Are you talking about something different than I am?  Are you talking
about logging into the LDAP server?  Or are you talking about retrieving
a password that's stored in a field in the LDAP database?
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To
post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.



_________________________________________________
Scanned on 02 Nov 2005 17:50:34
Scanned by Erado



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.