-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaintenance_commands.html
More file actions
189 lines (158 loc) · 4.23 KB
/
maintenance_commands.html
File metadata and controls
189 lines (158 loc) · 4.23 KB
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>
GnuDIP User Maintenance Commands
</title>
<base target="_blank">
</head>
<body bgcolor=white>
<table><tr valign=middle><td>
<img align=middle src="gnudip/html/gnudip.jpg" alt="GnuDIP Logo" border=0 height=60 width=113>
</td><td>
<h1>GnuDIP User Maintenance Commands</h1>
</table>
<hr>
<p>
Here we describe four line mode commands that may used to do user maintenance
from the command line, or from a script (e.g. PHP).
<p><hr>
<p>
Here is the "help" for these commands:
<blockquote>
<pre>
# gdipuseradd.pl -h
usage: gdipuseradd.pl { -h | [-p password] [-m email] user domain }
usage: Add GnuDIP user "user" within domain "domain" with
usage: password "password" and (optionally) E-mail address "email".
usage: -h: Print this usage message.
usage: -p: Specify clear text password. The stored password will the MD5
usage: hash of this value. Password is disabled if not specified.
usage: -m: Specify E-mail address.
</pre>
<p>
<pre>
# gdipusermod.pl -h
usage: gdipusermod.pl { -h |
usage: [-m email] [-p password] [-x rawpassword]
usage: [-w {YES|NO}] [-y {YES|NO}] [-r]
usage: user domain }
usage: Modify GnuDIP user "user" within domain "domain".
usage: -h: Print this usage message.
usage: -m: Specify E-mail address.
usage: -p: Specify clear text password. The stored password will
usage: the MD5 hash of this value.
usage: -x: Specify the hashed password. This will be stored as
usage: password hash value without any change.
usage: -w: Allow ("YES") or disallow ("NO") wild cards.
usage: -y: Allow ("YES") or disallow ("NO") MX records.
usage: -r: Remove all DNS information.
</pre>
<p>
<pre>
# gdipuserdel.pl -h
usage: gdipuserdel.pl { -h | user domain }
usage: Delete GnuDIP user "user" within domain "domain".
usage: -h: Print this usage message.
</pre>
<p>
<pre>
# gdipuserget.pl -h
usage: gdipuserget.pl { -h | user domain }
usage: Display GnuDIP user "user" within domain "domain".
usage: -h: Print this usage message.
</pre>
</blockquote>
<p>
Here is a demonstration of their use:
<blockquote>
<pre>
# gdipuseradd.pl -p testpass -m rob@demo.com rob dyn.yourhost.com
Added user "rob.dyn.yourhost.com"
</pre>
</blockquote>
<p>
After logging in as "rob.dyn.yourhost.com" and setting the IP address:
<blockquote>
<pre>
# ping rob.dyn.yourhost.com
PING rob.dyn.yourhost.com (127.0.0.1): 56 octets data
64 octets from 127.0.0.1: icmp_seq=0 ttl=255 time=0.2 ms
64 octets from 127.0.0.1: icmp_seq=1 ttl=255 time=0.1 ms
--- rob.dyn.yourhost.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.1/0.2 ms
</pre>
<p>
<pre>
# gdipuserget.pl rob dyn.yourhost.com
Retrieved user "rob.dyn.yourhost.com"
MXbackup = NO
wildcard = NO
password = 179ad45c6ce2cb97cf1029e212046e81
forwardurl =
allowmx = NO
MXvalue =
autourlon =
level = USER
currentip = 127.0.0.1
username = rob
allowwild = NO
updated = 2002-05-24 20:43:01
domain = dyn.yourhost.com
email = rob@demo.com
</pre>
<p>
<pre>
# gdipusermod.pl -m dummy@yourhost.com rob dyn.yourhost.com
Updated user "rob.dyn.yourhost.com"
</pre>
<p>
<pre>
# gdipuserget.pl rob dyn.yourhost.com
Retrieved user "rob.dyn.yourhost.com"
MXbackup = NO
wildcard = NO
password =
forwardurl =
allowmx = NO
MXvalue =
autourlon =
level = USER
currentip = 127.0.0.1
username = rob
allowwild = NO
updated = 2002-05-24 20:44:15
domain = dyn.yourhost.com
email = dummy@yourhost.com
</pre>
<p>
<pre>
# gdipuserdel.pl rob dyn.yourhost.com
User "rob.dyn.yourhost.com" has been deleted and removed from DNS
</pre>
<p>
<pre>
# ping rob.dyn.yourhost.com
ping: unknown host rob.dyn.yourhost.com
</pre>
</blockquote>
<p>
The "parameter = value" lines printed by <code>gdipuserget.pl</code> go to
standard output. All of the other messages from these commands go to standard
error.
<p>
The return codes are:
<ul>
<li>0 - Success
<li>1 - User not found or already exists, as appropriate
<li>2 - User error or configuration error - message(s) issued
</ul>
<p>
The commands must be run under a user ID that can read the
<a href="gnudip/etc/gnudip.conf"><code>gnudip.conf</code></a> file.
<p><hr>
</body>
</html>