
10.11.2020, 19:18
|
|
Постоянный
Регистрация: 30.03.2017
Сообщений: 408
С нами:
4800741
Репутация:
98
|
|
Python:
Код:
if
not
c2
.
bind
(
)
:
#print('Do not connect to ldap, incorrect credentials user')
aut
=
False
else
:
#print('You successful connect to ldap, correct credentials user')
aut
=
True
Python:
Код:
auth
=
False
if
not
c2
.
bind
(
)
else
True
|
|
|