On Apr 7, 2009, at 20:00, Andrey Repin wrote:
> Greetings, petesea_at_bigfoot.com!
>
>> Does SVN support the use of a username within an https:// URL?
>
>> In other words, say I'm logged into a workstation with the
>> username "bozo"
>> and I run the following command:
>
>> $ svn info svn+ssh://bclown@svn.example.com/repo
>
> It is not SVN, it is SSH works with username suppled in URL.
It's not an unreasonable request though. Web browsers work with
usernames inside the http/https URL too.
>> It works fine. I can contact the SVN server as "bclown", which is my
>> username on that server. But, if I try to contact the server using
>> https:// instead of svn+ssh://...
>
>> $ svn info https://bclown@svn.example.com/repo
>
>> I get prompted for the password for user "bozo"... NOT user
>> "bclown", eg:
>
>> $ svn info https://bclown@svn.example.com/repo
>> Authentication realm: <https://svn.example.com:443> Example Repo
>> Password for 'bozo':
>
>> I realize I can use the --username option, but --username doesn't
>> work
>> with svn+ssh://, which means I need to use 2 different methods to
>> specify
>> the username.
>
>> Is there a particular reason svn doesn't support a username as
>> part of the
>> URL with https:// or is there something wrong with my Apache setup
>> which
>> is preventing it from working?
>
> Better stick to one way of accessing SVN on single host, unless
> there's
> something special about it.
Why? Using multiple access methods for a single repository is
allowed, and even described in the book. Yes, it's more work to set
up correctly and there are some issues to be aware of, but it
shouldn't be prohibited outright.
http://svnbook.red-bean.com/en/1.5/svn.serverconfig.multimethod.html
> As I said, it's not SVN working with URL when you connecting
> through SSH.
> When SVN doing authorization by itself, it storing credentials in
> user area,
> so you do not need to enter username next time you accessing the same
> repository.
> You should really read svnbook, I do not have time to retype whole
> chapters
> from it in a single message.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1589366
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-08 06:10:07 CEST