You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand the strict=False mode which can be very convenient in get_tgs to use a tgs ticket even if the name is wrong but the ticket is actually valid for the target:
msldap is calling authenticate from asyauth.native which calls get_TGS which will call tgs_from_ccache which will not find any valid service ticket but will return the ldap/[email protected] because it's always non-strict and will try to auth with it instead of using the TGT to retrieve a referral ticket and then the right service ticket.
I think it would be good to provide a strict argument in parents functions, or let the user provide a strict=True parameter in the connection URL.
What do you think? I can provide the PR.
The text was updated successfully, but these errors were encountered:
I understand the
strict=False
mode which can be very convenient inget_tgs
to use a tgs ticket even if the name is wrong but the ticket is actually valid for the target:minikerberos/minikerberos/common/ccache.py
Line 642 in 45d701f
However, it shoudn't be called in core functions without being able to provide a
strict=True
option such as intgs_from_ccache
called byget_TGS
:minikerberos/minikerberos/aioclient.py
Line 390 in 45d701f
This leads to not being able to use a ccache with other TGS even if there is a valid TGT inside, here is an example to understand better:
msldap
is callingauthenticate
from asyauth.native which callsget_TGS
which will calltgs_from_ccache
which will not find any valid service ticket but will return theldap/[email protected]
because it's alwaysnon-strict
and will try to auth with it instead of using the TGT to retrieve a referral ticket and then the right service ticket.I think it would be good to provide a
strict
argument in parents functions, or let the user provide astrict=True
parameter in the connection URL.What do you think? I can provide the PR.
The text was updated successfully, but these errors were encountered: