Module Expr Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Import alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias TryExcept body Import alias Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Str orelse If CompareIs NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str Num Num Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Return Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call NameLoad Str Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Str Str AttributeLoad NameLoad attr Str Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Str Str AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Str Str AttributeLoad NameLoad attr Str Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Str NameLoad Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Tests for L{twisted.conch.checkers}.
 N/A N/A N/A pwd N/A N/A N/A ImportError N/A N/A pwd None N/A os base64 twisted.trial.unittest TestCase twisted.python.filepath FilePath twisted.cred.checkers InMemoryUsernamePasswordDatabaseDontUse twisted.cred.credentials UsernamePassword IUsernamePassword SSHPrivateKey ISSHPrivateKey twisted.cred.error UnhandledCredentials UnauthorizedLogin twisted.python.fakepwd UserDatabase twisted.test.test_process MockOS N/A N/A N/A Crypto.Cipher.DES3 N/A pyasn1 N/A N/A N/A ImportError N/A N/A SSHPublicKeyDatabase None N/A twisted.conch.ssh keys twisted.conch.checkers SSHPublicKeyDatabase SSHProtocolChecker twisted.conch.error NotEnoughAuthentication ValidPublicKey twisted.conch.test keydata SSHPublicKeyDatabaseTestCase N/A TestCase N/A N/A 
    Tests for L{SSHPublicKeyDatabase}.
     N/A N/A pwd None N/A N/A skip Cannot run without pwd module N/A N/A N/A SSHPublicKeyDatabase None N/A N/A skip Cannot run without PyCrypto or PyASN1 setUp N/A N/A self N/A N/A N/A N/A self checker N/A SSHPublicKeyDatabase N/A N/A self key1 N/A N/A base64 encodestring foobar N/A N/A self key2 N/A N/A base64 encodestring eggspam N/A N/A self content N/A t1 %s foo
t2 %s egg
 N/A N/A self key1 N/A self key2 N/A N/A self mockos N/A MockOS N/A N/A N/A self mockos path N/A FilePath N/A N/A self mktemp N/A N/A N/A N/A N/A self mockos path makedirs N/A N/A self sshDir N/A N/A N/A N/A self mockos path child .ssh N/A N/A N/A N/A self sshDir makedirs N/A userdb N/A UserDatabase N/A N/A N/A userdb addUser user password 1 2 first last N/A N/A N/A self mockos path path /bin/shell N/A N/A N/A self patch pwd getpwnam N/A userdb getpwnam N/A N/A N/A self patch os seteuid N/A N/A self mockos seteuid N/A N/A N/A self patch os setegid N/A N/A self mockos setegid N/A _testCheckKey N/A N/A self filename N/A N/A N/A N/A N/A N/A N/A N/A self sshDir child filename setContent N/A self content N/A user N/A UsernamePassword user password N/A N/A user blob foobar N/A N/A N/A self assertTrue N/A N/A N/A self checker checkKey user N/A N/A user blob eggspam N/A N/A N/A self assertTrue N/A N/A N/A self checker checkKey user N/A N/A user blob notallowed N/A N/A N/A self assertFalse N/A N/A N/A self checker checkKey user N/A test_checkKey N/A N/A self N/A N/A N/A 
        L{SSHPublicKeyDatabase.checkKey} should retrieve the content of the
        authorized_keys file and check the keys against that file.
         N/A N/A N/A self _testCheckKey authorized_keys N/A N/A N/A self assertEquals N/A N/A self mockos seteuidCalls N/A N/A N/A N/A self assertEquals N/A N/A self mockos setegidCalls N/A N/A test_checkKey2 N/A N/A self N/A N/A N/A 
        L{SSHPublicKeyDatabase.checkKey} should retrieve the content of the
        authorized_keys2 file and check the keys against that file.
         N/A N/A N/A self _testCheckKey authorized_keys2 N/A N/A N/A self assertEquals N/A N/A self mockos seteuidCalls N/A N/A N/A N/A self assertEquals N/A N/A self mockos setegidCalls N/A N/A test_checkKeyAsRoot N/A N/A self N/A N/A N/A 
        If the key file is readable, L{SSHPublicKeyDatabase.checkKey} should
        switch its uid/gid to the ones of the authenticated user.
         N/A keyFile N/A N/A N/A self sshDir child authorized_keys N/A N/A N/A keyFile setContent N/A self content N/A N/A N/A keyFile chmod 0 N/A N/A N/A self addCleanup N/A keyFile chmod 511 N/A savedSeteuid N/A os seteuid seteuid N/A N/A euid N/A N/A N/A N/A N/A keyFile chmod 511 N/A N/A savedSeteuid euid N/A N/A N/A N/A self patch os seteuid seteuid N/A user N/A UsernamePassword user password N/A N/A user blob foobar N/A N/A N/A self assertTrue N/A N/A N/A self checker checkKey user N/A N/A N/A self assertEquals N/A N/A self mockos seteuidCalls N/A 0 1 0 N/A N/A os getuid N/A N/A N/A self assertEquals N/A N/A self mockos setegidCalls N/A 2 N/A N/A os getgid N/A test_requestAvatarId N/A N/A self N/A N/A N/A 
        L{SSHPublicKeyDatabase.requestAvatarId} should return the avatar id
        passed in if its C{_checkKey} method returns True.
         _checkKey N/A N/A ignored N/A N/A N/A True N/A N/A N/A N/A self patch N/A self checker checkKey _checkKey N/A credentials N/A SSHPrivateKey test ssh-rsa N/A keydata publicRSA_openssh foo N/A N/A N/A N/A N/A keys Key fromString N/A keydata privateRSA_openssh sign foo N/A d N/A N/A N/A self checker requestAvatarId credentials _verify N/A N/A avatarId N/A N/A N/A N/A N/A self assertEquals avatarId test N/A N/A N/A N/A d addCallback _verify N/A test_requestAvatarIdWithoutSignature N/A N/A self N/A N/A N/A 
        L{SSHPublicKeyDatabase.requestAvatarId} should raise L{ValidPublicKey}
        if the credentials represent a valid key without a signature.  This
        tells the user that the key is valid for login, but does not actually
        allow that user to do so without a signature.
         _checkKey N/A N/A ignored N/A N/A N/A True N/A N/A N/A N/A self patch N/A self checker checkKey _checkKey N/A credentials N/A SSHPrivateKey test ssh-rsa N/A keydata publicRSA_openssh None None N/A d N/A N/A N/A self checker requestAvatarId credentials N/A N/A N/A self assertFailure d ValidPublicKey N/A test_requestAvatarIdInvalidKey N/A N/A self N/A N/A N/A 
        If L{SSHPublicKeyDatabase.checkKey} returns False,
        C{_cbRequestAvatarId} should raise L{UnauthorizedLogin}.
         _checkKey N/A N/A ignored N/A N/A N/A False N/A N/A N/A N/A self patch N/A self checker checkKey _checkKey N/A d N/A N/A N/A self checker requestAvatarId None N/A N/A N/A self assertFailure d UnauthorizedLogin N/A test_requestAvatarIdInvalidSignature N/A N/A self N/A N/A N/A 
        Valid keys with invalid signatures should cause
        L{SSHPublicKeyDatabase.requestAvatarId} to return a {UnauthorizedLogin}
        failure
         _checkKey N/A N/A ignored N/A N/A N/A True N/A N/A N/A N/A self patch N/A self checker checkKey _checkKey N/A credentials N/A SSHPrivateKey test ssh-rsa N/A keydata publicRSA_openssh foo N/A N/A N/A N/A N/A keys Key fromString N/A keydata privateDSA_openssh sign foo N/A d N/A N/A N/A self checker requestAvatarId credentials N/A N/A N/A self assertFailure d UnauthorizedLogin N/A test_requestAvatarIdNormalizeException N/A N/A self N/A N/A N/A 
        Exceptions raised while verifying the key should be normalized into an
        C{UnauthorizedLogin} failure.
         _checkKey N/A N/A ignored N/A N/A N/A True N/A N/A N/A N/A self patch N/A self checker checkKey _checkKey N/A credentials N/A SSHPrivateKey test None blob sigData sig N/A d N/A N/A N/A self checker requestAvatarId credentials _verifyLoggedException N/A N/A failure N/A N/A N/A errors N/A N/A self flushLoggedErrors N/A keys BadKeyError N/A N/A N/A self assertEqual N/A len errors 1 N/A failure N/A N/A N/A N/A d addErrback _verifyLoggedException N/A N/A N/A self assertFailure d UnauthorizedLogin N/A N/A SSHProtocolCheckerTestCase N/A TestCase N/A N/A 
    Tests for L{SSHProtocolChecker}.
     N/A N/A SSHPublicKeyDatabase None N/A N/A skip Cannot run without PyCrypto test_registerChecker N/A N/A self N/A N/A N/A 
        L{SSHProcotolChecker.registerChecker} should add the given checker to
        the list of registered checkers.
         N/A checker N/A SSHProtocolChecker N/A N/A N/A self assertEquals N/A checker credentialInterfaces N/A N/A N/A N/A checker registerChecker N/A SSHPublicKeyDatabase N/A N/A N/A self assertEquals N/A checker credentialInterfaces N/A ISSHPrivateKey N/A N/A N/A self assertIsInstance N/A N/A checker checkers N/A ISSHPrivateKey SSHPublicKeyDatabase N/A test_registerCheckerWithInterface N/A N/A self N/A N/A N/A 
        If a apecific interface is passed into
        L{SSHProtocolChecker.registerChecker}, that interface should be
        registered instead of what the checker specifies in
        credentialIntefaces.
         N/A checker N/A SSHProtocolChecker N/A N/A N/A self assertEquals N/A checker credentialInterfaces N/A N/A N/A N/A checker registerChecker N/A SSHPublicKeyDatabase IUsernamePassword N/A N/A N/A self assertEquals N/A checker credentialInterfaces N/A IUsernamePassword N/A N/A N/A self assertIsInstance N/A N/A checker checkers N/A IUsernamePassword SSHPublicKeyDatabase N/A test_requestAvatarId N/A N/A self N/A N/A N/A 
        L{SSHProtocolChecker.requestAvatarId} should defer to one if its
        registered checkers to authenticate a user.
         N/A checker N/A SSHProtocolChecker N/A passwordDatabase N/A InMemoryUsernamePasswordDatabaseDontUse N/A N/A N/A passwordDatabase addUser test test N/A N/A N/A checker registerChecker passwordDatabase N/A d N/A N/A checker requestAvatarId N/A UsernamePassword test test _callback N/A N/A avatarId N/A N/A N/A N/A N/A self assertEquals avatarId test N/A N/A N/A N/A d addCallback _callback N/A test_requestAvatarIdWithNotEnoughAuthentication N/A N/A self N/A N/A N/A 
        If the client indicates that it is never satisfied, by always returning
        False from _areDone, then L{SSHProtocolChecker} should raise
        L{NotEnoughAuthentication}.
         N/A checker N/A SSHProtocolChecker _areDone N/A N/A avatarId N/A N/A N/A False N/A N/A N/A N/A self patch checker areDone _areDone N/A passwordDatabase N/A InMemoryUsernamePasswordDatabaseDontUse N/A N/A N/A passwordDatabase addUser test test N/A N/A N/A checker registerChecker passwordDatabase N/A d N/A N/A checker requestAvatarId N/A UsernamePassword test test N/A N/A N/A self assertFailure d NotEnoughAuthentication N/A test_requestAvatarIdInvalidCredential N/A N/A self N/A N/A N/A 
        If the passed credentials aren't handled by any registered checker,
        L{SSHProtocolChecker} should raise L{UnhandledCredentials}.
         N/A checker N/A SSHProtocolChecker N/A d N/A N/A checker requestAvatarId N/A UsernamePassword test test N/A N/A N/A self assertFailure d UnhandledCredentials N/A test_areDone N/A N/A self N/A N/A N/A 
        The default L{SSHProcotolChecker.areDone} should simply return True.
         N/A N/A N/A self assertEquals N/A N/A N/A SSHProtocolChecker areDone None True N/A N/A