Fix -n so that it doesn't disable authentication but does disable login. [38]
authorSam Hartman <hartmans@mit.edu>
Sat, 25 Apr 1998 06:08:01 +0000 (06:08 +0000)
committerSam Hartman <hartmans@mit.edu>
Sat, 25 Apr 1998 06:08:01 +0000 (06:08 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10543 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gssftp/ftp/ChangeLog
src/appl/gssftp/ftp/cmds.c
src/appl/gssftp/ftp/ftp_var.h
src/appl/gssftp/ftp/main.c

index f56f5985e50212b3b5bd36bf1e9ea52227b8d35b..08c18dc5bf9e37632563001cde895ea12266363c 100644 (file)
@@ -1,3 +1,7 @@
+Sat Apr 25 01:53:04 1998  Sam Hartman  <hartmans@luminous.mit.edu>
+
+       * cmds.c (setpeer): Fix so that autologin is respected again
+
 1998-04-21  Ken Raeburn  <raeburn@cygnus.com>
 
        * glob.c (ftpglob): Always allocate new storage, even if no magic
@@ -39,6 +43,7 @@ Thu Jan 29 19:39:27 1998  Dan Winship  <danw@mit.edu>
 
        * cmds.c (setpeer): implement -x
 
+
 Thu Dec 11 23:26:58 1997  Tom Yu  <tlyu@mit.edu>
 
        * ftp.c:
@@ -46,6 +51,16 @@ Thu Dec 11 23:26:58 1997  Tom Yu  <tlyu@mit.edu>
        included; this works around an Ultrix bug where those headers
        aren't protected against multiple inclusion.
 
+Sat Dec  6 18:17:10 1997  Sam Hartman  <hartmans@luminous.mesas.com>
+
+       * main.c (main): Add -u for unauthenticated
+
+       * ftp_var.h: Add autoauth
+
+       * cmds.c (setpeer): Automatic authentication should not be
+       dependent on autologin; use -u instead.
+
+
 Thu Oct 16 01:20:30 1997  Tom Yu  <tlyu@mit.edu>
 
        * main.c: Change KERBEROS to KRB5_KRB4_COMPAT where appropriate.
index 0cc82755f106c55cbd6b95a21dcd270f93eb7403..81e6fee1ceb27b7b742ad0bc0fc9b435b23ab467 100644 (file)
@@ -167,7 +167,7 @@ setpeer(argc, argv)
                mode = MODE_S;
                stru = STRU_F;
                (void) strcpy(bytename, "8"), bytesize = 8;
-               if (autologin) {
+               if (autoauth) {
                        if (do_auth() && autoencrypt) {
                                setpbsz(1<<20);
                                if (command("PROT P") == COMPLETE)
@@ -175,7 +175,9 @@ setpeer(argc, argv)
                                else
                                        fprintf(stderr, "ftp: couldn't enable encryption\n");
                        }
-                       (void) login(argv[1]);
+
+                       if(autologin)
+                         (void) login(argv[1]);
                }
 
 #ifndef unix
index aa25b07564edd1a51ae491152b164ba2be6bbc31..dcc19f206ecd0ac83b71c2f33250c0db965f53c1 100644 (file)
@@ -54,6 +54,7 @@ extern int    interactive;    /* interactively prompt on m* cmds */
 extern int     debug;          /* debugging level */
 extern int     bell;           /* ring bell on cmd completion */
 extern int     doglob;         /* glob local file names */
+extern int autoauth;           /* Do authentication on connect */
 extern int     autologin;      /* establish user account on connection */
 extern int     autoencrypt;    /* negotiate encryption on connection */
 extern int     forward;        /* forward credentials */
index 7c5be075a7dddf54998b686e3a0f5c9fa7ef955f..1eac2ff2af5ca7a08f5c21a015d5dffe04990c51 100644 (file)
@@ -100,6 +100,7 @@ main(argc, argv)
 #endif /* KRB5_KRB4_COMPAT */
        doglob = 1;
        interactive = 1;
+       autoauth = 1;
        autologin = 1;
        forward = 0;
        autoencrypt = 0;
@@ -146,6 +147,11 @@ main(argc, argv)
                                doglob = 0;
                                break;
 
+
+                       case 'u':
+                         autoauth = 0;
+                         break;
+
                        case 'f':
                                forward = 1;
                                break;
@@ -154,6 +160,7 @@ main(argc, argv)
                                autoencrypt = 1;
                                break;
 
+
                        default:
                                fprintf(stdout,
                                  "ftp: %c: unknown option\n", *cp);