]> andersk Git - gssapi-openssh.git/blobdiff - openssh/auth2-none.c
remove prototype for ssh_gssapi_mechanisms() function that no longer exists
[gssapi-openssh.git] / openssh / auth2-none.c
index 692a2961f9e7b10cfbfd26d44c78cd725eed950d..c342addeca5ad43b9addfe0906e7506a09301a05 100644 (file)
@@ -23,7 +23,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: auth2-none.c,v 1.4 2002/06/27 10:35:47 deraadt Exp $");
+RCSID("$OpenBSD: auth2-none.c,v 1.6 2003/08/26 09:58:43 markus Exp $");
 
 #include "auth.h"
 #include "xmalloc.h"
@@ -100,7 +100,9 @@ userauth_none(Authctxt *authctxt)
        if (check_nt_auth(1, authctxt->pw) == 0)
                return(0);
 #endif
-       return PRIVSEP(auth_password(authctxt, "")) && authctxt->valid;
+       if (options.password_authentication)
+               return (PRIVSEP(auth_password(authctxt, "")));
+       return (0);
 }
 
 Authmethod method_none = {
This page took 0.030104 seconds and 4 git commands to generate.