示例#1
0
 def checkServerProperties(self):
     """Test if connection can be established.
     """
     res = testLDAPConnectivity(props=self._props)
     if res == 'success':
         return (True, 'OK')
     else:
         return (False, res)
示例#2
0
 def checkServerProperties(self):
     """Test if connection can be established.
     """
     res = testLDAPConnectivity(
               self._communicator._connector._server,
               self._communicator._connector._port)
     if res == 'success':
         return (True, 'OK')
     else:
         return (False, res)