-
Notifications
You must be signed in to change notification settings - Fork 11
/
ldap2dns.1
161 lines (137 loc) · 4.64 KB
/
ldap2dns.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH LDAP2DNS 1 "December 24, 2006"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
ldap2dns \- LDAP based DNS management system
.SH SYNOPSIS
.B ldap2dns[d]
.RI [ "-o tinydns|bind" "] [" "-h host" "] [" "-p port" "] [" "-H hostURI" "] [" "-D binddn" "] [" "-w password" "] [" "-L[filename]" "] [" "-u numsecs" "] [" "-b searchbase" "] [" "-v[v]]" "] [" "-V" "] [" "-t timeout" "] [" "-M maxrecords" ]
.br
.SH DESCRIPTION
.B ldap2dns
is a program to read DNS records
from an LDAP directory and format them
into flat files suitable for serving from
TinyDNS or BIND.
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBldap2dns\fP
is designed to write ASCII data files used by
.B tinydns
from the
.B djbdns
package, but also may be used to write zone db files used by named as found
.B BIND
in the package.
.
.SH OPTIONS
A summary of each command line option is shown below along with its environment
variable equivalent. Each option may be set in either location, with the
command line taking precedence over the environment variables.
.TP
.B \-o [tinydns|bind] ($LDAP2DNS_OUTPUT)
Generate a "data" file to be processed by
.B tinydns-data
or a set of zone "db"s (one per zone) to be used by
.B BIND
.TP
.B \-h host ($LDAP2DNS_HOST)
Hostname of LDAP server, defaults to localhost.
.TP
.B \-p port ($LDAP2DNS_PORT)
Port number on which to connect to LDAP server, defaults to 389
.TP
.B \-H hostURI ($LDAP2DNS_URI)
URI for the LDAP server. Examples:
.B ldap://localhost:389
.B ldaps://host.example.com:636
.TP
.B \-D binddn ($LDAP2DNS_BINDDN)
Use the distinguished name binddn to bind to the LDAP directory.
.TP
.B \-w bindpasswd ($LDAP2DNS_PASSWORD)
Use bindpasswd as the password for simple authentication.
.TP
.B \-b searchbase ($LDAP2DNS_BASEDN)
Use searchbase as the starting point for the search instead of the default.
.TP
.B \-L[filename] (Command-line only)
Print output in LDIF format for reimport. If filename is not specified default
to STDOUT.
.TP
.B \-u numsecs ($LDAP2DNS_UPDATE)
Update DNS data after numsecs. Defaults to 59 if started as daemon.
NOTE: Zone data is only updated when the zone serial number increments.
.TP
.B \-v[v] ($LDAP2DNS_VERBOSE)
Set verbose level. On the command line, increase verbosity by adding 'v's.
When setting via the environment, specify the level directly. Maximum
meaningful value is 2 (-vv).
.TP
.B \-t timeout ($LDAP2DNS_TIMEOUT)
LDAP search timeout (in seconds).
.TP
.B \-M maxrecords ($LDAP2DNS_MAXRECORDS)
Limit LDAP search results to maxrecords number of records.
.TP
.B \-V (Command-line only)
Print version number and exit.
.TP
.B \ -e "exec-cmd" ($LDAP2DNS_EXEC)
This command is executed after ldap2dns successfully regenerates its zone
data files. Typically called to either notify named to reread the configuration
or run
.B tinydns-data
to update data.cdb.
.SH ENVIRONMENT
.B LDAP2DNS_TINYDNSDIR
The root-directory used by tinydns, ie. the one in which to tinydns expects
its 'data'-file. If this option is not specified, the "data" file is written
to the current directory.
The following environment variables are documented above with the command-line
options. They are listed here for convenience.
.B LDAP2DNS_OUTPUT
.B LDAP2DNS_HOST
.B LDAP2DNS_PORT
.B LDAP2DNS_URI
.B LDAP2DNS_BINDDN
.B LDAP2DNS_PASSWORD
.B LDAP2DNS_BASEDN
.B LDAP2DNS_UPDATE
.B LDAP2DNS_VERBOSE
.B LDAP2DNS_TIMEOUT
.B LDAP2DNS_MAXRECORDS
.B LDAP2DNS_EXEC
.SH FILES
/etc/openldap/ldap.conf
.br
.b ldap2dns
will read the options
HOST, PORT, URI, BINDDN, and BINDPW from ldap.conf. Their purpose and
definition is the same as documented above and in the OpenLDAP package.
.SH SEE ALSO
ldap.conf(5), ldapsearch(1), tinydns, named.conf(5).
Please visit the project homepage for more detail:
.RI [ http://projects.alkaloid.net/ ]
.br
.SH AUTHOR
.B ldap2dns
is has been maintained since version 0.3.5 by Ben Klang <[email protected]>.
It is released under the terms of the GPL version 2.
Jacob Rief <[email protected]> is the original author of this program.