Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13145 closed defect (worksforme)

LoginModule not working with Internet Explorer 11

Reported by: mstolle Owned by: Ryan J Ollos
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description

Hi,

we want to use trac with the AccountManager and Single-Sign-On using LDAP-Auth. Everything works fine with Firefox but unfortuntely corporate policies require that it also needs to work with internet explorer.

Trac is available in our intranet using

https://hostname/tickets/project1
https://hostname/tickets/project2
...

Therefore our current trac.ini, that every project inherits, contains the following auth_cookie configuration:

auth_cookie_domain = hostname
auth_cookie_lifetime = 432000
auth_cookie_path = /tickets
...
base_url = https://hostname

Comparing the trac logs of the Firefox and IE login reveals that LDAPAuth retrievies the user but the line after Dispatching <RequestWithSession "GET '/'"> is missing in the log of IE.

2017-04-12 07:56:10,987 Trac[store] DEBUG: LDAPAuth: Success authenticating CN=mstolle,...,DC=company
2017-04-12 07:56:10,988 Trac[web_ui] DEBUG: LoginModule.authenticate: Set 'REMOTE_USER' = 'mstolle'
2017-04-12 07:56:10,989 Trac[session] DEBUG: Retrieving session for ID u'mstolle'
2017-04-12 07:56:10,990 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow']
2017-04-12 07:56:12,052 Trac[web_ui] DEBUG: Auth distribution success: project1
2017-04-12 07:56:13,027 Trac[web_ui] DEBUG: Auth distribution success: project2
2017-04-12 07:56:14,002 Trac[web_ui] DEBUG: Auth distribution success: project3
2017-04-12 07:56:14,007 Trac[web_ui] DEBUG: Auth data received from: tickets/project4
2017-04-12 07:56:14,007 Trac[web_ui] DEBUG: Auth distribution success: project4
2017-04-12 07:56:15,091 Trac[web_ui] DEBUG: Auth distribution success: project5
2017-04-12 07:56:15,133 Trac[main] DEBUG: Dispatching <RequestWithSession "GET '/'">
2017-04-12 07:56:15,136 Trac[session] DEBUG: Retrieving session for ID u'mstolle'  <--- this line only in Firefox
2017-04-12 07:56:15,136 Trac[main] DEBUG: Chosen handler is <Component trac.wiki.web_ui.WikiModule>
2017-04-12 07:56:15,138 Trac[chrome] DEBUG: Prepare chrome data for request

After that the IE log contains No policy allowed anonymous performing messages and I am not logged in.

Any ideas?

Attachments (0)

Change History (5)

comment:1 Changed 8 years ago by Jun Omae

If your host name uses underscore characters, Internet Explorer rejects all cookies.

See http://stackoverflow.com/questions/21012559/issue-with-session-and-cookie-in-internet-explorer-for-websites-containing-under

comment:2 Changed 8 years ago by mstolle

No underscores, it is like loc-name-200

comment:3 Changed 8 years ago by Jun Omae

Could you please try to remove auth_cookie_domain option from your trac.ini? I think the option is not needed on your environment.

comment:4 Changed 8 years ago by mstolle

Resolution: fixed
Status: newclosed

Thank you so much. It works!

comment:5 Changed 8 years ago by Ryan J Ollos

Resolution: fixedworksforme

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.