masson
Version:
Module execution engine for cluster deployments.
36 lines (25 loc) • 889 B
Markdown
export default header: 'OpenLDAP Server Check', handler: ({options}) ->
uri = url.parse options.uri
@connection.assert
header: 'TCP'
host: uri.hostname
port: uri.port
Send a real `ldapsearch` command to test remote access using a URI, a bind DN
and a password.
Note, if TLS is activated, this require a valid client configuration and the
presence of the certificate authority. It is commented for now because ldap
client is not yet installed and this check is expected to be executed.
url = require 'url'