3 Replies Latest reply on May 31, 2016 1:21 PM by Matt Coles

    VizAlerts: Trusted Tickets with Active Directory

    Mark Bloomfield

      Hi all,

       

      We have managed to install VizAlerts all AOK. When running the Advanced Alerts Demo (running python vizalerts.py), a trusted ticket is generated fine (for trusted_ticket_test) with the username correctly setup as domain\user as we use AD. However, when it attempts to generate a ticket downstream in the process, it fails. It would appear (from the logs) that it is seeing the user without the domain name. However, thats my best guess being new to this and would welcome any help. Log details below.

       

      Many thanks,
      Mark

       

       

       

       

       

      2016-05-31 16:10:57 - [INFO] - LoggerQuickSetup - Logging initialized, writing to .\logs\vizalerts.log_2016-05-31.log

      2016-05-31 16:10:57 - [DEBUG] - trusted_ticket_test - testing trusted ticket: glabsdev.thisisglobal.com, thisisglobal\mark.bloomfield, None

      2016-05-31 16:10:57 - [DEBUG] - get_trusted_ticket - Generating trusted ticket. Request details: Server: glabsdev.thisisglobal.com, Site: , Username: thisisglobal\mark.bloomfield, Url: https://glabsdev.thisisglobal.com/trusted, Postdata: username=thisisglobal%5Cmark.bloomfield.

      2016-05-31 16:10:58 - [DEBUG] - get_trusted_ticket - Got ticket: dFXVXcwteDtGH6uIGFBphyA6

      2016-05-31 16:10:58 - [DEBUG] - trusted_ticket_test - Generated test trusted ticket. Value is: dFXVXcwteDtGH6uIGFBphyA6

      2016-05-31 16:10:58 - [DEBUG] - get_views - PostgreSQL repository returned 1 rows

      2016-05-31 16:10:58 - [DEBUG] - get_views - Checking rule with from: 0, to: 3600, timeout: 30

      2016-05-31 16:10:58 - [DEBUG] - get_views - Rule applies!

      2016-05-31 16:10:58 - [DEBUG] - get_views - using timeout 30s, data retrieval tries 1, due to it being 1824.773 seconds since last run.

      2016-05-31 16:10:58 - [INFO] - main - Processing a total of 1 views

      2016-05-31 16:10:58 - [DEBUG] - process_views - Processing subscription_id -22, view_id 1066, site_name Default, customized view id None, view_name Advanced Alerts Demo

      2016-05-31 16:10:58 - [DEBUG] - address_is_invalid - Splitting Address: localpart, domainname, host, toplevel: Mark.Bloomfield,thisisglobal.com,thisisglobal,com

      2016-05-31 16:10:58 - [DEBUG] - address_is_invalid - Removing other characters from address: localpart, host: MarkBloomfield,thisisglobal

      2016-05-31 16:10:58 - [DEBUG] - get_trusted_ticket - Generating trusted ticket. Request details: Server: glabsdev.thisisglobal.com, Site: , Username: Mark.Bloomfield, Url: https://glabsdev.thisisglobal.com/trusted, Postdata: username=Mark.Bloomfield.

      2016-05-31 16:10:58 - [ERROR] - get_trusted_ticket - Generic exception generating trusted ticket: 'module' object has no attribute '_create_unverified_context'  Request details: Server: glabsdev.thisisglobal.com, Site: , Username: Mark.Bloomfield, Url: https://glabsdev.thisisglobal.com/trusted, Postdata: username=Mark.Bloomfield.

      2016-05-31 16:10:58 - [ERROR] - export_view - Unable to export the url https://glabsdev.thisisglobal.com/views/VizAlertsDemo/AdvancedAlertsDemo?&:format=csv&:refresh=y to csv, error: Generic exception generating trusted ticket: 'module' object has no attribute '_create_unverified_context'  Request details: Server: glabsdev.thisisglobal.com, Site: , Username: Mark.Bloomfield, Url: https://glabsdev.thisisglobal.com/trusted, Postdata: username=Mark.Bloomfield.

      2016-05-31 16:10:58 - [ERROR] - process_views - Unable to export viewname Advanced Alerts Demo as csv, error: Unable to export the url https://glabsdev.thisisglobal.com/views/VizAlertsDemo/AdvancedAlertsDemo?&:format=csv&:refresh=y to csv, error: Generic exception generating trusted ticket: 'module' object has no attribute '_create_unverified_context'  Request details: Server: glabsdev.thisisglobal.com, Site: , Username: Mark.Bloomfield, Url: https://glabsdev.thisisglobal.com/trusted, Postdata: username=Mark.Bloomfield.

      2016-05-31 16:10:58 - [INFO] - send_email - sending email: smtpinternal.thisisglobal.com,mark.bloomfield@thisisglobal.com,Mark.Bloomfield@thisisglobal.com,mark.bloomfield@thisisglobal.com,None,VizAlerts was unable to process view Advanced Alerts Demo,None

      2016-05-31 16:10:58 - [DEBUG] - send_email - email body: VizAlerts was unable to export data for this view. Error message: Unable to export viewname Advanced Alerts Demo as csv, error: Unable to export the url https://glabsdev.thisisglobal.com/views/VizAlertsDemo/AdvancedAlertsDemo?&:format=csv&:refresh=y to csv, error: Generic exception generating trusted ticket: 'module' object has no attribute '_create_unverified_context'  Request details: Server: glabsdev.thisisglobal.com, Site: , Username: Mark.Bloomfield, Url: https://glabsdev.thisisglobal.com/trusted, Postdata: username=Mark.Bloomfield.<br><br><b>Details:</b><br><br><b>View URL:</b> <a href="http://glabsdev.thisisglobal.com/views/VizAlertsDemo/AdvancedAlertsDemo">http://glabsdev.thisisglobal.com/views/VizAlertsDemo/AdvancedAlertsDemo<a><br><b>Subscriber:</b> <a href="mailto:Mark.Bloomfield@thisisglobal.com">Mark.Bloomfield</a><br><b>View Owner:</b> <a href="mailto:Mark.Bloomfield@thisisglobal.com">Mark.Bloomfield</a><br><b>Site Id:</b> Default<br><b>Project:</b> Default