You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Wong Kok Meng-a17866 <ko...@motorola.com> on 2009/08/13 07:59:44 UTC

[users@httpd] How to configure a username with colon?

Hi,

I am using Apache 2.0 webserver that comes with Fedora. I enabled HTTP
digest authentication on my webserver by following the steps in
http://httpd.apache.org/docs/2.0/mod/mod_auth.html. It works well with
username without colon. If I have a colon in the username, it doesn't
work. I think the reason is because colons are used as delimiter in the
user file. I tried to percent encode but it still doesn't work.

Is there a way I can have ':' (colon) in my username? Please help. Thank
you very much.

Regards,
Kok Meng

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] How to configure a username with colon?

Posted by matt farey <ma...@gmail.com>.
Hi Wong,

You can have : in the password but not in the userID, see RFC2617:

userid      = *<TEXT excluding ":">
password    = *TEXT

So by using an encoding hack, you are of course no longer including a : in the userID

Hope that makes sense.

Matt
Sent from my BlackBerry® wireless device

-----Original Message-----
From: "Wong Kok Meng-a17866" <ko...@motorola.com>

Date: Thu, 13 Aug 2009 13:59:44 
To: <us...@httpd.apache.org>
Subject: [users@httpd] How to configure a username with colon?

Hi,

I am using Apache 2.0 webserver that comes with Fedora. I enabled HTTP
digest authentication on my webserver by following the steps in
http://httpd.apache.org/docs/2.0/mod/mod_auth.html. It works well with
username without colon. If I have a colon in the username, it doesn't
work. I think the reason is because colons are used as delimiter in the
user file. I tried to percent encode but it still doesn't work.

Is there a way I can have ':' (colon) in my username? Please help. Thank
you very much.

Regards,
Kok Meng

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] How to configure a username with colon?

Posted by Evan Platt <ev...@espphotography.com>.
At 10:59 PM 8/12/2009, you wrote:
>I am using Apache 2.0 webserver that comes with Fedora. I enabled HTTP
>digest authentication on my webserver by following the steps in
>http://httpd.apache.org/docs/2.0/mod/mod_auth.html. It works well with
>username without colon. If I have a colon in the username, it doesn't
>work. I think the reason is because colons are used as delimiter in the
>user file. I tried to percent encode but it still doesn't work.
>
>Is there a way I can have ':' (colon) in my username? Please help. Thank
>you very much.

I may be way off here, but how about:

"user:name:password" => "user%3Aname:password"

(ie replace : with %3A ? )

Not sure if you'd use the quotes or not - this was from a google 
search I found.

Evan


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org