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