コード例 #1
0
ファイル: backend.py プロジェクト: Cloudxtreme/sshproxy-1
 def __reginit__(self):
     self.authenticated = False
     self.authorized = False
     self.clientdb = ClientDB()
     self.acldb = ACLDB()
     # this one is to do operation on sites from the console
     # or the command line
     self._sitedb = SiteDB()
     self.tags = ACLTags()
コード例 #2
0
ファイル: backend.py プロジェクト: Cloudxtreme/sshproxy-1
 def tag_client(self, username, **tokens):
     return ClientDB().tag_client(username, **tokens)
コード例 #3
0
ファイル: backend.py プロジェクト: Cloudxtreme/sshproxy-1
 def del_client(self, username, **tokens):
     return ClientDB().del_client(username, **tokens)
コード例 #4
0
ファイル: backend.py プロジェクト: Cloudxtreme/sshproxy-1
 def add_client_pubkey(self, username, pubkey, number):
     if username:
         client = ClientDB()
     else:
         client = self.clientdb
     return client.add_pubkey(username, pubkey, number)
コード例 #5
0
ファイル: backend.py プロジェクト: Cloudxtreme/sshproxy-1
 def add_client(self, username, **tokens):
     return ClientDB().add_client(username, **tokens)
コード例 #6
0
ファイル: backend.py プロジェクト: Cloudxtreme/sshproxy-1
 def client_exists(self, username, **tokens):
     return ClientDB().exists(username, **tokens)