mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
add comment how $tmpDN is used
This commit is contained in:
parent
18715fe4fa
commit
5235a859fc
|
@ -127,6 +127,7 @@ class SeedDMS_LdapAuthentication extends SeedDMS_Authentication {
|
|||
*/
|
||||
if (isset($settings->_ldapBaseDN)) {
|
||||
$ldapSearchAttribut = "uid=";
|
||||
/* $tmpDN will only be used as a last resort if searching for the user failed */
|
||||
$tmpDN = "uid=".$username.",".$settings->_ldapBaseDN;
|
||||
}
|
||||
|
||||
|
@ -134,6 +135,7 @@ class SeedDMS_LdapAuthentication extends SeedDMS_Authentication {
|
|||
if (isset($settings->_ldapType)) {
|
||||
if ($settings->_ldapType==1) {
|
||||
$ldapSearchAttribut = "sAMAccountName=";
|
||||
/* $tmpDN will only be used as a last resort if searching for the user failed */
|
||||
$tmpDN = $username.'@'.$settings->_ldapAccountDomainName;
|
||||
// Add the following if authentication with an Active Dir doesn't work
|
||||
// See https://sourceforge.net/p/seeddms/discussion/general/thread/19c70d8d/
|
||||
|
|
Loading…
Reference in New Issue
Block a user