summaryrefslogtreecommitdiffstats
path: root/apps/user_webdavauth/user_webdavauth.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-11-05 10:46:28 +0100
committerFrank Karlitschek <frank@owncloud.org>2012-11-05 10:46:28 +0100
commit01b0e9b133279ec6c68e7fca6c8ae35c35f82941 (patch)
tree235e575a6103defa3db18da2279d7569ccdcae80 /apps/user_webdavauth/user_webdavauth.php
parentd9d6dc892c4ed176df0f385f6ed8d1269cbe7c43 (diff)
downloadnextcloud-server-01b0e9b133279ec6c68e7fca6c8ae35c35f82941.tar.gz
nextcloud-server-01b0e9b133279ec6c68e7fca6c8ae35c35f82941.zip
fix the webdav user backend. still not completel working but a frist step
Diffstat (limited to 'apps/user_webdavauth/user_webdavauth.php')
-rwxr-xr-xapps/user_webdavauth/user_webdavauth.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/user_webdavauth/user_webdavauth.php b/apps/user_webdavauth/user_webdavauth.php
index 5a16a4c992a..2af8e9f103d 100755
--- a/apps/user_webdavauth/user_webdavauth.php
+++ b/apps/user_webdavauth/user_webdavauth.php
@@ -34,7 +34,7 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
return false;
}
- public function deleteUser() {
+ public function deleteUser($uid) {
// Can't delete user
OC_Log::write('OC_USER_WEBDAVAUTH', 'Not possible to delete users from web frontend using WebDAV user backend', 3);
return false;
@@ -47,7 +47,6 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
}
public function checkPassword( $uid, $password ) {
-
$url= 'http://'.urlencode($uid).':'.urlencode($password).'@'.$this->webdavauth_url;
$headers = get_headers($url);
if($headers==false) {
@@ -58,9 +57,9 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
$returncode= substr($headers[0], 9, 3);
if($returncode=='401') {
- return false;
+ return(false);
}else{
- return true;
+ return($uid);
}
}
@@ -75,7 +74,7 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
/*
* we donĀ“t know the users so all we can do it return an empty array here
*/
- public function getUsers() {
+ public function getUsers($search = '', $limit = 10, $offset = 0) {
$returnArray = array();
return $returnArray;