Caravan Business Server>Help>Objects>Security Object |
Syntax
|
domain domain_name[|domain_name] ..[|domain_name] where domain_name is a user-defined word describing a group.
|
Text
|
In Caravan, access to documents can be restricted to users in one or more domains. Every user in Caravan exists under one or more domains. These domains are decided by the Administrator at the time of creating the user. Every Caravan system has at least one user called Admin whose domain is "admin". The admin domain has access to Caravan system services like database manager and rights to create users. A user has to login with his/her userid and password before he can access the restricted documents. A default password "password" is provided for the newly created user. Using the password.html url the user should be advised to change his password at the earliest.
|
Sample
|
The following restricts the page toadmin and supervisor domains. If a user whose domain is not in the specified list accesses a page, he/she is prompted to login before access is granted to the page. <caravan> domain admin|supervisor </caravan> Alternatively, the domain concept can be used to give different views of the same page to different users. <caravan> if domain="admin" // show admin related stuff else if domain="user" //show user related stuff endif endif </caravan> One more way is to allow a user to see a particular page partially with a provision to view the restricted area if the user wishes to login. <caravan> // put unrestricted info here if domain<>"admin" // check for authentication // restricted area // only users who have admin login else //show admin menu //user returned to the page but with no access to restricted info endif </caravan> Note login.html, logout.html, password.html and createuser.html are internal services of Caravan which can be included in user templates or automatically invoked. Unsuccessful login attempts are restricted to 3 -- further attempts are not possible until the browser is reset.
|
Back
|