Commit bba0cfaa authored by mku's avatar mku

ZP-553 #comment Configuration whether to use email address or local part only for login

git-svn-id: https://z-push.org/svn/z-push/trunk@1910 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 70b7b9e2
...@@ -157,6 +157,9 @@ class BackendZarafa implements IBackend, ISearchProvider { ...@@ -157,6 +157,9 @@ class BackendZarafa implements IBackend, ISearchProvider {
public function Logon($user, $domain, $pass) { public function Logon($user, $domain, $pass) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("ZarafaBackend->Logon(): Trying to authenticate user '%s'..", $user)); ZLog::Write(LOGLEVEL_DEBUG, sprintf("ZarafaBackend->Logon(): Trying to authenticate user '%s'..", $user));
$this->mainUser = strtolower($user); $this->mainUser = strtolower($user);
if(defined('USE_FULLEMAIL_FOR_LOGIN') && ! USE_FULLEMAIL_FOR_LOGIN) {
$this->mainUser = Utils::GetLocalPartFromEmail($this->mainUser);
}
try { try {
// check if notifications are available in php-mapi // check if notifications are available in php-mapi
......
...@@ -60,6 +60,15 @@ ...@@ -60,6 +60,15 @@
// This setting specifies the owner parameter in the certificate to look at. // This setting specifies the owner parameter in the certificate to look at.
define("CERTIFICATE_OWNER_PARAMETER", "SSL_CLIENT_S_DN_CN"); define("CERTIFICATE_OWNER_PARAMETER", "SSL_CLIENT_S_DN_CN");
/*
* Whether to use the complete email address as a login name
* (e.g. user@company.com) or the username only (user).
* This is required for Z-Push to work properly after autodiscover.
* Possible values:
* false - use the username only (default).
* true - use the complete email address.
*/
define('USE_FULLEMAIL_FOR_LOGIN', false);
/********************************************************************************** /**********************************************************************************
* Default FileStateMachine settings * Default FileStateMachine settings
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment