[pmwiki-users] FYI: htpasswd/htgroup and spaces in user/group ids
dominique.faure at gmail.com
Thu Oct 5 04:23:22 CDT 2006
Looking to the recent .htgroup-formatted file for authorization groups
handling introduced in v2.1.24, I noticed that:
* Only single worded groupids are handled.
* Groups can only contain indifferently space or comma separated user
ids, aka single words.
Remembering your response  to the space in user ids problem, I was
wondering how Apache was handling that.
Digging in the source code[2-3], I found that:
* The group and user names handled by Apache may be defined with the
regexp: /[^:]+/ (aka any char except two-colons which acts as field
* The group definition itself handles this by allowing userids to be
space separated words or (single ou double) quoted strings (containing
eventually backslash-escaped quotes). BTW, this is not clearly stated
(nor documented) whereas commas are allowed or not as separator.
>From apache source code:
 httpd-2.2.3/server/util.c[ap_getword, ap_getword_conf]
More information about the pmwiki-users