[Midnightbsd-cvs] src [6605] trunk/sys/sys/param.h: increase maximum username size to 32 characters.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Jan 22 19:13:00 EST 2014


Revision: 6605
          http://svnweb.midnightbsd.org/src/?rev=6605
Author:   laffer1
Date:     2014-01-22 19:12:59 -0500 (Wed, 22 Jan 2014)
Log Message:
-----------
increase maximum username size to 32 characters. This is already the case for utmpx.h. This improves compatibility with samba and active directory domains as they include DOMAIN/username

Modified Paths:
--------------
    trunk/sys/sys/param.h

Modified: trunk/sys/sys/param.h
===================================================================
--- trunk/sys/sys/param.h	2014-01-16 01:49:42 UTC (rev 6604)
+++ trunk/sys/sys/param.h	2014-01-23 00:12:59 UTC (rev 6605)
@@ -89,7 +89,7 @@
 
 #define	MAXCOMLEN	19		/* max command name remembered */
 #define	MAXINTERP	PATH_MAX	/* max interpreter file name length */
-#define	MAXLOGNAME	17		/* max login name length (incl. NUL) */
+#define	MAXLOGNAME	33		/* max login name length (incl. NUL) */
 #define	MAXUPRC		CHILD_MAX	/* max simultaneous processes */
 #define	NCARGS		ARG_MAX		/* max bytes for an exec function */
 #define	NGROUPS		(NGROUPS_MAX+1)	/* max number groups */



More information about the Midnightbsd-cvs mailing list