Re: Bugzilla secure LDAP authentication?

classic Classic list List threaded Threaded
19 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla secure LDAP authentication?

Marc Schumann
https://bugzilla.mozilla.org/show_bug.cgi?id=216902

On 11 May 2005 16:23:34 -0700, [hidden email] <[hidden email]> wrote:
> I'm setting up bugzilla and it would be really nice to use my already
> configured and working LDAP database to authenticate users.  However, I
> can't find anything about configuring bugzilla to make secure LDAP
> connections, and I don't want to enable non-secure connections on the
> LDAP server.

--
http://wurblzap.net/
Bugzilla hosting and professional support

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Bugzilla Customization

vrayudu
Hello All,

I want to use bugzilla for Issue Tracking rather than Bug Tracking. So we
thought of customizing bugzilla.

These are the Fields I want to remove from the page ( Version ,Resolution,
HardWare and OS )

I am able to remove/comment  the code in

C:\Bugzilla\data\template\template\en\default\search\form.html.tmpl

   #$output .=  $context->process('select', { 'sel' => { 'name' =>
'resolution', 'size' => 7, 'accesskey' => 'r'  } });
    $output .=  "\n        </tr>\n      </table>\n    </td>\n    <td>\n
<table>\n        <tr>\n          <th align=\"left\">S<u>e</u>verity:</th>\n
</tr>\n        <tr valign=\"top\">";
    #line 586 "template\en\default\search\form.html.tmpl"
    $output .=  $context->process('select', { 'sel' => { 'name' =>
'bug_severity', 'size' => 7, 'accesskey' => 'e'  } });
    $output .=  "\n        </tr>\n      </table>\n    </td>\n    <td>\n
<table>\n        <tr>\n          <th align=\"left\">Pr<u>i</u>ority:</th>\n
</tr>\n        <tr valign=\"top\">";
    #line 599 "template\en\default\search\form.html.tmpl"
    $output .=  $context->process('select', { 'sel' => { 'name' =>
'priority', 'size' => 7, 'accesskey' => 'i'  } });
    $output .=  "\n        </tr>\n      </table>\n    </td>\n    <td>\n
<table>\n        <tr>\n          <th align=\"left\"> </th>\n        </tr>\n
<tr valign=\"top\">";
    #line 612 "template\en\default\search\form.html.tmpl"
    #$output .=  $context->process('select', { 'sel' => { 'name' =>
'rep_platform', 'size' => 7, 'accesskey' => 'h'  } });
    $output .=  "\n        </tr>\n      </table>\n    </td>\n    <td>\n
<table>\n        <tr>\n          <th align=\"left\"> </th>\n        </tr>\n
<tr valign=\"top\">";
    #line 625 "template\en\default\search\form.html.tmpl"
    #$output .=  $context->process('select', { 'sel' => { 'name' =>
'op_sys', 'size' => 7, 'accesskey' => 'o'  } });
    $output .=  "\n        </tr>\n      </table>\n    </td>\n
</tr>\n</table>\n\n<p>\n\n";
    $output .=  "\n\n<table>\n  <tr>\n    <td>\n      <fieldset>\n
<legend>\n          <strong>\n            Email and Numbering\n
</strong>\n        </legend>\n\n\n<table>\n  <tr>";


C:\Bugzilla\data\template\template\en\default\bug\create\create.html.tmpl

    #$output .=  "\n      </select>\n    </td>\n  </tr>\n\n  <tr>\n
<td>&nbsp;</td>\n    <td colspan=\"3\"></td>\n  </tr>\n\n  <tr>";
    #line 149 "template\en\default\bug\create\create.html.tmpl"
    #$stash->set('sel', { 'description' => 'Platform', 'name' =>
'rep_platform'  });

    #line 149 "template\en\default\bug\create\create.html.tmpl"
   # $output .=  $context->include('select');
    $output .=  "\n";
    #line 152 "template\en\default\bug\create\create.html.tmpl"
   # $stash->set('sel', { 'description' => 'OS', 'name' => 'op_sys'  });

    #line 152 "template\en\default\bug\create\create.html.tmpl"
   # $output .=  $context->include('select');

But when I try to enter a bug, getting error  like OS has not set /Version
is not set /Platform is not set....

Can any one tell me what are the other places I have to modify these files
so that It won't check for OS/Version/Platform

Thanks in Advance,
Vijay.




_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla Customization

Gervase Markham
Vijay Rayudu wrote:
> But when I try to enter a bug, getting error  like OS has not set /Version
> is not set /Platform is not set....

You have to set these values. So set default values in a hidden form field.

Gerv
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla secure LDAP authentication?

ISTech
In reply to this post by Marc Schumann
Thanks.

Rob Shelley

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

RE: Bugzilla Customization

vrayudu
In reply to this post by Gervase Markham
Thanks Gervase Markham.

My requirement is to remove Version, Resolution, Platform and OS from the
pages. Am able to do that by commenting the code, bt when I tried to enter a
bug after commenting only "Version" I got this error.

Internal Error

Bugzilla has suffered an internal error. Please save this page and send it
to THE MAINTAINER HAS NOT YET BEEN SET with details of what you were doing
at the time this message appeared.
URL: http://localhost/post_bug.cgi

"A legal Version was not set. "

Gervase:

I need to give default values to hidden variables bt in this
create.html.tmpl  file I could't able to find the hidden variable pointing
to Version.

Can you tell me what are the changes I need to make??

Thanks in Advance.

Regards,
Vijay.



-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of Gervase Markham
Sent: Thursday, May 12, 2005 7:34 PM
To: [hidden email]
Subject: Re: Bugzilla Customization

Vijay Rayudu wrote:
> But when I try to enter a bug, getting error  like OS has not set /Version
> is not set /Platform is not set....

You have to set these values. So set default values in a hidden form field.

Gerv
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla Customization

Marc Schumann
Vijay,

On 5/13/05, Vijay Rayudu <[hidden email]> wrote:
> My requirement is to remove Version, Resolution, Platform and OS from the
> pages. Am able to do that by commenting the code, bt when I tried to enter a
> bug after commenting only "Version" I got this error.

what Gerv is saying that you should not comment the form field, but
replace it by a hidden form field.

   Regards
      Marc

--
http://wurblzap.net/
Bugzilla hosting and professional support

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

RE: Bugzilla Customization

vrayudu
Hi Marc,

Thanks for Ur prompt reply.

I don't have Perl knowledge bt have programming knowledge (java  &
javascript) . Can you put the code snipplet...for the "version " field  so
that I can do modifications to the Resolution/Platform/OS Fields.

Regards,
Vijay.




-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of Marc Schumann
Sent: Friday, May 13, 2005 2:48 PM
To: [hidden email]
Subject: Re: Bugzilla Customization

Vijay,

On 5/13/05, Vijay Rayudu <[hidden email]> wrote:
> My requirement is to remove Version, Resolution, Platform and OS from the
> pages. Am able to do that by commenting the code, bt when I tried to enter
a
> bug after commenting only "Version" I got this error.

what Gerv is saying that you should not comment the form field, but
replace it by a hidden form field.

   Regards
      Marc

--
http://wurblzap.net/
Bugzilla hosting and professional support

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla Customization

Marc Schumann
http://groups.google.com/groups?hl=de&lr=&q=remove+field+hidden&btnG=Suche&meta=group%3Dnetscape.public.mozilla.webtools

On 5/13/05, Vijay Rayudu <[hidden email]> wrote:
> I don't have Perl knowledge bt have programming knowledge (java  &
> javascript) . Can you put the code snipplet...for the "version " field  so
> that I can do modifications to the Resolution/Platform/OS Fields.

--
http://wurblzap.net/
Bugzilla hosting and professional support

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

RE: Bugzilla Customization

vrayudu
Hi Marc,

    [% sel = { description => 'Platform', name => 'rep_platform' } %]
    [% INCLUDE select %]

From the code above removed the line   [% INCLUDE select %]  from
C:\Bugzilla\template\en\default\bug\create\create.html.tmpl
file and added this line

<input type="hidden" name="rep_platform" value="win">

just before the </form>

Still getting this error

A legal Platform was not set.

Did I make any mistake????







-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of Marc Schumann
Sent: Friday, May 13, 2005 3:10 PM
To: [hidden email]
Subject: Re: Bugzilla Customization

http://groups.google.com/groups?hl=de&lr=&q=remove+field+hidden&btnG=Suche&m
eta=group%3Dnetscape.public.mozilla.webtools

On 5/13/05, Vijay Rayudu <[hidden email]> wrote:
> I don't have Perl knowledge bt have programming knowledge (java  &
> javascript) . Can you put the code snipplet...for the "version " field  so
> that I can do modifications to the Resolution/Platform/OS Fields.

--
http://wurblzap.net/
Bugzilla hosting and professional support

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla Customization

Marc Schumann
Vijay,

On 5/13/05, Vijay Rayudu <[hidden email]> wrote:

>     [% sel = { description => 'Platform', name => 'rep_platform' } %]
>     [% INCLUDE select %]
>
> From the code above removed the line   [% INCLUDE select %]  from
> C:\Bugzilla\template\en\default\bug\create\create.html.tmpl
> file and added this line
>
> <input type="hidden" name="rep_platform" value="win">
>
> just before the </form>
>
> Still getting this error
>
> A legal Platform was not set.
>
> Did I make any mistake????

yes -- "win" is indeed not a legal platform. If you have a 2.19.2 (?)
Bugzilla, refer to editvalues.cgi?field=rep_platform for legal
platform values (see the "Field values" link in the Bugzilla footer).
If you have an earlier Bugzilla, legal values are in the localconfig
file in the Bugzilla directory (look for @platforms).

   Regards
      Marc

--
http://wurblzap.net/
Bugzilla hosting and professional support

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

RE: Bugzilla Customization

vrayudu
Hi Marc,

It worked fine. Thanks a lot.

Bt for the version field is this the way to set the version filed.

Remove this code:

  <td align="right" valign="top">
      <strong>Version:</strong>
    </td>
    <td>
      <select name="version" size="5">
        [%- FOREACH v = version %]
          <option value="[% v FILTER html %]"
            [% " selected=\"selected\"" IF v == default.version %]>[% v
FILTER html -%]
          </option>
        [%- END %]
      </select>
    </td>

and added this line..

<input type="hidden" name="version" value="D-BUILD.3.0">

Is there any legal values for the version..???




-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of Marc Schumann
Sent: Friday, May 13, 2005 3:56 PM
To: [hidden email]
Subject: Re: Bugzilla Customization

Vijay,

On 5/13/05, Vijay Rayudu <[hidden email]> wrote:

>     [% sel = { description => 'Platform', name => 'rep_platform' } %]
>     [% INCLUDE select %]
>
> From the code above removed the line   [% INCLUDE select %]  from
> C:\Bugzilla\template\en\default\bug\create\create.html.tmpl
> file and added this line
>
> <input type="hidden" name="rep_platform" value="win">
>
> just before the </form>
>
> Still getting this error
>
> A legal Platform was not set.
>
> Did I make any mistake????

yes -- "win" is indeed not a legal platform. If you have a 2.19.2 (?)
Bugzilla, refer to editvalues.cgi?field=rep_platform for legal
platform values (see the "Field values" link in the Bugzilla footer).
If you have an earlier Bugzilla, legal values are in the localconfig
file in the Bugzilla directory (look for @platforms).

   Regards
      Marc

--
http://wurblzap.net/
Bugzilla hosting and professional support

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

RE: Bugzilla Customization

vrayudu
Marc,

Modified the code like this
<td>
        [%- FOREACH v = version %]
            [% " selected=\"selected\"" IF v == default.version %]>[% v
FILTER html -%]
        [%- END %]
    </td>

and also the hidden value..It's working fine.

Thanks a lot for ur help & ur patience. U save lots of time for me...



-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of Vijay Rayudu
Sent: Friday, May 13, 2005 4:18 PM
To: Marc Schumann; [hidden email]
Subject: RE: Bugzilla Customization

Hi Marc,

It worked fine. Thanks a lot.

Bt for the version field is this the way to set the version filed.

Remove this code:

  <td align="right" valign="top">
      <strong>Version:</strong>
    </td>
    <td>
      <select name="version" size="5">
        [%- FOREACH v = version %]
          <option value="[% v FILTER html %]"
            [% " selected=\"selected\"" IF v == default.version %]>[% v
FILTER html -%]
          </option>
        [%- END %]
      </select>
    </td>

and added this line..

<input type="hidden" name="version" value="D-BUILD.3.0">

Is there any legal values for the version..???




-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of Marc Schumann
Sent: Friday, May 13, 2005 3:56 PM
To: [hidden email]
Subject: Re: Bugzilla Customization

Vijay,

On 5/13/05, Vijay Rayudu <[hidden email]> wrote:

>     [% sel = { description => 'Platform', name => 'rep_platform' } %]
>     [% INCLUDE select %]
>
> From the code above removed the line   [% INCLUDE select %]  from
> C:\Bugzilla\template\en\default\bug\create\create.html.tmpl
> file and added this line
>
> <input type="hidden" name="rep_platform" value="win">
>
> just before the </form>
>
> Still getting this error
>
> A legal Platform was not set.
>
> Did I make any mistake????

yes -- "win" is indeed not a legal platform. If you have a 2.19.2 (?)
Bugzilla, refer to editvalues.cgi?field=rep_platform for legal
platform values (see the "Field values" link in the Bugzilla footer).
If you have an earlier Bugzilla, legal values are in the localconfig
file in the Bugzilla directory (look for @platforms).

   Regards
      Marc

--
http://wurblzap.net/
Bugzilla hosting and professional support

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Bugzilla Customization

Gervase Markham
In reply to this post by vrayudu
Vijay Rayudu wrote:
> I need to give default values to hidden variables bt in this
> create.html.tmpl  file I could't able to find the hidden variable pointing
> to Version.

You need <input type="hidden" name="version" value="<whatever>">

Gerv
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Two instances of bugzilla

vrayudu
Can customize two instances of bugzilla on one machine????

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Two instances of bugzilla

Gervase Markham
Vijay Rayudu wrote:
> Can customize two instances of bugzilla on one machine????

Yes, but you should think very hard before setting up two instances of
Bugzilla. It almost always leads to pain in the long run.

Gerv
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Two instances of bugzilla

vrayudu
Thanks Gervase...How can i achieve this???
Gervase Markham writes:

> Vijay Rayudu wrote:
>> Can customize two instances of bugzilla on one machine????
>
> Yes, but you should think very hard before setting up two instances of
> Bugzilla. It almost always leads to pain in the long run.
>
> Gerv
> _______________________________________________
> mozilla-webtools mailing list
> [hidden email]
> http://mail.mozilla.org/listinfo/mozilla-webtools
 

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Two instances of bugzilla

Gervase Markham
In reply to this post by Gervase Markham
Vijaya Kumar Rayudu wrote:
> Thanks Gervase...How can i achieve this???

Install them in separate directories, with separate database names, and
run them on separate ports. That's all you need, I think.

Gerv
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Two instances of bugzilla

Gervase Markham
Gervase Markham wrote:
> Vijaya Kumar Rayudu wrote:
>
>> Thanks Gervase...How can i achieve this???
>
> Install them in separate directories, with separate database names, and
> run them on separate ports. That's all you need, I think.

Sorry - that should have said "separate ports, or at different URLs".

Gerv
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Two instances of bugzilla

Peter Kay
In reply to this post by Gervase Markham
Vijaya Kumar Rayudu wrote:
> Thanks Gervase...How can i achieve this???

Put them in different directories (that's what I did).  (I was using
them for radically different things - one was a log, one was Bugzilla).

So //mysite/bugs/ is bugzilla 1 in /var/www/bugs, and
//mysite/other/ is bugzilla 2 in /var/www/other.

One thing to make sure you do:  Change the cookie path for each of them
- make one of them /bugs/ and the other /other/.  That caused me no end
of greif.  :d

--Peter
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools