File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 8
8
to LDAPObject.sasl_interactive_bind_s()
9
9
10
10
Tests/
11
- *
11
+ * added test for LDAPObject.sasl_external_bind_s()
12
12
13
13
----------------------------------------------------------------
14
14
Released 2.4.42 2017-09-04
@@ -1488,4 +1488,4 @@ Released 2.0.0pre02 2002-02-01
1488
1488
----------------------------------------------------------------
1489
1489
Released 1.10alpha3 2000-09-19
1490
1490
1491
- $Id: CHANGES,v 1.460 2017/09/04 14:59:12 stroeder Exp $
1491
+ $Id: CHANGES,v 1.461 2017/09/04 14:59:57 stroeder Exp $
Original file line number Diff line number Diff line change 4
4
5
5
See https://www.python-ldap.org/ for details.
6
6
7
- $Id: t_ldapobject.py,v 1.9 2017/09/04 07:47:29 stroeder Exp $
7
+ $Id: t_ldapobject.py,v 1.10 2017/09/04 14:59:57 stroeder Exp $
8
8
"""
9
9
10
10
import os
@@ -175,6 +175,15 @@ def test_invalid_credentials(self):
175
175
else :
176
176
self .fail ("expected INVALID_CREDENTIALS, got %r" % r )
177
177
178
+ def test_sasl_extenal_bind_s (self ):
179
+ l = self .ldap_object_class (self .server .ldapi_uri )
180
+ l .sasl_external_bind_s ()
181
+ self .assertEqual (l .whoami_s (), 'dn:' + self .server .root_dn .lower ())
182
+ authz_id = 'dn:cn=Foo2,%s' % (self .server .suffix )
183
+ l = self .ldap_object_class (self .server .ldapi_uri )
184
+ l .sasl_external_bind_s (authz_id = authz_id )
185
+ self .assertEqual (l .whoami_s (), authz_id .lower ())
186
+
178
187
179
188
class Test02_ReconnectLDAPObject (Test01_SimpleLDAPObject ):
180
189
"""
You can’t perform that action at this time.
0 commit comments