Wenn man sich an Extensions wie sg_beiplogin orientiert, sollte es eigentlich relativ einfach sein über einen Service den Login Vorgang eines BE Users zu manipulieren. Leider kann ich machen was ich will - meine Methoden werden wohl nicht aufgerufen.
ext_localconf.php:
t3lib_extMgm::addService($_EXTKEY, '' /* sv type */, 'tx_securebelogin_sv1' /* sv key */,
array(
'title' => 'bla',
'description' => 'bla',
'subtype' => 'authUserBE',
'available' => TRUE,
'priority' => 60,
'quality' => 50,
'os' => '',
'exec' => '',
'classFile' => t3lib_extMgm::extPath($_EXTKEY).'sv1/class.tx_securebelogin_sv1.php',
'className' => 'tx_securebelogin_sv1',
)
);
Service Klasse:
class tx_securebelogin_sv1 extends tx_sv_authbase {
var $prefixId = 'tx_securebelogin_sv1';
var $scriptRelPath = 'sv1/class.tx_securebelogin_sv1.php';
var $extKey = 'securebelogin';
function authUser() {
$this->writelog(
255,
3,
3,
1,
"Login-attempt from %s (%s), username '%s', password not accepted!",
array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname'])
);
return false;
}
...
Weder das Login wird verhindert noch das Log wird geschrieben.
Ideen?
Grüße, Alex