예제 #1
0
 def marshal(self):
     return '\t'.join([
         'v3', self._host, self._port,
         gui.boolToStr(self._ssl), self._username, self._password,
         self._timeout, self._ldapBase, self._userClass, self._userIdAttr,
         self._groupNameAttr, self._userNameAttr, self._altClass
     ])
예제 #2
0
 def marshal(self):
     return '\t'.join([
         'v3',
         self._host, self._port, gui.boolToStr(self._ssl), self._username, self._password,
         self._timeout, self._ldapBase, self._userClass, self._userIdAttr,
         self._groupNameAttr, self._userNameAttr, self._altClass
     ]).encode('utf8')
예제 #3
0
 def valuesDict(self):
     return {
         'host': self._host, 'port': self._port, 'ssl': gui.boolToStr(self._ssl),
         'username': self._username, 'password': self._password, 'timeout': self._timeout,
         'ldapBase': self._ldapBase, 'userClass': self._userClass,
         'userIdAttr': self._userIdAttr, 'groupNameAttr': self._groupNameAttr,
         'userNameAttr': self._userNameAttr
     }
예제 #4
0
 def marshal(self):
     return '\t'.join([
         'v1', self._host, self._port,
         gui.boolToStr(self._ssl), self._username, self._password,
         self._timeout, self._ldapBase, self._userClass, self._groupClass,
         self._userIdAttr, self._groupIdAttr, self._memberAttr,
         self._userNameAttr
     ]).encode('utf8')
예제 #5
0
 def marshal(self):
     """
     Serializes the transport data so we can store it in database
     """
     return str.join('\t', [
         'v1',
         gui.boolToStr(self._useEmptyCreds), self._fixedName,
         self._fixedPassword, self._listenPort, self._connection,
         self._session, self._cacheDisk, self._cacheMem
     ]).encode('utf8')
예제 #6
0
 def valuesDict(self):
     return {
         'useEmptyCreds': gui.boolToStr(self._useEmptyCreds),
         'fixedName': self._fixedName,
         'fixedPassword': self._fixedPassword,
         'listenPort': self._listenPort,
         'connection': self._connection,
         'session': self._session,
         'cacheDisk': self._cacheDisk,
         'cacheMem': self._cacheMem
     }
예제 #7
0
 def valuesDict(self):
     return {
         'useEmptyCreds': gui.boolToStr(self._useEmptyCreds),
         'fixedName': self._fixedName,
         'fixedPassword': self._fixedPassword,
         'listenPort': self._listenPort,
         'connection': self._connection,
         'session': self._session,
         'cacheDisk': self._cacheDisk,
         'cacheMem': self._cacheMem
     }
예제 #8
0
 def marshal(self):
     '''
     Serializes the transport data so we can store it in database
     '''
     return str.join('\t', [
         'v1',
         gui.boolToStr(
             self._useEmptyCreds), self._fixedName, self._fixedPassword,
         self._listenPort, self._connection, self._session, self._cacheDisk,
         self._cacheMem, self._tunnelServer, self._tunnelCheckServer
     ])
예제 #9
0
 def marshal(self):
     '''
     Serializes the transport data so we can store it in database
     '''
     return str.join('\t', [ 'v1', gui.boolToStr(self._useEmptyCreds), self._fixedName, self._fixedPassword, self._listenPort,
                             self._connection, self._session, self._cacheDisk, self._cacheMem, self._tunnelServer, self._tunnelCheckServer ])
예제 #10
0
 def marshal(self):
     """
     Serializes the transport data so we can store it in database
     """
     return str.join('\t', ['v1', gui.boolToStr(self._useEmptyCreds), self._fixedName, self._fixedPassword, self._listenPort,
                            self._connection, self._session, self._cacheDisk, self._cacheMem]).encode('utf8')
예제 #11
0
 def marshal(self):
     return '\t'.join(['v1',
                       self._host, self._port, gui.boolToStr(self._ssl), self._username, self._password, self._timeout,
                       self._ldapBase, self._userClass, self._groupClass, self._userIdAttr, self._groupIdAttr, self._memberAttr, self._userNameAttr])