comparison auth.h @ 1539:51df3d53b050

- Don't try to handle changed usernames - Avoid logging repeated failed username messages
author Matt Johnston <matt@ucc.asn.au>
date Mon, 26 Feb 2018 22:07:18 +0800
parents 06d52bcb8094
children 5d2d1021ca00
comparison
equal deleted inserted replaced
1538:f20038b513a5 1539:51df3d53b050
103 char *username; /* This is the username the client presents to check. It 103 char *username; /* This is the username the client presents to check. It
104 is updated each run through, used for auth checking */ 104 is updated each run through, used for auth checking */
105 unsigned char authtypes; /* Flags indicating which auth types are still 105 unsigned char authtypes; /* Flags indicating which auth types are still
106 valid */ 106 valid */
107 unsigned int failcount; /* Number of (failed) authentication attempts.*/ 107 unsigned int failcount; /* Number of (failed) authentication attempts.*/
108 unsigned authdone : 1; /* 0 if we haven't authed, 1 if we have. Applies for 108 unsigned int authdone; /* 0 if we haven't authed, 1 if we have. Applies for
109 client and server (though has differing 109 client and server (though has differing
110 meanings). */ 110 meanings). */
111 unsigned perm_warn : 1; /* Server only, set if bad permissions on 111 unsigned int perm_warn; /* Server only, set if bad permissions on
112 ~/.ssh/authorized_keys have already been 112 ~/.ssh/authorized_keys have already been
113 logged. */ 113 logged. */
114 unsigned int checkusername_failed; /* Server only, set if checkusername
115 has already failed */
114 116
115 /* These are only used for the server */ 117 /* These are only used for the server */
116 uid_t pw_uid; 118 uid_t pw_uid;
117 gid_t pw_gid; 119 gid_t pw_gid;
118 char *pw_dir; 120 char *pw_dir;