Skip to content

Commit

Permalink
fixed passing all arguments from LDAPObject.sasl_non_interactive_bind…
Browse files Browse the repository at this point in the history
…_s() to LDAPObject.sasl_interactive_bind_s()
  • Loading branch information
stroeder committed Sep 4, 2017
1 parent 8047d01 commit 4ec2378
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
5 changes: 3 additions & 2 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Released 2.4.43 2017-09-xx
Changes since 2.4.42:

Lib/
*
* fixed passing all arguments from LDAPObject.sasl_non_interactive_bind_s()
to LDAPObject.sasl_interactive_bind_s()

Tests/
*
Expand Down Expand Up @@ -1487,4 +1488,4 @@ Released 2.0.0pre02 2002-02-01
----------------------------------------------------------------
Released 1.10alpha3 2000-09-19

$Id: CHANGES,v 1.459 2017/09/04 14:56:11 stroeder Exp $
$Id: CHANGES,v 1.460 2017/09/04 14:59:12 stroeder Exp $
12 changes: 5 additions & 7 deletions Lib/ldap/ldapobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
See https://www.python-ldap.org/ for details.
\$Id: ldapobject.py,v 1.164 2017/08/15 16:21:58 stroeder Exp $
\$Id: ldapobject.py,v 1.165 2017/09/04 14:59:12 stroeder Exp $
Compability:
- Tested with Python 2.0+ but should work with Python 1.5.x
Expand Down Expand Up @@ -253,13 +253,11 @@ def sasl_non_interactive_bind_s(self,sasl_mech,serverctrls=None,clientctrls=None
"""
Send a SASL bind request using a non-interactive SASL method (e.g. GSSAPI, EXTERNAL)
"""
self.sasl_interactive_bind_s(
'',
ldap.sasl.sasl(
{ldap.sasl.CB_USER:authz_id},
sasl_mech
)
auth = ldap.sasl.sasl(
{ldap.sasl.CB_USER:authz_id},
sasl_mech
)
self.sasl_interactive_bind_s('',auth,serverctrls,clientctrls,sasl_flags)

def sasl_external_bind_s(self,serverctrls=None,clientctrls=None,sasl_flags=ldap.SASL_QUIET,authz_id=''):
"""
Expand Down

0 comments on commit 4ec2378

Please sign in to comment.