Welcome Guest, Not a member yet? Register   Sign In
trying to login automatically with adldap
#1

[eluser]Frank Rocco[/eluser]
Hello,

Does anyone kno how to get the users id in windows and connect to adldap without having to enter a userid and password?

Thanks

Code:
$options = array(array('domain_controllers' => 'Mydomain',
            'base_dn' => "OU=DS,OU=Users,OU=Healthcare,DC=vn,DC=local",
            'account_suffix' => ''));
        try {
            $adldap = new adLDAP($options);
        }
        catch (adLDAPException $e) {
            echo $e; exit();  
        }
$result=$adldap->all_users(TRUE, "*", TRUE);
        var_dump ($result);


Messages In This Thread
trying to login automatically with adldap - by El Forum - 08-24-2010, 12:37 PM
trying to login automatically with adldap - by El Forum - 08-24-2010, 01:00 PM
trying to login automatically with adldap - by El Forum - 08-24-2010, 01:15 PM
trying to login automatically with adldap - by El Forum - 08-24-2010, 01:16 PM
trying to login automatically with adldap - by El Forum - 08-24-2010, 01:36 PM
trying to login automatically with adldap - by El Forum - 08-24-2010, 01:42 PM
trying to login automatically with adldap - by El Forum - 08-24-2010, 01:55 PM
trying to login automatically with adldap - by El Forum - 08-24-2010, 02:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB