Fix code according to blizzz' notes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
OC::$CLASSPATH['OC_User_External_Base']='user_external/lib/base.php';
|
||||
OC::$CLASSPATH['OCA\user_external\Base']='user_external/lib/base.php';
|
||||
OC::$CLASSPATH['OC_User_IMAP']='user_external/lib/imap.php';
|
||||
OC::$CLASSPATH['OC_User_SMB']='user_external/lib/smb.php';
|
||||
OC::$CLASSPATH['OC_User_FTP']='user_external/lib/ftp.php';
|
||||
|
||||
@@ -17,15 +17,15 @@
|
||||
<name>backend</name>
|
||||
<type>text</type>
|
||||
<default></default>
|
||||
<notnull>true</notnull>
|
||||
<length>255</length>
|
||||
<notnull>false</notnull>
|
||||
<length>128</length>
|
||||
</field>
|
||||
|
||||
<field>
|
||||
<name>uid</name>
|
||||
<type>text</type>
|
||||
<default></default>
|
||||
<notnull>true</notnull>
|
||||
<notnull>false</notnull>
|
||||
<length>64</length>
|
||||
</field>
|
||||
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
<?php
|
||||
namespace OCA\user_external;
|
||||
/**
|
||||
* Copyright (c) 2013 Christian Weiske <cweiske@cweiske.de>
|
||||
* Copyright (c) 2014 Christian Weiske <cweiske@cweiske.de>
|
||||
* This file is licensed under the Affero General Public License version 3 or
|
||||
* later.
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
use \OC_DB;
|
||||
|
||||
/**
|
||||
* Base class for external auth implementations that stores users
|
||||
@@ -12,7 +14,7 @@
|
||||
* This is required for making many of the user-related owncloud functions
|
||||
* work, including sharing files with them.
|
||||
*/
|
||||
abstract class OC_User_External_Base extends OC_User_Backend{
|
||||
abstract class Base extends \OC_User_Backend{
|
||||
protected $backend = '';
|
||||
|
||||
public function __construct($backend) {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
class OC_User_FTP extends OC_User_External_Base{
|
||||
class OC_User_FTP extends \OCA\user_external\Base{
|
||||
private $host;
|
||||
private $secure;
|
||||
private $protocol;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
class OC_User_IMAP extends OC_User_External_Base {
|
||||
class OC_User_IMAP extends \OCA\user_external\Base {
|
||||
private $mailbox;
|
||||
|
||||
public function __construct($mailbox) {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
class OC_User_SMB extends OC_User_Backend{
|
||||
class OC_User_SMB extends \OCA\user_external\Base{
|
||||
private $host;
|
||||
|
||||
const smbclient='smbclient';
|
||||
|
||||
Reference in New Issue
Block a user