why login success,but read any value?

2011-05-25
2013-05-20
  • zhangjinlei
    zhangjinlei
    2011-05-25

    why login success,but read any value?  many thanks.
    server:win 2003 server
    client:winXP +apache +php
    code:
    <?php

    include "./adLDAP.php";
    $config = '@zjl.org.cn';//domain name:zjl.org.cn
    $config = array('192.168.2.5','192.168.2.11');
    $config = 'cn=computers,dc=zjl,dc=org.cn';
    $adldap =new adLDAP(array('domain_controllers'=>$config,'account_suffix'=>$config,'base_dn'=>$config,'ad_username' => 'administrator','ad_password' => '*jsk2008##'));
    if($adldap)
    {
        echo "login success";
    }
    else
    {
        echo "login failed.";
    }
    echo "<b>All users</b><br>";
    foreach($adldap->all_users() as $val)
    {
    echo $val."<br>";
    }

    ?>

     
  • zhangjinlei
    zhangjinlei
    2011-05-25

    why login success,but don't read  any value?  many thanks.

     
  • zhangjinlei
    zhangjinlei
    2011-05-25

    i seeit, this is a wrong,dc=org.cn';

    http://www.bjjjlyw.com/