simple username authorization, take a username
and authorize if they're not already connected
Functions
|
|
authFunction
authInit
cleanup
findAttribute
|
|
authFunction
|
authFunction ( passInfo )
check username existence and authorize
Exceptions
|
|
authorizeError( "%s is already connected" % user )
|
|
|
authInit
|
authInit ( parent, n )
no init step...
|
|
cleanup
|
cleanup ( self )
cleanup on disconnect/logout
|
|
findAttribute
|
findAttribute ( attributes, key )
see ldap if you cant figure it out
Exceptions
|
|
authorizeError( "connect attribute %s missing or invalid" % key )
|
|
|