Re: [Trac] Forbidden error after Trac instance logoff | Trac 1.6

Venu Pillai <[email protected]> Wed, 25 Feb 2026 07:34:50 -0800 (PST)
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <[email protected]>
------=_Part_925288_329834136.1772033690841
Content-Type: multipart/alternative; 
	boundary="----=_Part_925289_1854159853.1772033690841"

------=_Part_925289_1854159853.1772033690841
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Additionally, to my previous mail.
One observation:
The home /First page shows Error: forbidden
When click on login. I type my AD credentials its works. No errors.
When i logout, it reverts back to home page and shows Error: Forbidden

On Wednesday, 25 February 2026 at 15:57:59 UTC+5:30 Venu Pillai wrote:

> Copied the .py file in below path
>
> #ls /usr/local/lib/python3.12/site-packages/tracopt/perm
>
> authz_policy.py  authz_policy.py.old  config_perm_provider.py =20
> __init__.py  __pycache__
>
> =20
>
> Restarted the service
>
> =20
>
> Same issue.
>
> I am attaching the Trac.ini and debug file
>
> On Wednesday, 25 February 2026 at 13:07:46 UTC+5:30 Jun Omae wrote:
>
>> > Added the permission_policies =3D=20
>> AuthzSourcePolicy,DefaultWikiPolicy,DefaultTicketPolicy,DefaultPermissio=
nPolicy,LegacyAttachmentPolicy=20
>> in Trac.ini=20
>>
>> AuthzPolicy should be added.=20
>> See=20
>> https://trac.edgewall.org/intertrac/source:/branches/1.6-stable/tracopt/=
perm/authz_policy.py=20
>>
>> If not fixed yet, please share entire of your trac.ini and trac.log=20
>> after enabling logging with DEBUG level and reproducing it.=20
>>
>> On Wed, Feb 25, 2026 at 2:46=E2=80=AFPM Venu Pillai <[email protected]>=
 wrote:=20
>> >=20
>> > Hi chris,=20
>> > Added the permission_policies =3D=20
>> AuthzSourcePolicy,DefaultWikiPolicy,DefaultTicketPolicy,DefaultPermissio=
nPolicy,LegacyAttachmentPolicy=20
>> in Trac.ini=20
>> > Restarted the service.=20
>> > Still the same issue. I can successfully login to trac instance create=
=20
>> ticket, view ticket etc. After logout it should go back to login page? b=
ut=20
>> here after logoff it give forbidden error depend upon that last I h=20
>> > I have attached the error.=20
>>
>>
>> --=20
>> Jun Omae <[email protected]> (=E5=A4=A7=E5=89=8D =E6=BD=A4)=20
>>
>

--=20
You received this message because you are subscribed to the Google Groups "=
Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion visit https://groups.google.com/d/msgid/trac-users/=
b2d52381-3099-4e16-8dbb-059385cf44c4n%40googlegroups.com.

------=_Part_925289_1854159853.1772033690841
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Additionally, to my previous mail.<br />One observation:<div>The home /Firs=
t page shows Error: forbidden</div><div>When click on login. I type my AD c=
redentials its works. No errors.</div><div>When i logout, it reverts back t=
o home page and shows Error: Forbidden</div><div><br /></div><div class=3D"=
gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">On Wednesday, 25 Februa=
ry 2026 at 15:57:59 UTC+5:30 Venu Pillai wrote:<br/></div><blockquote class=
=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid rgb(2=
04, 204, 204); padding-left: 1ex;"><p>Copied the .py file in below path</p>

<p>#ls /usr/local/lib/python3.12/site-packages/tracopt/perm</p>

<p>authz_policy.py=C2=A0
authz_policy.py.old=C2=A0
config_perm_provider.py=C2=A0
__init__.py=C2=A0 __pycache__</p>

<p>=C2=A0</p>

<p>Restarted the service</p>

<p>=C2=A0</p>

<p>Same issue.</p>

<p>I am attaching the Trac.ini and debug file</p><br><div class=3D"gmail_qu=
ote"><div dir=3D"auto" class=3D"gmail_attr">On Wednesday, 25 February 2026 =
at 13:07:46 UTC+5:30 Jun Omae wrote:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex">&gt; Added the permission_policies =3D AuthzSourcePolicy,Def=
aultWikiPolicy,DefaultTicketPolicy,DefaultPermissionPolicy,LegacyAttachment=
Policy in Trac.ini
<br>
<br>AuthzPolicy should be added.
<br>See <a href=3D"https://trac.edgewall.org/intertrac/source:/branches/1.6=
-stable/tracopt/perm/authz_policy.py" rel=3D"nofollow" target=3D"_blank" da=
ta-saferedirecturl=3D"https://www.google.com/url?hl=3Den-GB&amp;q=3Dhttps:/=
/trac.edgewall.org/intertrac/source:/branches/1.6-stable/tracopt/perm/authz=
_policy.py&amp;source=3Dgmail&amp;ust=3D1772119736447000&amp;usg=3DAOvVaw3z=
Ku7-qwHvOsaNN6oz4D7N">https://trac.edgewall.org/intertrac/source:/branches/=
1.6-stable/tracopt/perm/authz_policy.py</a>
<br>
<br>If not fixed yet, please share entire of your trac.ini and trac.log
<br>after enabling logging with DEBUG level and reproducing it.
<br>
<br>On Wed, Feb 25, 2026 at 2:46=E2=80=AFPM Venu Pillai &lt;<a rel=3D"nofol=
low">[email protected]</a>&gt; wrote:
<br>&gt;
<br>&gt; Hi chris,
<br>&gt; Added the permission_policies =3D AuthzSourcePolicy,DefaultWikiPol=
icy,DefaultTicketPolicy,DefaultPermissionPolicy,LegacyAttachmentPolicy in T=
rac.ini
<br>&gt; Restarted the service.
<br>&gt; Still the same issue. I can successfully login to trac instance cr=
eate ticket, view ticket etc. After logout it should go back to login page?=
 but here after logoff it give forbidden error depend upon that last I h
<br>&gt; I have attached the error.
<br>
<br>
<br>--=20
<br>Jun Omae &lt;<a rel=3D"nofollow">[email protected]</a>&gt; (=E5=A4=A7=E5=
=89=8D =E6=BD=A4)
<br></blockquote></div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Trac Users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:trac-users+unsubscribe-/[email protected]">trac-use=
rs+unsubscribe-/[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
trac-users/b2d52381-3099-4e16-8dbb-059385cf44c4n%40googlegroups.com?utm_med=
ium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/trac-use=
rs/b2d52381-3099-4e16-8dbb-059385cf44c4n%40googlegroups.com</a>.<br />

------=_Part_925289_1854159853.1772033690841--

------=_Part_925288_329834136.1772033690841--