[1944] in Moira

home help back first fref pref prev next nref lref last post

Re: Moira Names

daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Tue Mar 19 16:21:14 2002

Message-Id: <200203192121.QAA01904@brad-majors.mit.edu>
To: "Danilo Almeida" <dalmeida@MIT.EDU>
cc: moiradev@MIT.EDU
In-Reply-To: Your message of "Tue, 19 Mar 2002 11:34:14 EST."
             <003401c1cf63$e831bc10$1b011212@mit.edu> 
Date: Tue, 19 Mar 2002 16:21:12 -0500
From: Garry Zacheiss <zacheiss@MIT.EDU>

	The information you want is sort of scattered around.  For
usernames, you want to reg_svr/reg_svr.pc:LOGN() to see what usernames
are accepted.  The rules are basically:

    - minimum of 3 characters long
    - first character must be alphabetic 
    - all remaining characters must be letters, numbers, or '_'
    - Username must be less than eight characters long.

The add_user_account query doesn't do this validation, although it does
check and disallow ", ?, *, \, [, and ].  See illegalchars[] in
server/qvalidate.pc, which is used for any query argv members that's
declared as type V_CHAR in queries2.c.

        For lists, you want to look at the array badlistchars in
server/qsetup.pc.

Garry

home help back first fref pref prev next nref lref last post