Modify

Opened 4 years ago

Last modified 3 years ago

#8622 assigned enhancement

Kerberos / NTLM / Windows authentication in urllib2

Reported by: charlie@… Owned by: airadier
Priority: normal Component: TracWikiPrintPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Is there any way to get working the Windows Authentication (Kerberos/NTML) in TracWikiPrintPlugin (through the used urllib2), please?

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by airadier

Probably, but I don't have a similar scenario to try it... Could you provide details on how it works?

comment:2 Changed 4 years ago by charlie@…

The trac is implemented on IIS so the IIS is the "last" provider for the web content. This means, that your plugin is connecting to IIS and IIS has the NTLM authentication (in order to be able to do SSON). The trac app is using impersonalization to retrieve the proper content. I think that it might be possible not to use the urllib2 but the API of trac to retrieve WIKI images. What we do need is just only the retrieval of WIKI images. I placed the fonts on a different URL, where is no authentication required. This allows us to use UTF-8 encoding.. So it's just only about images..

Meanwhile I also changed the tempfile.mktemp as our TRAC is using impersonalization and the default TEMP is in Windows\Temp directory which is not accesible by the user and it should not be acessible by the user..

row 96 : path = tempfile.mktemp(prefix="pisa-", suffix = suffix, dir=self.env.config.get('wikiprint', 'tempdir'))

There is also a issue with the temp folders - I don't know how to get this working without having the rights to WIKIPRINT_FILESYSTEM. But this should be another Ticket then..

comment:3 Changed 3 years ago by airadier

  • Status changed from new to assigned

Related to #9777

Add Comment

Modify Ticket

Action
as assigned The owner will remain airadier.
Author


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

 
Note: See TracTickets for help on using tickets.