1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<title>probes/LDAP.pm</title>
5
<link rev="made" href="mailto:dws@ee.ethz.ch" />
8
<body style="background-color: white">
10
<p><a name="__index__"></a></p>
16
<li><a href="#name">NAME</a></li>
17
<li><a href="#overview">OVERVIEW</a></li>
18
<li><a href="#synopsys">SYNOPSYS</a></li>
19
<li><a href="#author">AUTHOR</a></li>
20
<li><a href="#bugs">BUGS</a></li>
27
<h1><a name="name">NAME</a></h1>
28
<p>probes::LDAP - a LDAP probe for SmokePing</p>
32
<h1><a name="overview">OVERVIEW</a></h1>
33
<p>Measures LDAP search latency for SmkoePing</p>
37
<h1><a name="synopsys">SYNOPSYS</a></h1>
42
passwordfile = /usr/share/smokeping/etc/password # optional
43
sleeptime = 0.5 # optional, 1 second by default</pre>
51
version = 3 # optional
52
start_tls = 1 # disabled by default
53
timeout = 60 # optional
55
base = dc=foo,dc=bar # optional
56
filter = uid=testuser # the actual search
57
attrs = uid,someotherattr
59
# if binddn isn't present, the LDAP bind is unauthenticated
60
binddn = uid=testuser,dc=foo,dc=bar
61
password = mypass # if not present in <passwordfile>
63
=head1 DESCRIPTION</pre>
64
<p>This probe measures LDAP query latency for SmokePing.
65
The query is specified by the target-specific variable `filter' and,
66
optionally, by the target-specific variable `base'. The attributes
67
queried can be specified in the comma-separated list `attrs'.</p>
68
<p>The TCP port of the LDAP server and the LDAP version to be used can
69
be specified by the variables `port' and `version'.</p>
70
<p>The probe can issue the starttls command to convert the connection
71
into encrypted mode, if so instructed by the `start_tls' variable.
72
It can also optionally do an authenticated LDAP bind, if the `binddn'
73
variable is present. The password to be used can be specified by the
74
target-specific variable `password' or in an external file.
75
The location of this file is given in the probe-specific variable
76
`passwordfile'. See probes::passwordchecker(3pm) for the format
77
of this file (summary: colon-separated triplets of the form
78
`<host>:<bind-dn>:<password>')</p>
79
<p>The probe tries to be nice to the server and sleeps for the probe-specific
80
variable `sleeptime' (one second by default) between each authentication
85
<h1><a name="author">AUTHOR</a></h1>
86
<p>Niko Tyni <<a href="mailto:ntyni@iki.fi">ntyni@iki.fi</a>></p>
90
<h1><a name="bugs">BUGS</a></h1>
91
<p>There should be a way of specifying TLS options, such as the certificates
93
<p>The probe has an ugly way of working around the fact that the
94
IO::Socket::SSL class complains if <code>start_tls()</code> is done more than once
95
in the same program. But It Works For Me (tm).</p>