title: How to authenticate a PHP website using users in Samba4 AD
body: <p>I have seen a couple of websites / tutorials to "access files and folders" controlled by Samba4.</p>
  
  <p>I want to ask if it is possible to use Samba as the database, and allow a user to enter their username and password, then using PHP, connect to the Samba users list to check these credentials and authenticate.</p>