Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #10918] Error on logout when using external authentication #2229

Closed
icinga-migration opened this issue Dec 30, 2015 · 4 comments
Labels
area/authentication Affects user authentication or authorization bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10918

Created by tachtler on 2015-12-30 11:10:26 +00:00

Assignee: (none)
Status: Resolved (closed on 2016-02-26 11:35:06 +00:00)
Target Version: 2.2.0
Last Update: 2016-02-26 11:35:06 +00:00 (in Redmine)


Hi,

I use icingaweb2 authentication backend-type: external with Apache HTTPD (VHOST with LDAP Authentication).

When I logout, following error occurs, seen in /var/log/messages:

@Icinga\Exception\IcingaException in /usr/share/php/Icinga/Authentication/Auth.php:127 with message: Cannot load preferences for user "root". An exception was thrown: exception 'Icinga\Exception\ConfigurationError' with message 'Resources not set up. Please contact your Icinga Web administrator' in /usr/share/php/Icinga/Data/ResourceFactory.php:77

Stack trace:

#0 /usr/share/php/Icinga/Data/ResourceFactory.php(47): Icinga\Data\ResourceFactory::assertResourcesExist() 
#1 /usr/share/php/Icinga/User/Preferences/PreferencesStore.php(131): Icinga\Data\ResourceFactory::getResourceConfig('icingaweb_db') 
#2 /usr/share/php/Icinga/Authentication/Auth.php(123): Icinga\User\Preferences\PreferencesStore::create(Object(Icinga\Data\ConfigObject), Object(Icinga\User)) 
#3 /usr/share/php/Icinga/Authentication/Auth.php(262): Icinga\Authentication\Auth->setAuthenticated(Object(Icinga\User)) 
#4 /usr/share/php/Icinga/Authentication/Auth.php(93): Icinga\Authentication\Auth->authExternal() 
#5 /usr/share/php/Icinga/Web/StyleSheet.php(125): Icinga\Authentication\Auth->isAuthenticated() 
#6 /usr/share/php/Icinga/Web/StyleSheet.php(93): Icinga\Web\StyleSheet->collect() 
#7 /usr/share/php/Icinga/Web/StyleSheet.php(186): Icinga\Web\StyleSheet->__construct() 
#8 /usr/share/php/Icinga/Application/webrouter.php(64): Icinga\Web\StyleSheet::send(true) 
#9 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...') 
#10 {main} <- Icinga\Exception\ConfigurationError in /usr/share/php/Icinga/Data/ResourceFactory.php:77 with message: Resources not set up. Please contact your Icinga Web administrator@

Inside icingaweb_db the user root is defined as a member of the group Administrators.

Thank you!
Klaus

Changesets

2016-02-26 11:29:30 +00:00 by elippmann e4a0678

Load resources from config automatically instead of throwing an exception

fixes #10918

Relations:

@icinga-migration
Copy link
Author

Updated by elippmann on 2016-01-08 14:17:01 +00:00

  • Subject changed from Error on logout (using authentication backend-type: external) to Error on logout when using external authentication
  • Target Version set to 2.2.0

Hi,

Thanks for the report. Will be fixed soon.

Cheers,
Eric

@icinga-migration
Copy link
Author

Updated by tachtler on 2016-01-09 04:21:07 +00:00

Hi,

thank you!

Klaus.

@icinga-migration
Copy link
Author

Updated by elippmann on 2016-02-26 11:35:06 +00:00

  • Status changed from New to Resolved
  • Done % changed from 0 to 100

Applied in changeset e4a0678.

@icinga-migration
Copy link
Author

Updated by elippmann on 2016-03-15 14:21:03 +00:00

  • Duplicated set to 11195

@icinga-migration icinga-migration added bug Something isn't working area/authentication Affects user authentication or authorization labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.2.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/authentication Affects user authentication or authorization bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant