/* no ticket good for longer than 30 days */
#define MAXKTCTICKETLIFETIME (30*24*3600)
#define MINKTCTICKETLEN 32
-#define MAXKTCTICKETLEN 4096 /* was 344 */
+#define MAXKTCTICKETLEN 12000 /* was 344 */
#define MAXKTCNAMELEN 64 /* name & inst should be 256 */
#define MAXKTCREALMLEN 64 /* should be 256 */
#define KTC_TIME_UNCERTAINTY (15*60) /* max skew bet. machines' clocks */
#define MAXRANDOMNAMELEN 16 /* length of random generated
- * usernames used by afslog for high
- * security must be < MAXKTCNAMELEN */
+ * usernames used by afslog for high
+ * security must be < MAXKTCNAMELEN && < MAXSMBNAMELEN */
+#define MAXSMBNAMELEN 256 /* max length of an SMB name */
+
#define LOGON_OPTION_INTEGRATED 1
#define LOGON_OPTION_HIGHSECURITY 2
#define RXKAD_TKT_TYPE_KERBEROS_V5 256
#define RXKAD_TKT_TYPE_KERBEROS_V5_ENCPART_ONLY 213
-#define MAXKRB5TICKETLEN 4096
+#define MAXKRB5TICKETLEN MAXKTCTICKETLEN
/*
* The AFS/DFS translator may also make use of additional ticket types in
char instance[MAXKTCNAMELEN];
char cell[MAXKTCREALMLEN];
#ifdef AFS_NT40_ENV
- char smbname[MAXRANDOMNAMELEN];
+ char smbname[MAXSMBNAMELEN];
#endif
};