Skip to content

Commit

Permalink
Slightly modified version of the below patch by Adam.
Browse files Browse the repository at this point in the history
From 9c6facce573820987f1ce591f5530e37422fff81 Mon Sep 17 00:00:00 2001
From: Adam Goodman <[email protected]>
Date: Tue, 21 Jun 2011 16:09:40 -0400
Subject: [PATCH] fix starttls support

a small bug in the LDAPExtendedRequest constructor was making the
LDAPStartTLSRequest constructor fail
  • Loading branch information
psi29a committed Jul 4, 2014
1 parent 1ccbd17 commit 67d32ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldaptor/protocols/pureldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,14 +1179,14 @@ def fromBER(klass, tag, content, berdecoder=None):
return r
fromBER = classmethod(fromBER)

def __init__(self, requestName, requestValue=None,
def __init__(self, requestName=None, requestValue=None,
tag=None):
LDAPProtocolRequest.__init__(self)
BERSequence.__init__(self, [], tag=tag)
assert requestName is not None
assert isinstance(requestName, basestring)
assert requestValue is None or isinstance(requestValue, basestring)
self.requestName=requestName
assert isinstance(requestValue, basestring)
self.requestValue=requestValue

def __str__(self):
Expand Down

0 comments on commit 67d32ad

Please sign in to comment.