Re: [PHP-WIN] System integration Step 2

2006-02-16 Thread Martin Alsinet
> But now, does anyone now how to retrieve the username and password that > the user uses to logon to their PC so as to now authenticate for the > application against Active Directory? You got me interested, so I checked it again and there is an apache module that lets you authenticate against AD

RE: [PHP-WIN] System integration Step 2

2006-02-15 Thread Matt Murphy
Well the password will be encrypted I'd think in AD, are you sure you want to retrieve the password, or just authenticate the login? The code I sent should do that just fine, not sure about with the LDAP library you're using. Matt From: [EMAIL PROTECTED] [m

RE: [PHP-WIN] System integration

2006-02-14 Thread Matt Murphy
The easiest way I've found, if you just want to verify their username & password, you can do this: $ds=ldap_connect("ldap://yourdc.yourdomain.com";); // Fix for Windows 2003 AD ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); ldap_set_option($ds, LDAP_OPT_REFERRALS, 0); if ($ds) { [EMAIL PR

Re: [PHP-WIN] System integration

2006-02-14 Thread Martin Alsinet
On 2/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi guys, > > Does anyone know or got an idea of how to access the user accounts of > Active Directory using PHP? You can use adLDAP: http://adldap.sourceforge.net/ ..."adLDAP is a PHP class that provides LDAP authentication with Active Dire