Gallery 3.0.9 with PAM module - login does not work...

iYassin

Joined: 2013-11-26
Posts: 1
Posted: Tue, 2013-11-26 22:05

I set up a Gallery 3.0.9 installation which is set to be connected to another software featuring a user/group management system. Users logging onto this system should be able to log into the Gallery installation with the same credentials.

I actually found the PAM module on the Gallery website and successfully installed it. The "Gallery" plugin works fine for authenticating old users, so I started working on the "Mock" template for my own plugin. At some point, the Gallery stopped working at all and I kept getting the following error in the logfile:

Quote:
2013-11-24 10:40:38 +01:00 --- error: ReflectionException [ -1 ]: Class _Controller does not exist
C:\Program Files (x86)\XAMPP\htdocs\gallery3\modules\gallery\helpers\gallery.php [ 64 ]
#0 C:\Program Files (x86)\XAMPP\htdocs\gallery3\modules\gallery\helpers\gallery.php(64): ReflectionClass->__construct('_Controller')
#1 [internal function]: gallery_Core::private_gallery(NULL)
#2 C:\Program Files (x86)\XAMPP\htdocs\gallery3\system\core\Event.php(208): call_user_func_array(Array, Array)
#3 C:\Program Files (x86)\XAMPP\htdocs\gallery3\system\libraries\Router.php(160): Event_Core::run('system.post_rou...')
#4 [internal function]: Router_Core::setup(NULL)
#5 C:\Program Files (x86)\XAMPP\htdocs\gallery3\system\core\Event.php(208): call_user_func_array(Array, Array)
#6 C:\Program Files (x86)\XAMPP\htdocs\gallery3\application\Bootstrap.php(61): Event_Core::run('system.routing')
#7 C:\Program Files (x86)\XAMPP\htdocs\gallery3\index.php(116): require('C:\Program File...')

After reinstalling the PAM plugin, the Gallery is usable again - however, the PAM plugin doesn't work fine: I can authenticate fine using the existing ""Gallery plugin, but neither the "Mock" template nor my own version of it works. If I enter credentials that should be accepted by one of them - or if I enter completely wrong credentials - the login window becomes blank, changes its size and brings up an error together with the following entry in the logfile:

Quote:
2013-11-24 19:42:12 +01:00 --- error: ErrorException [ 0 ]: Trying to get property of non-object
C:\Program Files (x86)\XAMPP\htdocs\gallery3\modules\user\libraries\drivers\IdentityProvider\Gallery.php [ 54 ]
#0 C:\Program Files (x86)\XAMPP\htdocs\gallery3\modules\user\libraries\drivers\IdentityProvider\Gallery.php(54): gallery_error_Core::error_handler(8, 'Trying to get p...', 'C:\Program File...', 54, Array)
#1 C:\Program Files (x86)\XAMPP\htdocs\gallery3\modules\gallery\libraries\IdentityProvider.php(204): IdentityProvider_Gallery_Driver->is_correct_password(NULL, 'fsdlkaj')
#2 C:\Program Files (x86)\XAMPP\htdocs\gallery3\modules\gallery\helpers\identity.php(168): IdentityProvider_Core->is_correct_password(NULL, 'fsdlkaj')
#3 C:\Program Files (x86)\XAMPP\htdocs\gallery3\modules\pam\plugins\gallery\gallery.php(11): identity_Core::is_correct_password(NULL, 'fsdlkaj')
#4 C:\Program Files (x86)\XAMPP\htdocs\gallery3\modules\pam\controllers\pam.php(170): pam_gallery->__construct('uaer', 'fsdlkaj')
#5 C:\Program Files (x86)\XAMPP\htdocs\gallery3\modules\pam\controllers\pam.php(97): pam_Controller->_checkpass('uaer', 'fsdlkaj')
#6 C:\Program Files (x86)\XAMPP\htdocs\gallery3\modules\pam\controllers\pam.php(64): pam_Controller->_auth('pam/auth_ajax')
#7 [internal function]: pam_Controller->auth_ajax()
#8 C:\Program Files (x86)\XAMPP\htdocs\gallery3\system\core\Kohana.php(331): ReflectionMethod->invokeArgs(Object(pam_Controller), Array)
#9 [internal function]: Kohana_Core::instance(NULL)
#10 C:\Program Files (x86)\XAMPP\htdocs\gallery3\system\core\Event.php(208): call_user_func_array(Array, Array)
#11 C:\Program Files (x86)\XAMPP\htdocs\gallery3\application\Bootstrap.php(67): Event_Core::run('system.execute')
#12 C:\Program Files (x86)\XAMPP\htdocs\gallery3\index.php(116): require('C:\Program File...')
#13 {main}

Until now, I checked my code for several hours and couldn't find any issue. It does even still come up with the original plugin setup in the PAM module's plugins folder.

Could you help me with this problem?

Thanks in advance,

iYassin