Now that you have Active Directory integration on Linux, you can authenticate against Active Directory from any application via a simple shell script. One I'm working on intergrates Active Directory authentication from PHP, without all the hassle of installing and using PHP's LDAP extension. Since I'm already configured to authenticate with winbind, I use a command that winbind provides to authenticate AD users, which makes the code required to do an authentication pretty simple.
# ntlm_auth --username='User' --password='password'
In the preceding code, I use the ntlm_auth (NT LAN Man Authentication) command to authenticate an AD user. The output from that command will tell me whether or not the authentication was successful, whether or not the username was correct, but the password wrong, or whether or not the user exists at all. From PHP, I'd get the results of that command like this:
<?php
$result = shell_exec("ntlm_auth --username='User' --password='password'");
?>
So, instead of a complicated LDAP script, I can just write a simple call to the shell and be done with it.