mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
log successful authentication
This commit is contained in:
parent
d325340e0b
commit
8f5a699f0c
|
@ -160,6 +160,8 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
|
||||||
require_once("../inc/inc.ClassLdapAuthentication.php");
|
require_once("../inc/inc.ClassLdapAuthentication.php");
|
||||||
$authobj = new SeedDMS_LdapAuthentication($this->dms, $settings);
|
$authobj = new SeedDMS_LdapAuthentication($this->dms, $settings);
|
||||||
$userobj = $authobj->authenticate($user, $pass);
|
$userobj = $authobj->authenticate($user, $pass);
|
||||||
|
if($userobj && $this->logger)
|
||||||
|
$this->logger->log('check_auth: type='.$type.', user='.$user.' authenticated against LDAP', PEAR_LOG_INFO);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
/* Authenticate against SeedDMS database {{{ */
|
/* Authenticate against SeedDMS database {{{ */
|
||||||
|
@ -167,6 +169,8 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
|
||||||
require_once("../inc/inc.ClassDbAuthentication.php");
|
require_once("../inc/inc.ClassDbAuthentication.php");
|
||||||
$authobj = new SeedDMS_DbAuthentication($this->dms, $settings);
|
$authobj = new SeedDMS_DbAuthentication($this->dms, $settings);
|
||||||
$userobj = $authobj->authenticate($user, $pass);
|
$userobj = $authobj->authenticate($user, $pass);
|
||||||
|
if($userobj && $this->logger)
|
||||||
|
$this->logger->log('check_auth: type='.$type.', user='.$user.' authenticated against database', PEAR_LOG_INFO);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
if(!$userobj) {
|
if(!$userobj) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user