title: LDAP authentication with PHP application on samba system
body: <p>I set OpenLDAP on a samba system. In ldap, there is users in different cn and ou. I have an application in PHP which authenticate users from AD. I got connection ldap with my application. But not bind user with an application during authentication. I want to know that how to authenticate users from php application to AD which is on samba machine. Here is core code.</p>
  
  <pre><code>$ldapconn = ldap_connect("test.com") or die("Could not connect to LDAP server.");
  $ldapbind = ldap_bind($ldapconn,'admin','admin12345');
  var_dump($ldapbind);
  exit;
  </code></pre>
  
  <p>I got bool(false) for ldap bind.</p>
  
  <p>I got an error : <strong>ldap_bind(): Unable to bind to server: Strong(er) authentication required</strong></p>