yp_passwd.c revision 1.31 1 1.31 thorpej /* $NetBSD: yp_passwd.c,v 1.31 2005/02/26 07:19:25 thorpej Exp $ */
2 1.9 thorpej
3 1.1 brezak /*
4 1.11 tls * Copyright (c) 1988, 1990, 1993, 1994
5 1.11 tls * The Regents of the University of California. All rights reserved.
6 1.1 brezak *
7 1.1 brezak * Redistribution and use in source and binary forms, with or without
8 1.1 brezak * modification, are permitted provided that the following conditions
9 1.1 brezak * are met:
10 1.1 brezak * 1. Redistributions of source code must retain the above copyright
11 1.1 brezak * notice, this list of conditions and the following disclaimer.
12 1.1 brezak * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 brezak * notice, this list of conditions and the following disclaimer in the
14 1.1 brezak * documentation and/or other materials provided with the distribution.
15 1.27 agc * 3. Neither the name of the University nor the names of its contributors
16 1.1 brezak * may be used to endorse or promote products derived from this software
17 1.1 brezak * without specific prior written permission.
18 1.1 brezak *
19 1.1 brezak * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 1.1 brezak * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 1.1 brezak * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 1.1 brezak * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 1.1 brezak * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 1.1 brezak * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 1.1 brezak * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 1.1 brezak * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 1.1 brezak * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 1.1 brezak * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 1.1 brezak * SUCH DAMAGE.
30 1.1 brezak */
31 1.9 thorpej
32 1.15 lukem #include <sys/cdefs.h>
33 1.1 brezak #ifndef lint
34 1.9 thorpej #if 0
35 1.11 tls static char sccsid[] = "from: @(#)local_passwd.c 8.3 (Berkeley) 4/2/94";
36 1.9 thorpej #else
37 1.31 thorpej __RCSID("$NetBSD: yp_passwd.c,v 1.31 2005/02/26 07:19:25 thorpej Exp $");
38 1.9 thorpej #endif
39 1.1 brezak #endif /* not lint */
40 1.1 brezak
41 1.1 brezak #ifdef YP
42 1.1 brezak
43 1.15 lukem #include <ctype.h>
44 1.9 thorpej #include <err.h>
45 1.15 lukem #include <errno.h>
46 1.15 lukem #include <netdb.h>
47 1.15 lukem #include <pwd.h>
48 1.1 brezak #include <stdio.h>
49 1.15 lukem #include <stdlib.h>
50 1.1 brezak #include <string.h>
51 1.1 brezak #include <time.h>
52 1.15 lukem #include <unistd.h>
53 1.30 christos #include <limits.h>
54 1.30 christos #include <util.h>
55 1.15 lukem
56 1.1 brezak #include <rpc/rpc.h>
57 1.1 brezak #include <rpcsvc/yp_prot.h>
58 1.1 brezak #include <rpcsvc/ypclnt.h>
59 1.15 lukem
60 1.15 lukem #include "extern.h"
61 1.15 lukem
62 1.1 brezak #define passwd yp_passwd_rec
63 1.1 brezak #include <rpcsvc/yppasswd.h>
64 1.1 brezak #undef passwd
65 1.4 deraadt
66 1.1 brezak #ifndef _PASSWORD_LEN
67 1.1 brezak #define _PASSWORD_LEN PASS_MAX
68 1.1 brezak #endif
69 1.9 thorpej
70 1.1 brezak static uid_t uid;
71 1.31 thorpej static char *domain;
72 1.1 brezak
73 1.15 lukem static void
74 1.31 thorpej pwerror(char *name, int err, int eval)
75 1.4 deraadt {
76 1.17 mrg
77 1.15 lukem if (err)
78 1.18 mrg warn("%s", name);
79 1.31 thorpej errx(eval, "NIS passwd database unchanged");
80 1.31 thorpej }
81 1.31 thorpej
82 1.31 thorpej static char *
83 1.31 thorpej getnewpasswd(struct passwd *pw, char **old_pass)
84 1.31 thorpej {
85 1.31 thorpej int tries;
86 1.31 thorpej char *p, *t;
87 1.31 thorpej static char buf[_PASSWORD_LEN+1];
88 1.31 thorpej char salt[_PASSWORD_LEN+1];
89 1.31 thorpej char option[LINE_MAX], *key, *opt;
90 1.31 thorpej
91 1.31 thorpej (void)printf("Changing NIS password for %s.\n", pw->pw_name);
92 1.31 thorpej
93 1.31 thorpej if (old_pass) {
94 1.31 thorpej *old_pass = NULL;
95 1.31 thorpej
96 1.31 thorpej if (pw->pw_passwd[0]) {
97 1.31 thorpej if (strcmp(crypt(p = getpass("Old password:"),
98 1.31 thorpej pw->pw_passwd), pw->pw_passwd)) {
99 1.31 thorpej (void)printf("Sorry.\n");
100 1.31 thorpej pwerror(NULL, 0, 1);
101 1.31 thorpej }
102 1.31 thorpej } else {
103 1.31 thorpej p = "";
104 1.31 thorpej }
105 1.31 thorpej
106 1.31 thorpej *old_pass = strdup(p);
107 1.31 thorpej if (!*old_pass) {
108 1.31 thorpej (void)printf("not enough core.\n");
109 1.31 thorpej pwerror(NULL, 0, 1);
110 1.31 thorpej }
111 1.31 thorpej }
112 1.31 thorpej for (buf[0] = '\0', tries = 0;;) {
113 1.31 thorpej p = getpass("New password:");
114 1.31 thorpej if (!*p) {
115 1.31 thorpej (void)printf("Password unchanged.\n");
116 1.31 thorpej pwerror(NULL, 0, 0);
117 1.31 thorpej }
118 1.31 thorpej if (strlen(p) <= 5 && ++tries < 2) {
119 1.31 thorpej (void)printf("Please enter a longer password.\n");
120 1.31 thorpej continue;
121 1.31 thorpej }
122 1.31 thorpej for (t = p; *t && islower((unsigned char)*t); ++t);
123 1.31 thorpej if (!*t && ++tries < 2) {
124 1.31 thorpej (void)printf("Please don't use an all-lower case "
125 1.31 thorpej "password.\nUnusual capitalization, "
126 1.31 thorpej "control characters or digits are "
127 1.31 thorpej "suggested.\n");
128 1.31 thorpej continue;
129 1.31 thorpej }
130 1.31 thorpej (void)strlcpy(buf, p, sizeof(buf));
131 1.31 thorpej if (!strcmp(buf, getpass("Retype new password:")))
132 1.31 thorpej break;
133 1.31 thorpej (void)printf("Mismatch; try again, EOF to quit.\n");
134 1.31 thorpej }
135 1.31 thorpej
136 1.31 thorpej pw_getpwconf(option, sizeof(option), pw, "ypcipher");
137 1.31 thorpej opt = option;
138 1.31 thorpej key = strsep(&opt, ",");
139 1.31 thorpej if (pw_gensalt(salt, _PASSWORD_LEN, key, opt) == -1) {
140 1.31 thorpej warn("Couldn't generate salt");
141 1.31 thorpej pwerror(NULL, 0, 0);
142 1.31 thorpej }
143 1.31 thorpej p = strdup(crypt(buf, salt));
144 1.31 thorpej if (!p) {
145 1.31 thorpej (void)printf("not enough core.\n");
146 1.31 thorpej pwerror(NULL, 0, 0);
147 1.31 thorpej }
148 1.31 thorpej return (p);
149 1.31 thorpej }
150 1.31 thorpej
151 1.31 thorpej static int
152 1.31 thorpej ypgetpwnam(const char *nam)
153 1.31 thorpej {
154 1.31 thorpej char *val;
155 1.31 thorpej int reason, vallen;
156 1.31 thorpej
157 1.31 thorpej val = NULL;
158 1.31 thorpej reason = yp_match(domain, "passwd.byname", nam, strlen(nam),
159 1.31 thorpej &val, &vallen);
160 1.31 thorpej if (reason != 0) {
161 1.31 thorpej if (val != NULL)
162 1.31 thorpej free(val);
163 1.31 thorpej return 0;
164 1.31 thorpej }
165 1.31 thorpej free(val);
166 1.31 thorpej return 1;
167 1.31 thorpej }
168 1.31 thorpej
169 1.31 thorpej #ifdef USE_PAM
170 1.31 thorpej
171 1.31 thorpej void
172 1.31 thorpej pwyp_usage(const char *prefix)
173 1.31 thorpej {
174 1.31 thorpej
175 1.31 thorpej (void) fprintf(stderr, "%s %s [-d nis | -y] [user]\n",
176 1.31 thorpej prefix, getprogname());
177 1.31 thorpej }
178 1.31 thorpej
179 1.31 thorpej void
180 1.31 thorpej pwyp_argv0_usage(const char *prefix)
181 1.31 thorpej {
182 1.31 thorpej
183 1.31 thorpej (void) fprintf(stderr, "%s %s [user]\n",
184 1.31 thorpej prefix, getprogname());
185 1.31 thorpej }
186 1.31 thorpej
187 1.31 thorpej void
188 1.31 thorpej pwyp_process(const char *username, int argc, char **argv)
189 1.31 thorpej {
190 1.31 thorpej char *master;
191 1.31 thorpej int ch, r, rpcport, status;
192 1.31 thorpej struct yppasswd yppasswd;
193 1.31 thorpej struct passwd *pw;
194 1.31 thorpej struct timeval tv;
195 1.31 thorpej CLIENT *client;
196 1.31 thorpej
197 1.31 thorpej while ((ch = getopt(argc, argv, "y")) != -1) {
198 1.31 thorpej switch (ch) {
199 1.31 thorpej case 'y':
200 1.31 thorpej /*
201 1.31 thorpej * Abosrb the -y that may have gotten us here.
202 1.31 thorpej */
203 1.31 thorpej break;
204 1.31 thorpej
205 1.31 thorpej default:
206 1.31 thorpej usage();
207 1.31 thorpej /* NOTREACHED */
208 1.31 thorpej }
209 1.31 thorpej }
210 1.31 thorpej
211 1.31 thorpej argc -= optind;
212 1.31 thorpej argv += optind;
213 1.31 thorpej
214 1.31 thorpej switch (argc) {
215 1.31 thorpej case 0:
216 1.31 thorpej /* username already provided */
217 1.31 thorpej break;
218 1.31 thorpej case 1:
219 1.31 thorpej username = argv[0];
220 1.31 thorpej break;
221 1.31 thorpej default:
222 1.31 thorpej usage();
223 1.31 thorpej /* NOTREACHED */
224 1.31 thorpej }
225 1.31 thorpej
226 1.31 thorpej if (_yp_check(NULL) == 0) {
227 1.31 thorpej /* can't use YP. */
228 1.31 thorpej errx(1, "NIS not in use.");
229 1.31 thorpej }
230 1.31 thorpej
231 1.31 thorpej uid = getuid();
232 1.31 thorpej
233 1.31 thorpej /*
234 1.31 thorpej * Get local domain
235 1.31 thorpej */
236 1.31 thorpej if ((r = yp_get_default_domain(&domain)) != 0)
237 1.31 thorpej errx(1, "can't get local NIS domain. Reason: %s",
238 1.31 thorpej yperr_string(r));
239 1.31 thorpej
240 1.31 thorpej /*
241 1.31 thorpej * Find the host for the passwd map; it should be running
242 1.31 thorpej * the daemon.
243 1.31 thorpej */
244 1.31 thorpej if ((r = yp_master(domain, "passwd.byname", &master)) != 0)
245 1.31 thorpej errx(1, "can't find the master NIS server. Reason: %s",
246 1.31 thorpej yperr_string(r));
247 1.31 thorpej
248 1.31 thorpej /*
249 1.31 thorpej * Ask the portmapper for the port of the daemon.
250 1.31 thorpej */
251 1.31 thorpej if ((rpcport = getrpcport(master, YPPASSWDPROG,
252 1.31 thorpej YPPASSWDPROC_UPDATE, IPPROTO_UDP)) == 0)
253 1.31 thorpej errx(1, "master NIS server not running yppasswd daemon.\n\t%s\n",
254 1.31 thorpej "Can't change NIS password.");
255 1.31 thorpej
256 1.31 thorpej /*
257 1.31 thorpej * Be sure the port is privileged
258 1.31 thorpej */
259 1.31 thorpej if (rpcport >= IPPORT_RESERVED)
260 1.31 thorpej errx(1, "yppasswd daemon is on an invalid port.");
261 1.31 thorpej
262 1.31 thorpej /* Bail out if this is a local (non-yp) user, */
263 1.31 thorpej /* then get user's login identity */
264 1.31 thorpej /* XXX This should always fetch from NIS, not rely on getpwnam()! */
265 1.31 thorpej if (!ypgetpwnam(username) ||
266 1.31 thorpej !(pw = getpwnam(username)))
267 1.31 thorpej errx(1, "NIS unknown user %s", username);
268 1.31 thorpej
269 1.31 thorpej if (uid && uid != pw->pw_uid)
270 1.31 thorpej errx(1, "you may only change your own password: %s",
271 1.31 thorpej strerror(EACCES));
272 1.31 thorpej
273 1.31 thorpej /* prompt for new password */
274 1.31 thorpej yppasswd.newpw.pw_passwd = getnewpasswd(pw, &yppasswd.oldpass);
275 1.31 thorpej
276 1.31 thorpej /* tell rpc.yppasswdd */
277 1.31 thorpej yppasswd.newpw.pw_name = strdup(pw->pw_name);
278 1.31 thorpej if (!yppasswd.newpw.pw_name) {
279 1.31 thorpej err(1, "strdup");
280 1.31 thorpej /*NOTREACHED*/
281 1.31 thorpej }
282 1.31 thorpej yppasswd.newpw.pw_uid = pw->pw_uid;
283 1.31 thorpej yppasswd.newpw.pw_gid = pw->pw_gid;
284 1.31 thorpej yppasswd.newpw.pw_gecos = strdup(pw->pw_gecos);
285 1.31 thorpej if (!yppasswd.newpw.pw_gecos) {
286 1.31 thorpej err(1, "strdup");
287 1.31 thorpej /*NOTREACHED*/
288 1.31 thorpej }
289 1.31 thorpej yppasswd.newpw.pw_dir = strdup(pw->pw_dir);
290 1.31 thorpej if (!yppasswd.newpw.pw_dir) {
291 1.31 thorpej err(1, "strdup");
292 1.31 thorpej /*NOTREACHED*/
293 1.31 thorpej }
294 1.31 thorpej yppasswd.newpw.pw_shell = strdup(pw->pw_shell);
295 1.31 thorpej if (!yppasswd.newpw.pw_shell) {
296 1.31 thorpej err(1, "strdup");
297 1.31 thorpej /*NOTREACHED*/
298 1.31 thorpej }
299 1.31 thorpej
300 1.31 thorpej client = clnt_create(master, YPPASSWDPROG, YPPASSWDVERS, "udp");
301 1.31 thorpej if (client == NULL)
302 1.31 thorpej errx(1, "cannot contact yppasswdd on %s: Reason: %s",
303 1.31 thorpej master, yperr_string(YPERR_YPBIND));
304 1.31 thorpej
305 1.31 thorpej client->cl_auth = authunix_create_default();
306 1.31 thorpej tv.tv_sec = 2;
307 1.31 thorpej tv.tv_usec = 0;
308 1.31 thorpej r = clnt_call(client, YPPASSWDPROC_UPDATE,
309 1.31 thorpej xdr_yppasswd, &yppasswd, xdr_int, &status, tv);
310 1.31 thorpej if (r)
311 1.31 thorpej errx(1, "rpc to yppasswdd failed.");
312 1.31 thorpej else if (status)
313 1.31 thorpej printf("Couldn't change NIS password.\n");
314 1.31 thorpej else
315 1.31 thorpej printf("The NIS password has been changed on %s, %s\n",
316 1.31 thorpej master, "the master NIS passwd server.");
317 1.4 deraadt }
318 1.4 deraadt
319 1.31 thorpej #else /* ! USE_PAM */
320 1.31 thorpej
321 1.31 thorpej static int yflag;
322 1.31 thorpej
323 1.22 aidan int
324 1.22 aidan yp_init(progname)
325 1.22 aidan const char *progname;
326 1.22 aidan {
327 1.22 aidan int yppwd;
328 1.22 aidan
329 1.22 aidan if (strcmp(progname, "yppasswd") == 0) {
330 1.22 aidan yppwd = 1;
331 1.22 aidan } else
332 1.22 aidan yppwd = 0;
333 1.22 aidan yflag = 0;
334 1.22 aidan if (_yp_check(NULL) == 0) {
335 1.22 aidan /* can't use YP. */
336 1.22 aidan if (yppwd)
337 1.31 thorpej errx(1, "NIS not in use.");
338 1.22 aidan return(-1);
339 1.22 aidan }
340 1.22 aidan return (0);
341 1.22 aidan }
342 1.22 aidan
343 1.22 aidan int
344 1.22 aidan yp_arg(ch, arg)
345 1.22 aidan char ch;
346 1.22 aidan const char *arg;
347 1.22 aidan {
348 1.22 aidan switch (ch) {
349 1.22 aidan case 'y':
350 1.22 aidan yflag = 1;
351 1.22 aidan break;
352 1.22 aidan default:
353 1.22 aidan return(0);
354 1.22 aidan }
355 1.22 aidan return(1);
356 1.22 aidan }
357 1.22 aidan
358 1.22 aidan int
359 1.22 aidan yp_arg_end()
360 1.16 tv {
361 1.22 aidan if (yflag)
362 1.22 aidan return (PW_USE_FORCE);
363 1.22 aidan return (PW_USE);
364 1.22 aidan }
365 1.17 mrg
366 1.22 aidan void
367 1.22 aidan yp_end()
368 1.22 aidan {
369 1.22 aidan /* NOOP */
370 1.16 tv }
371 1.16 tv
372 1.9 thorpej int
373 1.22 aidan yp_chpw(username)
374 1.22 aidan const char *username;
375 1.1 brezak {
376 1.4 deraadt char *master;
377 1.4 deraadt int r, rpcport, status;
378 1.4 deraadt struct yppasswd yppasswd;
379 1.4 deraadt struct passwd *pw;
380 1.1 brezak struct timeval tv;
381 1.1 brezak CLIENT *client;
382 1.21 mjl
383 1.4 deraadt uid = getuid();
384 1.4 deraadt
385 1.4 deraadt /*
386 1.4 deraadt * Get local domain
387 1.4 deraadt */
388 1.22 aidan if ((r = yp_get_default_domain(&domain)) != 0)
389 1.31 thorpej errx(1, "can't get local NIS domain. Reason: %s",
390 1.9 thorpej yperr_string(r));
391 1.4 deraadt
392 1.4 deraadt /*
393 1.4 deraadt * Find the host for the passwd map; it should be running
394 1.4 deraadt * the daemon.
395 1.4 deraadt */
396 1.16 tv if ((r = yp_master(domain, "passwd.byname", &master)) != 0) {
397 1.31 thorpej warnx("can't find the master NIS server. Reason: %s",
398 1.9 thorpej yperr_string(r));
399 1.22 aidan /* continuation */
400 1.22 aidan return(-1);
401 1.16 tv }
402 1.1 brezak
403 1.4 deraadt /*
404 1.4 deraadt * Ask the portmapper for the port of the daemon.
405 1.4 deraadt */
406 1.4 deraadt if ((rpcport = getrpcport(master, YPPASSWDPROG,
407 1.10 thorpej YPPASSWDPROC_UPDATE, IPPROTO_UDP)) == 0) {
408 1.31 thorpej warnx("master NIS server not running yppasswd daemon.\n\t%s\n",
409 1.31 thorpej "Can't change NIS password.");
410 1.22 aidan /* continuation */
411 1.22 aidan return(-1);
412 1.10 thorpej }
413 1.1 brezak
414 1.4 deraadt /*
415 1.20 simonb * Be sure the port is privileged
416 1.4 deraadt */
417 1.9 thorpej if (rpcport >= IPPORT_RESERVED)
418 1.9 thorpej errx(1, "yppasswd daemon is on an invalid port.");
419 1.4 deraadt
420 1.21 mjl /* Bail out if this is a local (non-yp) user, */
421 1.21 mjl /* then get user's login identity */
422 1.21 mjl if (!ypgetpwnam(username) ||
423 1.21 mjl !(pw = getpwnam(username))) {
424 1.31 thorpej warnx("NIS unknown user %s", username);
425 1.22 aidan /* continuation */
426 1.22 aidan return(-1);
427 1.16 tv }
428 1.9 thorpej
429 1.9 thorpej if (uid && uid != pw->pw_uid)
430 1.9 thorpej errx(1, "you may only change your own password: %s",
431 1.9 thorpej strerror(EACCES));
432 1.1 brezak
433 1.4 deraadt /* prompt for new password */
434 1.4 deraadt yppasswd.newpw.pw_passwd = getnewpasswd(pw, &yppasswd.oldpass);
435 1.1 brezak
436 1.4 deraadt /* tell rpc.yppasswdd */
437 1.19 mycroft yppasswd.newpw.pw_name = strdup(pw->pw_name);
438 1.26 itojun if (!yppasswd.newpw.pw_name) {
439 1.26 itojun err(1, "strdup");
440 1.26 itojun /*NOTREACHED*/
441 1.26 itojun }
442 1.4 deraadt yppasswd.newpw.pw_uid = pw->pw_uid;
443 1.4 deraadt yppasswd.newpw.pw_gid = pw->pw_gid;
444 1.19 mycroft yppasswd.newpw.pw_gecos = strdup(pw->pw_gecos);
445 1.26 itojun if (!yppasswd.newpw.pw_gecos) {
446 1.26 itojun err(1, "strdup");
447 1.26 itojun /*NOTREACHED*/
448 1.26 itojun }
449 1.19 mycroft yppasswd.newpw.pw_dir = strdup(pw->pw_dir);
450 1.26 itojun if (!yppasswd.newpw.pw_dir) {
451 1.26 itojun err(1, "strdup");
452 1.26 itojun /*NOTREACHED*/
453 1.26 itojun }
454 1.19 mycroft yppasswd.newpw.pw_shell = strdup(pw->pw_shell);
455 1.26 itojun if (!yppasswd.newpw.pw_shell) {
456 1.26 itojun err(1, "strdup");
457 1.26 itojun /*NOTREACHED*/
458 1.26 itojun }
459 1.16 tv
460 1.4 deraadt client = clnt_create(master, YPPASSWDPROG, YPPASSWDVERS, "udp");
461 1.17 mrg if (client == NULL) {
462 1.9 thorpej warnx("cannot contact yppasswdd on %s: Reason: %s",
463 1.5 deraadt master, yperr_string(YPERR_YPBIND));
464 1.17 mrg return (YPERR_YPBIND);
465 1.4 deraadt }
466 1.9 thorpej
467 1.4 deraadt client->cl_auth = authunix_create_default();
468 1.4 deraadt tv.tv_sec = 2;
469 1.4 deraadt tv.tv_usec = 0;
470 1.4 deraadt r = clnt_call(client, YPPASSWDPROC_UPDATE,
471 1.9 thorpej xdr_yppasswd, &yppasswd, xdr_int, &status, tv);
472 1.4 deraadt if (r)
473 1.9 thorpej errx(1, "rpc to yppasswdd failed.");
474 1.4 deraadt else if (status)
475 1.31 thorpej printf("Couldn't change NIS password.\n");
476 1.4 deraadt else
477 1.31 thorpej printf("The NIS password has been changed on %s, %s\n",
478 1.31 thorpej master, "the master NIS passwd server.");
479 1.22 aidan return(0);
480 1.1 brezak }
481 1.1 brezak
482 1.31 thorpej #endif /* USE_PAM */
483 1.1 brezak
484 1.1 brezak #endif /* YP */
485