01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

It is a general convention in TWiki to use real names. If you do not<br />

wish to do so, you are of course free to select a pseudonym.<br />

You can find out if <strong>the</strong> registration has been successful by looking<br />

at <strong>the</strong> page Main.TWikiUsers. Your name should now be on <strong>the</strong><br />

list.<br />

Note: If you have not set up <strong>the</strong> email function (see Chapter 15.5),<br />

you may receive an error message telling you that <strong>the</strong> confirmation<br />

email could not be sent. However, this message will not interfere<br />

with <strong>the</strong> registration process.<br />

Now, make yourself an administrator. To do so, access <strong>the</strong> topic<br />

TWikiAdminGroup. Alter <strong>the</strong> line in which <strong>the</strong> members of <strong>the</strong><br />

group are indicated by entering your name:<br />

···*·Set GROUP = YourUserName<br />

Several users are categorized in a single group which <strong>the</strong>n all have<br />

<strong>the</strong> same TWiki permissions. You can find out more about groups in<br />

Chapter 14.4.<br />

You can also modify <strong>the</strong> template with which <strong>the</strong> user page is<br />

generated. It is saved in <strong>the</strong> topic TWiki.NewUserTemplate and can<br />

be edited like any normal page.<br />

14.3<br />

Setting Up Password Protection<br />

Registration works via an au<strong>the</strong>ntication mechanism of <strong>the</strong> web<br />

server. It is set up such that access to a few of <strong>the</strong> TWiki scripts is<br />

denied without a login. The file responsible for this is .htaccess in<br />

<strong>the</strong> twiki/bin directory. In <strong>the</strong> standard installation, it does not yet<br />

have a .txt extension and is thus not yet activated.<br />

You should first look at <strong>the</strong> file and make a few small changes. In<br />

<strong>the</strong> line beginning with AuthUserFile, replace !FILE_path<br />

_to_TWiki! with <strong>the</strong> path leading to <strong>the</strong> data directory of your<br />

TWiki, <strong>the</strong> easiest being../data. You can alter <strong>the</strong> message appearing<br />

during login in <strong>the</strong> following line, which begins with<br />

AuthName. If you still wish to keep your TWiki as open as possible,<br />

you should also enter login data for guest access here. Under<br />

ErrorDocument, replace !URL_path_to_TWiki! with <strong>the</strong><br />

path in <strong>the</strong> URL of your TWiki (<strong>the</strong> section following <strong>the</strong> host<br />

name) that leads to <strong>the</strong> Oops-script. This script, located in <strong>the</strong><br />

twiki/bin directory, is responsible for issuing TWiki error messages.<br />

Defining<br />

administrators<br />

Adapting<br />

.htaccess<br />

14.3 Setting Up Password Protection �<br />

�<br />

�<br />

207

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!