note 21704 deleted from ref.ldap by cmb

From: Date: Sun, 17 Nov 2019 08:34:18 +0000
Subject: note 21704 deleted from ref.ldap by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213072@lists.php.net to get a copy of this message
Note Submitter: wtfo at technocraft dot com ---- This worked for me: function checkNTUser ($username,$password) { $ldapserver = 'Your Server'; $ds=ldap_connect($ldapserver); if ($ds) { $dn="cn=$username,cn=Users, DC=[sitename], DC=[sitesuffix]"; $r=@ldap_bind($ds,$dn,$password); if ($r) { return true; } else { return false; } } }

« previous php.notes (#213072) next »