This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "-- Installing Now -- " | |
echo "-- Updating Packages... --" | |
sudo apt-get update | |
echo "-- Configuring MySQL --" | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' | |
echo "-- Installing Base Packages... --" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function verifyLdapUser($username,$password) | |
{ | |
$DomainName=LDAPDOMAIN; // name = domain | |
$ldap_server=LDAP; // server = ldap://doman.co | |
// returns true when user/pass binds to LDAP/AD. | |
$auth_user=$username."@".$DomainName; | |
//Check to see if LDAP module is loaded. | |
if (extension_loaded('ldap')) { |
NewerOlder