You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mukund <mu...@tessna.com> on 2003/07/28 09:49:06 UTC

About HTTP authentication and usernames

Hi all

A repository can be used with or without client authentication. When
clients are not authenticated, only reads can be performed and portions
of the repository are restricted from access. I am using
"SSLVerifyClient optional" with mod_ssl in Apache for this.

I would like to know opinions of people on this list about SSL client
authentication using X.509 certificates, and how information in these
certificates can be used with Subversion.

Recently, there was a post of an Apache module which'd let fields in the
DN to be used as the username. I am familiar with
+FakeBasicAuthentication in mod_ssl in Apache.

1. Does Subversion support usernames with the format "user@domain.com"
(without the quotes)? With this I would assume one can use the Email
portion of the Subject DN to act as a username.

2. I am familar with the StrongExtranet feature of Thawte. There's a
module in the mod_ssl distribution (at www.modssl.org for Apache 1.3.xx)
called sxnet.tar written by Thawte which uses an extra OID to contain
usernames and other info. Can any users who are familar with such
describe the best way in their opinion to use information in the
certificate as usernames?


Mukund


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: About HTTP authentication and usernames

Posted by "Martin v. Löwis" <ma...@v.loewis.de>.
Mukund <mu...@tessna.com> writes:

> I am testing using SSL_CLIENT_S_DN_Email, as we can keep things as
> they are. user@domain.com apparently works with Subversion, so this
> should be a good situation. 
> 
> If you are to update mod_ssl_user in any way, please keep me posted.

There is a pending patch on apache.org,

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20957

So far, the mod_ssl maintainers have not reacted to that patch.

Regards,
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: About HTTP authentication and usernames

Posted by Mukund <mu...@tessna.com>.
On Mon, Jul 28, 2003 at 10:41:55PM +0200, Martin v. Löwis wrote:
| Certainly. Any string can be used as the author. We use
| SSL_CLIENT_S_DN_CN, but using SSL_CLIENT_S_DN_Email would work just as
| well.

Hi Martin

I am testing using SSL_CLIENT_S_DN_Email, as we can keep things as
they are. user@domain.com apparently works with Subversion, so this
should be a good situation. 

If you are to update mod_ssl_user in any way, please keep me posted.

Mukund


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: About HTTP authentication and usernames

Posted by "Martin v. Löwis" <ma...@v.loewis.de>.
Mukund <mu...@tessna.com> writes:

> I would like to know opinions of people on this list about SSL client
> authentication using X.509 certificates, and how information in these
> certificates can be used with Subversion.

We are using X.509 client certificates, with an option for users to
use basic authentication should they not have their certificate
available.

> Recently, there was a post of an Apache module which'd let fields in the
> DN to be used as the username. I am familiar with
> +FakeBasicAuthentication in mod_ssl in Apache.

Yes, this is my module. It works very nicely.

> 1. Does Subversion support usernames with the format "user@domain.com"
> (without the quotes)? With this I would assume one can use the Email
> portion of the Subject DN to act as a username.

Certainly. Any string can be used as the author. We use
SSL_CLIENT_S_DN_CN, but using SSL_CLIENT_S_DN_Email would work just as
well.

Regards,
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: About HTTP authentication and usernames

Posted by Mukund <mu...@tessna.com>.
I have looked at several different ways of solving this matter, and the
Thawte way of using an assigned OID extension seems to be the most
elagant. This way the same username on a personal certificate can be used
for authentication with other services as well, which may not accept
usernames outside the interpretation of what's commonly assumed, i.e.,
other services may not accept usernames like user@domain.com or a full
Subject DN. The Subject DN also can default to whatever it wants to be
regardless of the extension.

For your reference, for anyone else facing this situation, IANA offers a
free registration service for object identifiers --
http://www.iana.org/cgi-bin/enterprise.pl

I still want to hear opinions of people on the list.

Mukund


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org