Modify

Opened 4 years ago

#11441 new defect

TLS already started

Reported by: patrick Owned by: Larry Ruiz
Priority: normal Component: LdapAuthnzPlugin
Severity: normal Keywords: python2.6
Cc: Trac Release: 1.0

Description

Hi,

I was getting the following error when trying to securely connect to an LDAP server:

OPERATIONS_ERROR: {'info': 'TLS already started', 'desc': 'Operations error'}

I am very new to Trac admin and not much of a python programmer, but the following fix corrected this issue for me:

Commenting out the if statement at: http://trac-hacks.org/browser/ldapauthnzplugin/trunk/tautua/trac_plugins/security/ldapauth.py#L72

'''
   if self.server.startswith('ldaps'):
	connection.start_tls_s()
'''

My very naive understanding is it seems that by specifying a secure server in the trac.ini file:

[ldap]
#use ldaps:// for tls
server = ldaps://...
...

the ldap.initialize() function at http://trac-hacks.org/browser/ldapauthnzplugin/trunk/tautua/trac_plugins/security/ldapauth.py#L70 already starts TLS.

Regards,

Patrick

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Larry Ruiz.

Add Comment


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

 
Note: See TracTickets for help on using tickets.