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?

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.