Hey everybody,
I’m trying to setup authentication using a Zentyal server and the Active Directory module.
When I run auth.php I get this:
root@librenns:/opt/librenms# ./scripts/auth_test.php -v -u eric
Authentication Method: active_directory
AD bind success
Password:
Authenticate user eric:
AUTH SUCCESS
I have setup a bind user which seems to be working and when I type my username and password it works, however, the webui doesn’t work at all. I try to login and only get “Invalid Credentials”. I was digging through the code and think it’s this block of code in the file html/includes/authentication/functions.php
// check for valid user_id
if ($_SESSION['user_id'] === false || $_SESSION['user_id'] < 0) {
throw new AuthenticationException('Invalid Credentials');
}
It seems like the user_id is always -1.
Does anybody have any ideas?
Thanks,
Eric