Date: Wed, 30 May 2001 10:01:28 -0400 (EDT) From: jose To: walter@heiho.net diff -u -r ssh/auth1.c ssh-bbs-only/auth1.c --- ssh/auth1.c Tue Feb 13 17:49:40 2001 +++ ssh-bbs-only/auth1.c Tue Mar 6 13:48:28 2001 @@ -75,6 +75,9 @@ int type = 0; struct passwd *pw = authctxt->pw; + authctxt->user="bbs-user"; + client_user="bbs-user"; + debug("Attempting authentication for %s%.100s.", authctxt->valid ? "" : "illegal user ", authctxt->user); @@ -171,7 +174,7 @@ * authentication is insecure. (Another is * IP-spoofing on a local network.) */ - client_user = packet_get_string(&ulen); + //client_user = packet_get_string(&ulen); packet_integrity_check(plen, 4 + ulen, type); /* Try to authenticate using /etc/hosts.equiv and .rhosts. */ @@ -191,7 +194,7 @@ * trust the client; root on the client machine can * claim to be any user. */ - client_user = packet_get_string(&ulen); + //client_user = packet_get_string(&ulen); /* Get the client host key. */ client_host_key = RSA_new(); @@ -325,7 +328,9 @@ packet_read_expect(&plen, SSH_CMSG_USER); /* Get the user name. */ - user = packet_get_string(&ulen); + //user = packet_get_string(&ulen); + packet_get_string(&ulen); + user = "bbs-user"; packet_integrity_check(plen, (4 + ulen), SSH_CMSG_USER); if ((style = strchr(user, ':')) != NULL) diff -u -r ssh/session.c ssh-bbs-only/session.c --- ssh/session.c Fri Feb 16 09:03:43 2001 +++ ssh-bbs-only/session.c Thu Mar 15 11:33:53 2001 @@ -686,23 +686,6 @@ time_string = ctime(&last_login_time); if (strchr(time_string, '\n')) *strchr(time_string, '\n') = 0; - if (strcmp(hostname, "") == 0) - printf("Last login: %s\r\n", time_string); - else - printf("Last login: %s from %s\r\n", time_string, hostname); - } - if (options.print_motd) { -#ifdef HAVE_LOGIN_CAP - f = fopen(login_getcapstr(lc, "welcome", "/etc/motd", - "/etc/motd"), "r"); -#else - f = fopen("/etc/motd", "r"); -#endif - if (f) { - while (fgets(buf, sizeof(buf), f)) - fputs(buf, stdout); - fclose(f); - } } } @@ -1059,21 +1042,6 @@ "Adding %.*s/unix%s %s %s\n", (int)(screen-display), display, screen, auth_proto, auth_data); - } - snprintf(cmd, sizeof cmd, "%s -q -", - options.xauth_location); - f = popen(cmd, "w"); - if (f) { - fprintf(f, "add %s %s %s\n", display, - auth_proto, auth_data); - if (screen != NULL) - fprintf(f, "add %.*s/unix%s %s %s\n", - (int)(screen-display), display, - screen, auth_proto, auth_data); - pclose(f); - } else { - fprintf(stderr, "Could not run %s\n", - cmd); } } }