[dev] Re: [cvs] commit: horde/config hooks.php.dist

Michael M Slusarz slusarz@bigworm.colorado.edu
Mon Nov 25 00:49:54 2002


Quoting Chuck Hagenbuch <chuck@horde.org>:

| But it sounds like you might be using realms unnecessarily, and my point
| was
| that it might _cause_ heartache for people who actually have valid
| full-email usernames.

Point taken.  But the example provided uses posix_getpwnam(), which won't 
work unless the user is local, so the current example function in hooks.php 
won't work with realm_based email addresses without the code.

I have a setup where my computer is hosting virtual domains, but the 
usernames are unique across the domains.  Thus, I _want_ to strip off the 
domain/realm information.

If you have multiple domains with unique users or a non-local setup, 
obviously the example function is not going to work for you, no way no how. 
(Maybe there should be a note about that in the example function)  But that 
shouldn't prevent us from altering the current function to ensure that it 
works.

Did that convince you :)

michael

______________________________________________
Michael Slusarz [slusarz@bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the dev mailing list