ALT Linux Bugzilla
– Attachment 7749 Details for
Bug 35357
GSSAPI/Kerberos аутентификация не поддерживается
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
тестовый скрипт
test_ldap3_gssapi.py (text/plain), 733 bytes, created by
Alexey Sheplyakov
on 2018-09-06 16:41:32 MSK
(
hide
)
Description:
тестовый скрипт
Filename:
MIME Type:
Creator:
Alexey Sheplyakov
Created:
2018-09-06 16:41:32 MSK
Size:
733 bytes
patch
obsolete
>#!/usr/bin/env python2.7 ># encoding: utf-8 > >from __future__ import absolute_import > >from ldap3 import ( > ALL, > Connection, > SASL, > Server, >) > > >def gssapi_auth_supported(server): > s = Server(server, get_info=ALL) > c = Connection(s) > c.open() > return 'GSSAPI' in s.info.supported_sasl_mechanisms > > >def bind_gssapi(server): > s = Server(server, use_ssl=False) > c = Connection(s, authentication=SASL, sasl_mechanism='GSSAPI') > c.bind() > return c > > >def main(): > import sys > import os > MYNAME = os.path.basename(__file__) > if len(sys.argv) != 2: > raise ValueError("Usage: %s domain_controller" % MYNAME) > conn = bind_gssapi(sys.argv[1]) > > >if __name__ == '__main__': > main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 35357
: 7749