2. Registering users to an application

Before users should even try lo log in to a certain MAJAS application. They must be registered to it. Of course registering users to an application also requires the existence of such an application. We'll quickly assume this is the case. Now then, we have created our users in the previous paragraph, en which to make use of them. Just look at the following piece of an application's configuration:

...
   <users>
      <user ref="guest" />
   </users>
...

In this little extract of a application configuration file, we see how easy it is to register a user to a certain application. In this particular example only one user is allowed to log in to the application, and that's the "guest" user. This means that all other users will be denied access to this particular application. Mind that these refrences to tomcat users must match the "username" attribute in the tomcat-user.xml from the previous paragraph exactly! A username and thus login name is case sensitive.