TECHZEN Zenoss User Community ARCHIVE  

Log in with Active Directory user

Subject: Log in with Active Directory user
Author: [Not Specified]
Posted: 2014-07-08 05:38

I can log in with the standard admin account and a newly created user account. However, after setting up LDAP support in Zope with my Active Directory server, I cannot log in using any AD user.

First of all: how should I log in domain.com\user, domain\user, domain/user, user@domain.com

Then, is there a way to see what happens when you're trying to log in I don't see anything in the Zenoss logs, but maybe there's something in the Zope logs Where are they

Cheers,
Michiel



Subject: More info
Author: [Not Specified]
Posted: 2014-07-09 04:47

First of all, I changed the time of the server to be the same as the AD server. Now I'm getting some other results. When I log in with my AD user name only (so without domain in any way) and the right password (without the right username/password, I get the login screen again):

Site Error

An error was encountered while publishing this resource.

Sorry, a site error occurred.
Traceback (innermost last):

Module ZPublisher.Publish, line 237, in publish_module_standard
Module ZPublisher.Publish, line 165, in publish
Module Zope2.App.startup, line 230, in __call__
Module Products.ZenUI3.browser, line 103, in __call__
Module Products.ZenWidgets.FileGzipper, line 82, in __call__
Module Products.Five.browser.pagetemplatefile, line 59, in __call__
Module zope.pagetemplate.pagetemplate, line 132, in pt_render
Module zope.pagetemplate.pagetemplate, line 240, in __call__
Module zope.tal.talinterpreter, line 266, in __call__
Module zope.tal.talinterpreter, line 338, in interpret
Module zope.tal.talinterpreter, line 853, in do_defineMacro
Module zope.tal.talinterpreter, line 338, in interpret
Module zope.tal.talinterpreter, line 528, in do_optTag_tal
Module zope.tal.talinterpreter, line 513, in do_optTag
Module zope.tal.talinterpreter, line 508, in no_tag
Module zope.tal.talinterpreter, line 338, in interpret
Module zope.tal.talinterpreter, line 737, in do_insertStructure_tal
Module Products.PageTemplates.Expressions, line 218, in evaluateStructure
Module zope.tales.tales, line 696, in evaluate
URL: /opt/zenoss/Products/ZenUI3/browser/error_message.pt
Line 14, Column 8
Expression:
Names:
{'args': (),
'container': BadRequest('The id "JI\x96\x13\x01[\x84E\x8b\xc1;\n\xff\x1e\xb3\xe2" contains characters illegal in URLs.',),
'context': BadRequest('The id "JI\x96\x13\x01[\x84E\x8b\xc1;\n\xff\x1e\xb3\xe2" contains characters illegal in URLs.',),
'default': ,
'here': BadRequest('The id "JI\x96\x13\x01[\x84E\x8b\xc1;\n\xff\x1e\xb3\xe2" contains characters illegal in URLs.',),
'loop': {},
'nothing': None,
'options': {},
'repeat': ,
'request': http://192.168.50.74:8080/zport/acl_users/cookieAuthHelper/login>,
'root': None,
'template': ,
'traverse_subpath': [],
'user': ,
'view': ,
'views': }
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 147, in _eval
Module zope.tales.expressions, line 124, in _eval
Module Products.PageTemplates.Expressions, line 97, in trustedBoboAwareZopeTraverse
Module zope.traversing.adapters, line 136, in traversePathElement
__traceback_info__: (, 'headExtra')
Module zope.traversing.adapters, line 42, in traverse
__traceback_info__: (, 'headExtra', [])
Module Products.ZenUI3.browser, line 65, in headExtra
Module Products.ZenUI3.browser, line 61, in _get_viewlets
Module zope.viewlet.manager, line 126, in render
Module Products.ZenCallHome.transport.methods.browserjs, line 56, in render
Module Products.ZenModel.UserSettings, line 204, in getUserSettings
Module Products.ZenRelations.RelationshipManager, line 145, in _setObject
Module Products.ZenRelations.PrimaryPathObjectManager, line 102, in _setObject
Module OFS.ObjectManager, line 325, in _setObject
Module Products.ZenRelations.RelCopySupport, line 48, in _checkId
Module OFS.ObjectManager, line 97, in checkValidId
BadRequest: The id "JI[E; " contains characters illegal in URLs.

Troubleshooting Suggestions

The URL may be incorrect.
The parameters passed to this resource may be incorrect.
A resource that this resource relies on may be encountering an error.
For more detailed information about the error, please refer to the error log.

If the error persists please contact the site maintainer. Thank you for your patience.



Subject: did you get this to work
Author: [Not Specified]
Posted: 2016-02-23 15:13

I am having the same issues.

Did you get this to work

if so how



Subject: anyone?
Author: [Not Specified]
Posted: 2016-11-04 12:31

Same here... having the same issue.

Looks like this project is slowly dying.... No one actively in the forums as before.



Subject: Reply
Author: John Boyle
Posted: 2016-11-08 12:25

Testing reply.

JB

John Boyle

Zenoss Community Engineer/Manager

jboyle@zenoss.com

Twitter: @BrandFlair



Subject: Need to know what version of
Author: Jane Curry
Posted: 2016-11-09 12:14

Need to know what version of Zenoss you are running

This http://wiki.zenoss.org/Enabling_LDAP_Authentication_in_Zenoss_Core_5 article is for Zenoss 5 but works pretty-much the same for Zenoss 4.x. There is an older Zenoss 4 article here -http://ttp://monitoringartist.github.io/community.zenoss.org/docs/DOC-2510.html - beware that some of the package versions may have changed.

If you are using 5.1.x there is currently a bug whereby you cannot access the Zope role manager - don't have a workaround for this one yet - see https://jira.zenoss.com/browse/ZEN-25539

Worth checking zenhub.log (in $ZENHOME/log - need to attach to the zenhub container first if you are working with Zenoss 5) - that tends to be first port of call for LDAP errors.

Sorry for the delay - the forum seems to have been blocking my responses for 5 days.

Cheers,

Jane

Email: jane.curry@skills-1st.co.uk    Web: https://www.skills-1st.co.uk



< Previous
Alert backlog - high cpu zeventd
  Next
supported versions of mysql
>