diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-09-11 19:42:08 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-09-27 13:34:15 +0200 |
commit | 81cf4a22efb4dd7303a3aa3451e29992562b19f0 (patch) | |
tree | ea06a2b044b0521901fd548162bf2118558e6a54 /apps/user_ldap/user_ldap.php | |
parent | 84f522f406d2bec8dff5acb0c7defc54b8e7d79a (diff) | |
download | nextcloud-server-81cf4a22efb4dd7303a3aa3451e29992562b19f0.tar.gz nextcloud-server-81cf4a22efb4dd7303a3aa3451e29992562b19f0.zip |
LDAP: coding style
Diffstat (limited to 'apps/user_ldap/user_ldap.php')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index f2e99d45794..6f52bbdf233 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -79,7 +79,8 @@ class USER_LDAP extends BackendUtility implements \OCP\UserInterface { */ public function checkPassword($uid, $password) { //find out dn of the user name - $filter = \OCP\Util::mb_str_replace('%uid', $uid, $this->access->connection->ldapLoginFilter, 'UTF-8'); + $filter = \OCP\Util::mb_str_replace( + '%uid', $uid, $this->access->connection->ldapLoginFilter, 'UTF-8'); $ldap_users = $this->access->fetchListOfUsers($filter, 'dn'); if(count($ldap_users) < 1) { return false; @@ -158,7 +159,8 @@ class USER_LDAP extends BackendUtility implements \OCP\UserInterface { //getting dn, if false the user does not exist. If dn, he may be mapped only, requires more checking. $dn = $this->access->username2dn($uid); if(!$dn) { - \OCP\Util::writeLog('user_ldap', 'No DN found for '.$uid.' on '.$this->access->connection->ldapHost, \OCP\Util::DEBUG); + \OCP\Util::writeLog('user_ldap', 'No DN found for '.$uid.' on '. + $this->access->connection->ldapHost, \OCP\Util::DEBUG); $this->access->connection->writeToCache('userExists'.$uid, false); return false; } |