Module auth_nb
source code
Provides plugs for SASL and NON-SASL authentication mechanisms.
Can be used both for client and transport authentication.
See client_nb.py
|
|
SASL
Implements SASL authentication.
|
|
|
NonBlockingNonSASL
Implements old Non-SASL (JEP-0078) authentication used in jabberd1.4 and
transport authentication.
|
|
|
NonBlockingBind
Bind some JID to the current connection to allow router know of our
location.
|
Imports:
NS_SASL,
NS_SESSION,
NS_STREAMS,
NS_BIND,
NS_AUTH,
Node,
NodeProcessed,
isResultNode,
Iq,
Protocol,
JID,
PlugIn,
sha,
base64,
random,
itertools,
dispatcher_nb,
md5,
logging,
kerberos
|
Helper function that creates a dict from challenge string.
- Sample challenge string:
- username="example.org",realm="somerealm", nonce="OA6MG9tEQGm2hh",cnonce="OA6MHXh6VqTrRk", nc=00000001,qop="auth,auth-int,auth-conf",charset=utf-8
- Expected result for challan:
- dict['qop'] = ('auth','auth-int','auth-conf')
dict['realm'] = 'somerealm'
|
log
- Value:
logging.getLogger('gajim.c.x.auth_nb')
|
|