Greetings list,[...]
Upon Kurt Bigler's insistance, I recently released the logindomainlist patch, which I feel is a decent improvement upon the previous domainmap patch.
I originally disliked the idea of incorporating the domainmap file's functionality into the already existing logindomainlist file, but the more I thought about it, the more I warmed up to it.
Now, I'd like to discuss the possibility of adding some MORE functionality by creating yet another SEPARATE file, maybe named 'defaultdomain' or similar.
This file would contain only one field and one record (one line). This singular record would specify the DEFAULT behavior for the logindomainlist file.
Currently, the default (if the logindomainlist file doesn't exist ), is to not display a drop down OR a hidden field. The user simply has to login with [EMAIL PROTECTED]
The defaultdomain file would allow administrators to specify a different default if it better suites their needs. A few default records I thought up and their meanings are listed below:
Value Meaning ---------- ------- allvirtual default to displaying a hidden field with the value of HTTP_HOST. This way, a server that runs all virtual domains wouldn't have to enter a separate record in the logindomainlist file for each domain. The logindomainlist would 'overload' or 'override' the default (which is to use HTTP_HOST as the login domain).
vpopmail default to setting the TCPLOCALIP environment variable to facilitate automatic vpopmail IP-alias domain support. This would require that IP-alias support is already compiled into vpopmail.
Can anyone think of anything else that might make a good default here?
I'm generally looking for feedback on the idea, and how many people would use it, and if anyone can think of a better way to implement it.
How about in the "MODIFIER" field of your current patch? In addition to a * you can have characters added.. *v would mean what * currently means, AND use vpopmail as the default, *a would use allvirtual as default, just straight v would be different, etc.. or however it's setup. All you need to do is check the modifiers one char at a time to see how to process that specific line.
Also make sure that if someone sets more than one default, then have it just use the first in the list in the given alias/group.
/jesse
