diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-07-23 02:10:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:01:16 -0500 |
commit | ae0115d8dbf05c52c631ea915f036a2129cd033e (patch) | |
tree | 98e608b0f05dd00328d4b5ae77f835435939fe51 /webapps/install/index.esp | |
parent | b7f9e85db13c8a6959b7c391efdaa3c723d2772e (diff) | |
download | samba-ae0115d8dbf05c52c631ea915f036a2129cd033e.tar.gz samba-ae0115d8dbf05c52c631ea915f036a2129cd033e.tar.bz2 samba-ae0115d8dbf05c52c631ea915f036a2129cd033e.zip |
r23994: Finish my work to ensure that non-root and non-administrator users
cannot vampire, provision or upgrade a Samba4 server via SWAT.
(The previous commit was an accident, and not complete).
This should get Samba4 closer to being 'secure' for an alpha release.
Andrew Bartlett
(This used to be commit 3b6695de36bcea8a76001c9a5585eac871646450)
Diffstat (limited to 'webapps/install/index.esp')
-rw-r--r-- | webapps/install/index.esp | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/webapps/install/index.esp b/webapps/install/index.esp index 5a73b7751f..73b7ea24d5 100644 --- a/webapps/install/index.esp +++ b/webapps/install/index.esp @@ -1,20 +1,40 @@ <% page_header("columns", "Server Installation", "install"); + +if (session.authinfo.user_class == "ADMINISTRATOR" + || session.authinfo.user_class == "SYSTEM") { + %> <h1>Installation</h1> -Welcome to Samba4 installation. Before proceeding, you will need to -know: +<p>Welcome to Samba4 installation. Before proceeding, you will need to +know: </p> <ul> <li>The domain name you will use <li>The realm name you will use </ul> -After you have decided on those, choose the 'Provisioning' menu item -on the left, and fill in the form.<p> +<p>After you have decided on those, choose the 'Provisioning' menu item +on the left, and fill in the form.</p> + +<p><b>Warning!</b> When you provision, your existing user database is +wiped and replaced with a new one.</p> + +<% + +} else { + +%> + +<h1>Installation</h1> + +<p>To install Samba4, you must have logged in as <b>root</b>, or administrator of the previously configured domain. </p> + +<p><b>Warning!</b> When you provision, your existing user database is +wiped and replaced with a new one. </p> -<b>Warning!</b> When you provision, your existing user database is -wiped and replaced with a new one. +<% -<% page_footer(); %> +} +page_footer(); %> |