3

I have TRAC instance running and I need to protect few specific pages from some authenticated users, while giving access to those pages to certain other users.

* UPDATE * : Authenticated users have wiki_view privileges, but I need to prevent certain users from accessing certain wiki pages, without blocking them from access any wiki pages.

Is this something that can be done?

HopelessN00b
  • 53,385
  • 32
  • 133
  • 208
alexus
  • 12,342
  • 27
  • 115
  • 173
  • 1
    I apologize for not being clear enough as answers are not going right directions (my fault). – alexus Dec 14 '12 at 16:56

2 Answers2

1

Would you not be able to use one of the apache authorisation configuration options and/or modules to add an authentication layer based on the url?

With the right /location settings you should be able to get this done.

<Location /secure>
  AuthType basic
  AuthName "private area"
  AuthBasicProvider dbm
  AuthDBMType SDBM
  AuthDBMUserFile /www/etc/dbmpasswd
  Require valid-user
</Location>

See also:

aseq
  • 4,550
  • 1
  • 22
  • 46
1

Trac has it's own built-in authentication. Why not use that?

Permission privileges are managed using the trac-admin tool or (new in version 0.11) the General / Permissions panel in the Admin tab of the web interface.

TracPermissions - The Trac Project

Aaron Copley
  • 12,345
  • 5
  • 46
  • 67