Package common :: Package xmpp :: Module auth_nb
[hide private]
[frames] | no frames]

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

Classes [hide private]
  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.
Functions [hide private]
 
HH(some) source code
 
H(some) source code
 
C(some) source code
 
challenge_splitter(data)
Helper function that creates a dict from challenge string.
source code
Variables [hide private]
  log = logging.getLogger('gajim.c.x.auth_nb')
  have_kerberos = False
  GSS_STATE_STEP = 0
  GSS_STATE_WRAP = 1
  SASL_FAILURE = 'failure'
  SASL_SUCCESS = 'success'
  SASL_UNSUPPORTED = 'not-supported'
  SASL_IN_PROCESS = 'in-process'

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


Function Details [hide private]

HH(some)

source code 

H(some)

source code 

C(some)

source code 

challenge_splitter(data)

source code 

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'

Variables Details [hide private]

log

Value:
logging.getLogger('gajim.c.x.auth_nb')

have_kerberos

Value:
False

GSS_STATE_STEP

Value:
0

GSS_STATE_WRAP

Value:
1

SASL_FAILURE

Value:
'failure'

SASL_SUCCESS

Value:
'success'

SASL_UNSUPPORTED

Value:
'not-supported'

SASL_IN_PROCESS

Value:
'in-process'