Virtual user?

Asked by Manatsawin Hanmongkolchai

Can bzr do authentication with anything other than UNIX users? I don't want to create every real user for every commiter.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
John A Meinel
Solved:
Last query:
Last reply:
Revision history for this message
ViktorNagy (viktor-nagy) said :
#1

Sure, you can use the smart protocol with Apache as well, just set up Basic Auth (or whatever else you like) to access the wsgi script that serves bazaar.

Revision history for this message
Best John A Meinel (jameinel) said :
#2

You can also use a single ssh user, but use different auth keys for each actual user.

For example, you could have a "bzr" user, and people would connect as:
 bzr+ssh://bzr@host/path/to/branch

And each would have their own ssh key. And then the public keys would just be added to ~bzr/.ssh/authorized_keys

You can also look at the contrib/bzr_access script[1], which describes ways to set up a little bit of per-key access control. It isn't fine-grained, but you can at least setup readonly versus read-write.

[1] http://bazaar.launchpad.net/~bzr/bzr/trunk/annotate/3847?file_id=bzr_access-20071210163004-c9lb1renhra2ncg0-1

Revision history for this message
Manatsawin Hanmongkolchai (whs) said :
#3

Thanks John A Meinel, that solved my question.