title: Authenticating user using LDAP from PHP
body: <p>My project is to make a module enrollment system for our university. So I contacted the IT people in my university for details to authenticate the students into the system. We are developing the system using the existing university login. They gave me some LDAP information, I don't know the usage of that. 
  I'm using PHP,Mysql on an Apacha server. 
  How can I authenticate a user logging into my system, given his userid and password with the LDAP information. </p>
  
  <p>Given below is the LDAP information(i have changed the domain name etc.)</p>
  
  <p>LDAP information for blueroom.ac.uk domain </p>
  
  <hr>
  
  <pre><code>LDAP Host : ad.blueroom.ac.uk
  
  LDAP port no: 389
  
  BASE DN : ou=bluebird, dc=bluebird, dc=ac, dc=my
  
  LDAP account to bind : cn = kikdap, ou=servacc, dc=bluebird,dc=ac,dc=uk
  
  LDAP account password : ********
  
  Attribute : sAMAccountName 
  </code></pre>