blob: da2c23e528918bb7b64fdc84a5f835b15e959b54 [file] [log] [blame]
Damien Millereba71ba2000-04-29 23:57:08 +10001/*
2 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
3 * All rights reserved
Damien Millere4340be2000-09-16 13:29:08 +11004 *
5 * As far as I am concerned, the code I have written for this software
6 * can be used freely for any purpose. Any derived versions of this
7 * software must be clearly marked as such, and if the derived work is
8 * incompatible with the protocol description in the RFC file, it must be
9 * called by a name other than "ssh" or "Secure Shell".
Damien Millereba71ba2000-04-29 23:57:08 +100010 */
11
12#include "includes.h"
Ben Lindstromec95ed92001-07-04 04:21:14 +000013RCSID("$OpenBSD: auth1.c,v 1.25 2001/06/26 16:15:23 dugsong Exp $");
Damien Millereba71ba2000-04-29 23:57:08 +100014
Damien Miller874d77b2000-10-14 16:23:11 +110015#include "xmalloc.h"
16#include "rsa.h"
Ben Lindstrom226cfa02001-01-22 05:34:40 +000017#include "ssh1.h"
Damien Miller874d77b2000-10-14 16:23:11 +110018#include "packet.h"
19#include "buffer.h"
20#include "mpaux.h"
Ben Lindstrom226cfa02001-01-22 05:34:40 +000021#include "log.h"
Damien Miller874d77b2000-10-14 16:23:11 +110022#include "servconf.h"
23#include "compat.h"
24#include "auth.h"
25#include "session.h"
Ben Lindstrom086cf212001-03-05 05:56:40 +000026#include "misc.h"
Ben Lindstromec95ed92001-07-04 04:21:14 +000027#include "uidswap.h"
Damien Miller874d77b2000-10-14 16:23:11 +110028
Damien Millereba71ba2000-04-29 23:57:08 +100029/* import */
30extern ServerOptions options;
Damien Miller874d77b2000-10-14 16:23:11 +110031
32#ifdef WITH_AIXAUTHENTICATE
33extern char *aixloginmsg;
34#endif /* WITH_AIXAUTHENTICATE */
Damien Millereba71ba2000-04-29 23:57:08 +100035
36/*
37 * convert ssh auth msg type into description
38 */
Ben Lindstrombba81212001-06-25 05:01:22 +000039static char *
Damien Millereba71ba2000-04-29 23:57:08 +100040get_authname(int type)
41{
42 static char buf[1024];
43 switch (type) {
44 case SSH_CMSG_AUTH_PASSWORD:
45 return "password";
46 case SSH_CMSG_AUTH_RSA:
47 return "rsa";
48 case SSH_CMSG_AUTH_RHOSTS_RSA:
49 return "rhosts-rsa";
50 case SSH_CMSG_AUTH_RHOSTS:
51 return "rhosts";
Ben Lindstromdb65e8f2001-01-19 04:26:52 +000052 case SSH_CMSG_AUTH_TIS:
53 case SSH_CMSG_AUTH_TIS_RESPONSE:
54 return "challenge-response";
Ben Lindstromec95ed92001-07-04 04:21:14 +000055#if defined(KRB4) || defined(KRB5)
Damien Millereba71ba2000-04-29 23:57:08 +100056 case SSH_CMSG_AUTH_KERBEROS:
57 return "kerberos";
58#endif
Damien Millereba71ba2000-04-29 23:57:08 +100059 }
60 snprintf(buf, sizeof buf, "bad-auth-msg-%d", type);
61 return buf;
62}
63
64/*
Ben Lindstromdb65e8f2001-01-19 04:26:52 +000065 * read packets, try to authenticate the user and
66 * return only if authentication is successful
Damien Millereba71ba2000-04-29 23:57:08 +100067 */
Ben Lindstrombba81212001-06-25 05:01:22 +000068static void
Ben Lindstromdb65e8f2001-01-19 04:26:52 +000069do_authloop(Authctxt *authctxt)
Damien Millereba71ba2000-04-29 23:57:08 +100070{
Damien Miller874d77b2000-10-14 16:23:11 +110071 int authenticated = 0;
Ben Lindstrom46c16222000-12-22 01:43:59 +000072 u_int bits;
Damien Millereba71ba2000-04-29 23:57:08 +100073 RSA *client_host_key;
74 BIGNUM *n;
Damien Miller874d77b2000-10-14 16:23:11 +110075 char *client_user, *password;
Ben Lindstromdb65e8f2001-01-19 04:26:52 +000076 char info[1024];
Ben Lindstrom46c16222000-12-22 01:43:59 +000077 u_int dlen;
Damien Millereba71ba2000-04-29 23:57:08 +100078 int plen, nlen, elen;
Ben Lindstrom46c16222000-12-22 01:43:59 +000079 u_int ulen;
Damien Millereba71ba2000-04-29 23:57:08 +100080 int type = 0;
Ben Lindstromdb65e8f2001-01-19 04:26:52 +000081 struct passwd *pw = authctxt->pw;
82
83 debug("Attempting authentication for %s%.100s.",
84 authctxt->valid ? "" : "illegal user ", authctxt->user);
85
86 /* If the user has no password, accept authentication immediately. */
87 if (options.password_authentication &&
Ben Lindstromec95ed92001-07-04 04:21:14 +000088#if defined(KRB4) || defined(KRB5)
Ben Lindstromdb65e8f2001-01-19 04:26:52 +000089 (!options.kerberos_authentication || options.kerberos_or_local_passwd) &&
90#endif
Ben Lindstromb100ec92001-01-19 05:37:32 +000091#ifdef USE_PAM
Kevin Stevesbca8c8f2001-02-13 11:26:21 +000092 auth_pam_password(pw, "")) {
Damien Miller92ddb7d2001-02-14 01:25:23 +110093#elif defined(HAVE_OSF_SIA)
94 0) {
Ben Lindstromdb65e8f2001-01-19 04:26:52 +000095#else
Damien Miller60396b02001-02-18 17:01:00 +110096 auth_password(authctxt, "")) {
Ben Lindstromdb65e8f2001-01-19 04:26:52 +000097#endif
98 auth_log(authctxt, 1, "without authentication", "");
99 return;
100 }
Damien Millereba71ba2000-04-29 23:57:08 +1000101
102 /* Indicate that authentication is needed. */
103 packet_start(SSH_SMSG_FAILURE);
104 packet_send();
105 packet_write_wait();
106
Damien Miller874d77b2000-10-14 16:23:11 +1100107 client_user = NULL;
108
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000109 for (;;) {
Damien Miller874d77b2000-10-14 16:23:11 +1100110 /* default to fail */
111 authenticated = 0;
112
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000113 info[0] = '\0';
Damien Millereba71ba2000-04-29 23:57:08 +1000114
115 /* Get a packet from the client. */
116 type = packet_read(&plen);
117
118 /* Process the packet. */
119 switch (type) {
Damien Millereba71ba2000-04-29 23:57:08 +1000120
Ben Lindstromec95ed92001-07-04 04:21:14 +0000121#if defined(KRB4) || defined(KRB5)
Damien Millereba71ba2000-04-29 23:57:08 +1000122 case SSH_CMSG_AUTH_KERBEROS:
123 if (!options.kerberos_authentication) {
Damien Millereba71ba2000-04-29 23:57:08 +1000124 verbose("Kerberos authentication disabled.");
Damien Millereba71ba2000-04-29 23:57:08 +1000125 } else {
Ben Lindstromec95ed92001-07-04 04:21:14 +0000126 char *kdata = packet_get_string(&dlen);
127
128 packet_integrity_check(plen, 4 + dlen, type);
129
130 if (kdata[0] == 4) { /* KRB_PROT_VERSION */
131#ifdef KRB4
132 KTEXT_ST tkt;
133
134 tkt.length = dlen;
135 if (tkt.length < MAX_KTXT_LEN)
136 memcpy(tkt.dat, kdata, tkt.length);
137
138 if (auth_krb4(authctxt, &tkt, &client_user)) {
139 authenticated = 1;
140 snprintf(info, sizeof(info),
141 " tktuser %.100s",
142 client_user);
143 xfree(client_user);
Damien Miller874d77b2000-10-14 16:23:11 +1100144 }
Ben Lindstromec95ed92001-07-04 04:21:14 +0000145#endif /* KRB4 */
146 } else {
147#ifdef KRB5
148 krb5_data tkt;
149 tkt.length = dlen;
150 tkt.data = kdata;
151
152 if (auth_krb5(authctxt, &tkt, &client_user)) {
153 authenticated = 1;
154 snprintf(info, sizeof(info),
155 " tktuser %.100s",
156 client_user);
157 xfree(client_user);
158 }
159#endif /* KRB5 */
Damien Millereba71ba2000-04-29 23:57:08 +1000160 }
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000161 xfree(kdata);
Damien Millereba71ba2000-04-29 23:57:08 +1000162 }
163 break;
Ben Lindstromec95ed92001-07-04 04:21:14 +0000164#endif /* KRB4 || KRB5 */
165
166#if defined(AFS) || defined(KRB5)
167 /* XXX - punt on backward compatibility here. */
168 case SSH_CMSG_HAVE_KERBEROS_TGT:
169 packet_send_debug("Kerberos TGT passing disabled before authentication.");
170 break;
171#ifdef AFS
172 case SSH_CMSG_HAVE_AFS_TOKEN:
173 packet_send_debug("AFS token passing disabled before authentication.");
174 break;
175#endif /* AFS */
176#endif /* AFS || KRB5 */
177
Damien Millereba71ba2000-04-29 23:57:08 +1000178 case SSH_CMSG_AUTH_RHOSTS:
179 if (!options.rhosts_authentication) {
180 verbose("Rhosts authentication disabled.");
181 break;
182 }
183 /*
184 * Get client user name. Note that we just have to
185 * trust the client; this is one reason why rhosts
186 * authentication is insecure. (Another is
187 * IP-spoofing on a local network.)
188 */
189 client_user = packet_get_string(&ulen);
190 packet_integrity_check(plen, 4 + ulen, type);
191
Damien Miller874d77b2000-10-14 16:23:11 +1100192 /* Try to authenticate using /etc/hosts.equiv and .rhosts. */
Damien Millereba71ba2000-04-29 23:57:08 +1000193 authenticated = auth_rhosts(pw, client_user);
194
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000195 snprintf(info, sizeof info, " ruser %.100s", client_user);
Damien Millereba71ba2000-04-29 23:57:08 +1000196 break;
197
198 case SSH_CMSG_AUTH_RHOSTS_RSA:
199 if (!options.rhosts_rsa_authentication) {
200 verbose("Rhosts with RSA authentication disabled.");
201 break;
202 }
203 /*
204 * Get client user name. Note that we just have to
205 * trust the client; root on the client machine can
206 * claim to be any user.
207 */
208 client_user = packet_get_string(&ulen);
209
210 /* Get the client host key. */
211 client_host_key = RSA_new();
212 if (client_host_key == NULL)
213 fatal("RSA_new failed");
214 client_host_key->e = BN_new();
215 client_host_key->n = BN_new();
216 if (client_host_key->e == NULL || client_host_key->n == NULL)
217 fatal("BN_new failed");
218 bits = packet_get_int();
219 packet_get_bignum(client_host_key->e, &elen);
220 packet_get_bignum(client_host_key->n, &nlen);
221
222 if (bits != BN_num_bits(client_host_key->n))
Damien Miller874d77b2000-10-14 16:23:11 +1100223 verbose("Warning: keysize mismatch for client_host_key: "
Damien Millerbd483e72000-04-30 10:00:53 +1000224 "actual %d, announced %d", BN_num_bits(client_host_key->n), bits);
Damien Millereba71ba2000-04-29 23:57:08 +1000225 packet_integrity_check(plen, (4 + ulen) + 4 + elen + nlen, type);
226
227 authenticated = auth_rhosts_rsa(pw, client_user, client_host_key);
228 RSA_free(client_host_key);
229
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000230 snprintf(info, sizeof info, " ruser %.100s", client_user);
Damien Millereba71ba2000-04-29 23:57:08 +1000231 break;
232
233 case SSH_CMSG_AUTH_RSA:
234 if (!options.rsa_authentication) {
235 verbose("RSA authentication disabled.");
236 break;
237 }
238 /* RSA authentication requested. */
239 n = BN_new();
240 packet_get_bignum(n, &nlen);
241 packet_integrity_check(plen, nlen, type);
242 authenticated = auth_rsa(pw, n);
243 BN_clear_free(n);
244 break;
245
246 case SSH_CMSG_AUTH_PASSWORD:
247 if (!options.password_authentication) {
248 verbose("Password authentication disabled.");
249 break;
250 }
251 /*
252 * Read user password. It is in plain text, but was
253 * transmitted over the encrypted channel so it is
254 * not visible to an outside observer.
255 */
256 password = packet_get_string(&dlen);
257 packet_integrity_check(plen, 4 + dlen, type);
258
259#ifdef USE_PAM
260 /* Do PAM auth with password */
261 authenticated = auth_pam_password(pw, password);
Damien Millerb8c656e2000-06-28 15:22:41 +1000262#elif defined(HAVE_OSF_SIA)
263 /* Do SIA auth with password */
Damien Miller92ddb7d2001-02-14 01:25:23 +1100264 authenticated = auth_sia_password(authctxt->user,
265 password);
Damien Millerb8c656e2000-06-28 15:22:41 +1000266#else /* !USE_PAM && !HAVE_OSF_SIA */
Kevin Steves12aaa042001-01-24 21:23:39 +0000267 /* Try authentication with the password. */
Damien Miller60396b02001-02-18 17:01:00 +1100268 authenticated = auth_password(authctxt, password);
Damien Millereba71ba2000-04-29 23:57:08 +1000269#endif /* USE_PAM */
270
271 memset(password, 0, strlen(password));
272 xfree(password);
273 break;
274
Damien Millereba71ba2000-04-29 23:57:08 +1000275 case SSH_CMSG_AUTH_TIS:
276 debug("rcvd SSH_CMSG_AUTH_TIS");
Ben Lindstrom551ea372001-06-05 18:56:16 +0000277 if (options.challenge_response_authentication == 1) {
278 char *challenge = get_challenge(authctxt);
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000279 if (challenge != NULL) {
280 debug("sending challenge '%s'", challenge);
Damien Millereba71ba2000-04-29 23:57:08 +1000281 packet_start(SSH_SMSG_AUTH_TIS_CHALLENGE);
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000282 packet_put_cstring(challenge);
Ben Lindstrom551ea372001-06-05 18:56:16 +0000283 xfree(challenge);
Damien Millereba71ba2000-04-29 23:57:08 +1000284 packet_send();
285 packet_write_wait();
286 continue;
287 }
288 }
289 break;
290 case SSH_CMSG_AUTH_TIS_RESPONSE:
291 debug("rcvd SSH_CMSG_AUTH_TIS_RESPONSE");
Ben Lindstrom551ea372001-06-05 18:56:16 +0000292 if (options.challenge_response_authentication == 1) {
Damien Millereba71ba2000-04-29 23:57:08 +1000293 char *response = packet_get_string(&dlen);
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000294 debug("got response '%s'", response);
Damien Millereba71ba2000-04-29 23:57:08 +1000295 packet_integrity_check(plen, 4 + dlen, type);
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000296 authenticated = verify_response(authctxt, response);
297 memset(response, 'r', dlen);
Damien Millereba71ba2000-04-29 23:57:08 +1000298 xfree(response);
299 }
300 break;
Damien Millereba71ba2000-04-29 23:57:08 +1000301
302 default:
303 /*
304 * Any unknown messages will be ignored (and failure
305 * returned) during authentication.
306 */
307 log("Unknown message during authentication: type %d", type);
308 break;
309 }
Damien Miller60396b02001-02-18 17:01:00 +1100310#ifdef BSD_AUTH
311 if (authctxt->as) {
312 auth_close(authctxt->as);
313 authctxt->as = NULL;
314 }
315#endif
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000316 if (!authctxt->valid && authenticated)
317 fatal("INTERNAL ERROR: authenticated invalid user %s",
318 authctxt->user);
Damien Millereba71ba2000-04-29 23:57:08 +1000319
Kevin Stevesef4eea92001-02-05 12:42:17 +0000320#ifdef HAVE_CYGWIN
321 if (authenticated &&
Damien Millerb70b61f2000-09-16 16:25:12 +1100322 !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD,pw->pw_uid)) {
Damien Millerbac2d8a2000-09-05 16:13:06 +1100323 packet_disconnect("Authentication rejected for uid %d.",
Damien Miller874d77b2000-10-14 16:23:11 +1100324 (int)pw->pw_uid);
Damien Millerbac2d8a2000-09-05 16:13:06 +1100325 authenticated = 0;
326 }
Ben Lindstrom5dc81502001-01-19 06:10:29 +0000327#else
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000328 /* Special handling for root */
Ben Lindstromd8a90212001-02-15 03:08:27 +0000329 if (authenticated && authctxt->pw->pw_uid == 0 &&
330 !auth_root_allowed(get_authname(type)))
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000331 authenticated = 0;
Ben Lindstrom5dc81502001-01-19 06:10:29 +0000332#endif
Kevin Stevesef4eea92001-02-05 12:42:17 +0000333#ifdef USE_PAM
Damien Miller874d77b2000-10-14 16:23:11 +1100334 if (authenticated && !do_pam_account(pw->pw_name, client_user))
335 authenticated = 0;
336#endif
Damien Millereba71ba2000-04-29 23:57:08 +1000337
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000338 /* Log before sending the reply */
339 auth_log(authctxt, authenticated, get_authname(type), info);
340
Damien Millereba71ba2000-04-29 23:57:08 +1000341 if (client_user != NULL) {
342 xfree(client_user);
343 client_user = NULL;
344 }
345
Damien Miller874d77b2000-10-14 16:23:11 +1100346 if (authenticated)
347 return;
348
Kevin Steves12aaa042001-01-24 21:23:39 +0000349 if (authctxt->failures++ > AUTH_FAIL_MAX) {
Kevin Stevesef4eea92001-02-05 12:42:17 +0000350#ifdef WITH_AIXAUTHENTICATE
351 loginfailed(authctxt->user,
352 get_canonical_hostname(options.reverse_mapping_check),
Damien Miller33804262001-02-04 23:20:18 +1100353 "ssh");
Damien Millerd2c208a2000-05-17 22:00:02 +1000354#endif /* WITH_AIXAUTHENTICATE */
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000355 packet_disconnect(AUTH_FAIL_MSG, authctxt->user);
Damien Millerd2c208a2000-05-17 22:00:02 +1000356 }
Damien Millereba71ba2000-04-29 23:57:08 +1000357
Damien Millereba71ba2000-04-29 23:57:08 +1000358 packet_start(SSH_SMSG_FAILURE);
359 packet_send();
360 packet_write_wait();
361 }
362}
363
364/*
365 * Performs authentication of an incoming connection. Session key has already
366 * been exchanged and encryption is enabled.
367 */
368void
369do_authentication()
370{
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000371 Authctxt *authctxt;
372 struct passwd *pw;
Damien Millereba71ba2000-04-29 23:57:08 +1000373 int plen;
Ben Lindstrom46c16222000-12-22 01:43:59 +0000374 u_int ulen;
Ben Lindstromec95ed92001-07-04 04:21:14 +0000375 char *p, *user, *style = NULL;
Damien Millereba71ba2000-04-29 23:57:08 +1000376
377 /* Get the name of the user that we wish to log in as. */
378 packet_read_expect(&plen, SSH_CMSG_USER);
379
380 /* Get the user name. */
381 user = packet_get_string(&ulen);
382 packet_integrity_check(plen, (4 + ulen), SSH_CMSG_USER);
383
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000384 if ((style = strchr(user, ':')) != NULL)
Ben Lindstromec95ed92001-07-04 04:21:14 +0000385 *style++ = '\0';
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000386
Ben Lindstromec95ed92001-07-04 04:21:14 +0000387 /* XXX - SSH.com Kerberos v5 braindeath. */
388 if ((p = strchr(user, '@')) != NULL)
389 *p = '\0';
390
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000391 authctxt = authctxt_new();
392 authctxt->user = user;
393 authctxt->style = style;
394
Damien Millereba71ba2000-04-29 23:57:08 +1000395 /* Verify that the user is a valid user. */
396 pw = getpwnam(user);
Damien Miller874d77b2000-10-14 16:23:11 +1100397 if (pw && allowed_user(pw)) {
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000398 authctxt->valid = 1;
399 pw = pwcopy(pw);
Damien Miller874d77b2000-10-14 16:23:11 +1100400 } else {
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000401 debug("do_authentication: illegal user %s", user);
Damien Miller874d77b2000-10-14 16:23:11 +1100402 pw = NULL;
403 }
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000404 authctxt->pw = pw;
Damien Millereba71ba2000-04-29 23:57:08 +1000405
Ben Lindstromc1ba31f2001-02-15 03:14:11 +0000406 setproctitle("%s", pw ? user : "unknown");
407
Damien Millereba71ba2000-04-29 23:57:08 +1000408#ifdef USE_PAM
Damien Miller874d77b2000-10-14 16:23:11 +1100409 if (pw)
Damien Miller22e22bf2001-01-19 15:46:38 +1100410 start_pam(user);
Damien Millereba71ba2000-04-29 23:57:08 +1000411#endif
412
413 /*
414 * If we are not running as root, the user must have the same uid as
Damien Miller874d77b2000-10-14 16:23:11 +1100415 * the server. (Unless you are running Windows)
Damien Millereba71ba2000-04-29 23:57:08 +1000416 */
Damien Miller874d77b2000-10-14 16:23:11 +1100417#ifndef HAVE_CYGWIN
418 if (getuid() != 0 && pw && pw->pw_uid != getuid())
Damien Millereba71ba2000-04-29 23:57:08 +1000419 packet_disconnect("Cannot change user when server not running as root.");
Damien Millerbac2d8a2000-09-05 16:13:06 +1100420#endif
Damien Millereba71ba2000-04-29 23:57:08 +1000421
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000422 /*
Kevin Steves12aaa042001-01-24 21:23:39 +0000423 * Loop until the user has been authenticated or the connection is
424 * closed, do_authloop() returns only if authentication is successful
425 */
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000426 do_authloop(authctxt);
Damien Millereba71ba2000-04-29 23:57:08 +1000427
428 /* The user has been authenticated and accepted. */
Damien Miller874d77b2000-10-14 16:23:11 +1100429 packet_start(SSH_SMSG_SUCCESS);
430 packet_send();
431 packet_write_wait();
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000432
Damien Millereba71ba2000-04-29 23:57:08 +1000433#ifdef WITH_AIXAUTHENTICATE
Damien Millerd2c208a2000-05-17 22:00:02 +1000434 /* We don't have a pty yet, so just label the line as "ssh" */
Kevin Stevesef4eea92001-02-05 12:42:17 +0000435 if (loginsuccess(authctxt->user,
Damien Miller33804262001-02-04 23:20:18 +1100436 get_canonical_hostname(options.reverse_mapping_check),
437 "ssh", &aixloginmsg) < 0)
Damien Millerd2c208a2000-05-17 22:00:02 +1000438 aixloginmsg = NULL;
Damien Millereba71ba2000-04-29 23:57:08 +1000439#endif /* WITH_AIXAUTHENTICATE */
Ben Lindstromdb65e8f2001-01-19 04:26:52 +0000440
Damien Millereba71ba2000-04-29 23:57:08 +1000441 /* Perform session preparation. */
Ben Lindstromb31783d2001-03-22 02:02:12 +0000442 do_authenticated(authctxt);
Damien Millereba71ba2000-04-29 23:57:08 +1000443}