Reduce some code duplication
Stephen Gran
steve at lobefin.net
Thu Jan 13 20:56:46 CET 2011
On Thu, Jan 13, 2011 at 07:21:37PM +0100, Jochen Bern said:
> On 01/13/2011 04:52 PM, Stephen Gran wrote:
> > On Thu, Jan 13, 2011 at 02:58:01PM +0100, Andreas Ericsson said:
> >> I wonder what happens when eu-admins is both a user
> >> (from the apache view of things) as well as a contactgroup, but not a
> >> contact. That's one of the things that absolutely has to keep working,
> >> or a lot of people's setups will break.
> > I was planning to use a marker to specify that it is a group, whether %
> > like sudo or @ like many other things
>
> 1. Both "%" and "@" are legal separators for e-mail addresses, which are
> getting more and more popular as "usernames" for all sorts of web UI
> logins. I doubt they're safe to forcefully overload, even as
> username[0].
> 2. I don't think that there's *any* printable character which is prima
> facie illegal in Basic Auth usernames. Not even the "," (and "="?)
> that cgi.cfg sets aside as its separator char(s).
> 3. Suggestion: Make the marker configurable (so that admins can work
> around odd username[0]s already in use), with setting it to '\0' or
> somesuch effectively disabling the new feature (for the rare cases
> where the user base took pride in having really *every* printable
> character covered ;-).
I tend to agree - I'm not wedded to either of % or @ (or any other
marker in particular), but was interested in keeping the footprint of
the patch small.
Cheers,
--
--------------------------------------------------------------------------
| Stephen Gran | A real person has two reasons for doing |
| steve at lobefin.net | anything ... a good reason and the real |
| http://www.lobefin.net/~steve | reason. |
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20110113/72fa0663/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list