next up previous contents
Next: Configuring the hypertext system Up: Configuration Previous: Configuring Apache and PHP4   Contents

Adding a hypertext system user

The hypertext system either has its own user and group management or it relies on an external ldap server. In case of a ldap server you can pick any user and make it the system user (see section 4.4). If you rather like to use the user and group management of the hypertext system, you should either create a user or utilize the one which has been inserted when you created the tables for the user and group management (see section 4.1). Creating a new user has currently to be done manually by issuing the neccessary sql commands within psql or by using the web interface. To insert a user manually go into the PostgreSQL interactive terminal by issuing the following command:

psql -U <username> -W -d <databasename>

Replace the <username> and <databasename> with the names you have chosen before, e.g. htsys in both cases. Now run the sql command

insert into htuser (name, password, realname, email) values
                   ('<name>', '<password>', '<realname>', '<email>');

Replace <name> with the login name, <password> with the encrypted password, <realname> with the real name of the user and <email> with his/her email. An encrypted password can be created with the following perl command:

perl -e "print crypt('<password>', '<salt>')"

Figure 1: Screen shot of web interface to add user.
r7.0cm Image adduser_screen.png

Replace <password> with the readable password and <salt> with any two character alpha numeric string.

Keep in mind that this command may go into the history of your shell, which may reveal the password to others using the same Unix account.

A user can also be added to the internal user database by using a web interface (see figure 1). It can be found in the root directory of the hypertext system, e.g. http://mmc-demo.mmk-hagen.de/htsys/adduser.php. Just enter the data of the new user and hit the 'Add User' button. The currently available users are listed on the top of the page.


next up previous contents
Next: Configuring the hypertext system Up: Configuration Previous: Configuring Apache and PHP4   Contents
Uwe Steinmann 2002-01-25