summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-16 23:54:05 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-16 23:55:28 +0100
commit06a7d09fd449b0c0aadf03a923b4a1561b57f64e (patch)
tree29d3028cebd2da05f6cc4a5939a06c9f70a66d87
parent5fed875f3ce92e4488f0e2ecff1d62699f5734e1 (diff)
downloadwebadmin-06a7d09fd449b0c0aadf03a923b4a1561b57f64e.tar.gz
Allow the domain name space to be passed on to authentication
-rw-r--r--lib/kolab_client_api.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/kolab_client_api.php b/lib/kolab_client_api.php
index 359fe73..dd70677 100644
--- a/lib/kolab_client_api.php
+++ b/lib/kolab_client_api.php
@@ -92,11 +92,12 @@ class kolab_client_api
*
* @return kolab_client_api_result Request response
*/
- public function login($username, $password)
+ public function login($username, $password, $domain = null)
{
$query = array(
'username' => $username,
- 'password' => $password
+ 'password' => $password,
+ 'domain' => $domain
);
$response = $this->post('system.authenticate', null, $query);