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