[op5-users] Ninja and usernames containing @
Paul Haldane
paul.haldane at newcastle.ac.uk
Fri Jan 1 21:03:38 CET 2010
As I said in my last message I've just downloaded and installed Ninja (and Merlin) and linked them into our existing Nagios config. The only significant problem I had was with authentication. The usernames in our Nagios system are of the form id at ncl.ac.uk (because we use Shibboleth for access control and that's what it gives us). We've also got a local htpasswd file based access control system that we can switch to if Shibboleth is broken - that uses the same usernames and that's what I fed to the install process.
The installation process created entries for these users in the Merlin tables but I couldn't login. I eventually tracked this down to Auth_Ninja_Driver::login (modules/auth/libraries/drivers/Auth/Ninja.php).
Changing
$user = ORM::factory('user', $username);
to
$user = ORM::factory('user')->where('username', $username)->find();
made this work for me. What I don't understand is why this worked for usernames without a '@' (but I'm not a PHP programmer).
Paul
--
Paul Haldane
Infrastructure Systems,
Information Systems and Services, Newcastle University
More information about the op5-users
mailing list