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

Collapse All | Expand All

(-)auth.c (-4 / +15 lines)
Lines 269-278 Link Here
269
	    info);
269
	    info);
270
270
271
#ifdef WITH_AIXAUTHENTICATE
271
#ifdef WITH_AIXAUTHENTICATE
272
	if (authenticated == 0 && strcmp(method, "password") == 0)
272
	if (authenticated == 0 && strcmp(method, "password") == 0){
273
	    loginfailed(authctxt->user,
273
#ifdef HAVE_SETAUTHDB
274
		get_canonical_hostname(options.verify_reverse_mapping),
274
		char *registry, *oldauthdb;
275
		"ssh");
275
276
		setuserdb(S_READ);
277
		if (getuserattr(authctxt->user, S_REGISTRY, &registry,
278
		    SEC_CHAR) == 0)
279
			setauthdb(registry, oldauthdb);
280
                enduserdb();
281
#endif /* HAVE_SETAUTHDB */
282
283
		loginfailed(authctxt->user,
284
		    get_canonical_hostname(options.verify_reverse_mapping),
285
		    "ssh");
286
        }
276
#endif /* WITH_AIXAUTHENTICATE */
287
#endif /* WITH_AIXAUTHENTICATE */
277
288
278
}
289
}

Return to bug 543