RE: [vchkpw] limit length of vpop account?

2004-06-18 Thread Christian Reeves
> > 2- Is it possible to set a max char. length limit for 
> vpopmail accounts?
> > Would this be better implemented/enforced with frontend 
> scripting to 
> > check the lengh before even calling 'vadduser'?
> 
> Change vpopmail.h. The API calls and associated programs will 
> return an error if the lenghts are exceeded. Might as well 
> use the built in error checking.

While on the subject. Is it possible to make requirements on passwords
(requiring at least one digit...etc to ensure stronger passwords). I hate to
babysit users as much as anyone but if it's a simple feature to implement, I
think it's worth it. Most people should be used to this type of req.
nowadays anyway.
Thanks again!
Christian



RE: [vchkpw] limit length of vpop account?

2004-06-18 Thread Christian Reeves
> The lengths are defined in vpopmail.h
> #define MAX_PW_NAME 32
> #define MAX_PW_DOMAIN   64
> 
> By default the max user name is 32 chars (might be 31 with 
> the trailing null) and max domain name is 64. You can change 
> those to whatever you want before compiling.

Great, I see the other limits in vpopmail.h as well. Thanks!



Re: [vchkpw] limit length of vpop account?

2004-06-18 Thread Ken Jones
On Friday 18 June 2004 07:36 am, Christian Reeves wrote:
> I recently moved from a system account based setup to vpopmail for my
> primary domain. I'm in the practice of keeping system accounts limited to 8
> characters.
>
> Questions:
> 1 - Since I'm now using vpopmail (no system accounts), are there any
> vpopmail gotchas in allowing longer usernames? Granted,
> "[EMAIL PROTECTED]" may be a bit extravagant, but is it bad
> practice in any way?.

The lengths are defined in vpopmail.h
#define MAX_PW_NAME 32
#define MAX_PW_DOMAIN   64

By default the max user name is 32 chars (might be 31 with the trailing null)
and max domain name is 64. You can change those to whatever you want
before compiling.

>
> 2- Is it possible to set a max char. length limit for vpopmail accounts?
> Would this be better implemented/enforced with frontend scripting to check
> the lengh before even calling 'vadduser'?

Change vpopmail.h. The API calls and associated programs will return an
error if the lenghts are exceeded. Might as well use the built in error 
checking.

Ken Jones