List Info

Thread: Reuse of Bugzilla Authentication




Reuse of Bugzilla Authentication
user name
2007-06-13 01:33:06
Hi,

I have a system where I host a subversion repository, a
WebDAV server,
and of course, a Bugzilla instance.

I am reusing the Bugzilla accounts for authentication in
subversion
and WebDAV. In order to avoid problems with the ''
character in
account names, I have also added a field "login"
to the Profiles
table. (For example, my user name is
"jochen.wiedmannsoftwareag.com",
but my login is "jwi".) The login is used for
Basic authentication.

Is that of any interest to others?

Thanks,

Jochen

-- 
"Besides, manipulating elections is under penalty of
law, resulting in
a preventative effect against manipulating elections.

The german government justifying the use of electronic
voting machines
and obviously  believing that we don't need a police,
because all
illegal actions are forbidden.

http:/
/dip.bundestag.de/btd/16/051/1605194.pdf
-
To view or change your list settings, click here:
<http:
//bugzilla.org/cgi-bin/mj_wwwusr?user=bondyahoo.com>

Re: Reuse of Bugzilla Authentication
user name
2007-06-13 04:39:40
Jochen Wiedmann wrote on 6/13/07 2:33 AM:

> I am reusing the Bugzilla accounts for authentication
in subversion
> and WebDAV. In order to avoid problems with the ''
character in
> account names, I have also added a field
"login" to the Profiles
> table. (For example, my user name is
"jochen.wiedmannsoftwareag.com",
> but my login is "jwi".) The login is used for
Basic authentication.
> 
> Is that of any interest to others?

I think Bugzilla already has an equivalent to this...  a
column intended
to be used to map to userids on an external system... 
looking at the
schema, I think this is the "extern_id" column.

-- 
Dave Miller                                   http://www.justdave.net/

System Administrator, Mozilla Corporation      http://www.mozilla.com/
Project Leader, Bugzilla Bug Tracking System  http://www.bugzilla.org/

-
To view or change your list settings, click here:
<http:
//bugzilla.org/cgi-bin/mj_wwwusr?user=bondyahoo.com>

Re: Reuse of Bugzilla Authentication
user name
2007-06-13 05:43:50
On 6/13/07, David Miller <justdavebugzilla.org> wrote:

> I think Bugzilla already has an equivalent to this... 
a column intended
> to be used to map to userids on an external system... 
looking at the
> schema, I think this is the "extern_id"
column.

Thanks for the hint. But this isn't maintainable via the
GUI, is it?


-- 
"Besides, manipulating elections is under penalty of
law, resulting in
a preventative effect against manipulating elections.

The german government justifying the use of electronic
voting machines
and obviously  believing that we don't need a police,
because all
illegal actions are forbidden.

http:/
/dip.bundestag.de/btd/16/051/1605194.pdf
-
To view or change your list settings, click here:
<http:
//bugzilla.org/cgi-bin/mj_wwwusr?user=bondyahoo.com>

Re: Reuse of Bugzilla Authentication
user name
2007-06-13 08:53:49
Jochen Wiedmann wrote on 6/13/07 6:43 AM:
> On 6/13/07, David Miller <justdavebugzilla.org> wrote:
> 
>> I think Bugzilla already has an equivalent to
this...  a column intended
>> to be used to map to userids on an external
system...  looking at the
>> schema, I think this is the "extern_id"
column.
> 
> Thanks for the hint. But this isn't maintainable via
the GUI, is it?

Doesn't look like it currently.  That would probably be easy
to fix.
Right now it looks like it's only used Environment-based
auth, so if
your email on your external auth account changes Bugzilla
will
automatically fix its copy the next time you log in.

perldoc Bugzilla/Auth.pm shows this in the section about
$login_data_hash:

       "extern_id"
           Some string that uniquely identifies the user in
an external
           account source. If this "extern_id"
already exists in the
database
           with a different username, the username will be
*changed* to
be the
           username specified in this $login_data.

           That is, let's my extern_id is
"mkanat". I already have an
account
           in Bugzilla with the username of "mkanatfoo.com". But this time,
           when I log in, I have an extern_id of
"mkanat" and a
"username" of
           "mkanatbar.org". So now, Bugzilla will
automatically change my
           username to "mkanatbar.org" instead of
"mkanatfoo.com".


-- 
Dave Miller                                   http://www.justdave.net/

System Administrator, Mozilla Corporation      http://www.mozilla.com/
Project Leader, Bugzilla Bug Tracking System  http://www.bugzilla.org/

-
To view or change your list settings, click here:
<http:
//bugzilla.org/cgi-bin/mj_wwwusr?user=bondyahoo.com>

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )