View | Details | Raw Unified | Return to bug 1207 | Differences between
and this patch

Collapse All | Expand All

(-)auth.c (+5 lines)
Lines 269-274 Link Here
269
	    strcmp(method, "challenge-response") == 0))
269
	    strcmp(method, "challenge-response") == 0))
270
		record_failed_login(authctxt->user,
270
		record_failed_login(authctxt->user,
271
		    get_canonical_hostname(options.use_dns), "ssh");
271
		    get_canonical_hostname(options.use_dns), "ssh");
272
# ifdef _AIX
273
	if (authenticated)
274
		sys_auth_record_login(authctxt->user,
275
		    get_canonical_hostname(options.use_dns), "ssh", &loginmsg);
276
# endif
272
#endif
277
#endif
273
#ifdef SSH_AUDIT_EVENTS
278
#ifdef SSH_AUDIT_EVENTS
274
	if (authenticated == 0 && !authctxt->postponed)
279
	if (authenticated == 0 && !authctxt->postponed)
(-)openbsd-compat/port-aix.c (-1 / +3 lines)
Lines 256-270 Link Here
256
    Buffer *loginmsg)
256
    Buffer *loginmsg)
257
{
257
{
258
	char *msg = NULL;
258
	char *msg = NULL;
259
	static int msg_done = 0;
259
	int success = 0;
260
	int success = 0;
260
261
261
	aix_setauthdb(user);
262
	aix_setauthdb(user);
262
	if (loginsuccess((char *)user, (char *)host, (char *)ttynm, &msg) == 0) {
263
	if (loginsuccess((char *)user, (char *)host, (char *)ttynm, &msg) == 0) {
263
		success = 1;
264
		success = 1;
264
		if (msg != NULL) {
265
		if (msg != NULL && loginmsg != NULL && !msg_done) {
265
			debug("AIX/loginsuccess: msg %s", msg);
266
			debug("AIX/loginsuccess: msg %s", msg);
266
			buffer_append(loginmsg, msg, strlen(msg));
267
			buffer_append(loginmsg, msg, strlen(msg));
267
			xfree(msg);
268
			xfree(msg);
269
			msg_done = 1;
268
		}
270
		}
269
	}
271
	}
270
	aix_restoreauthdb();
272
	aix_restoreauthdb();

Return to bug 1207