summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-13 21:41:01 +0000
committerJeremy Allison <jra@samba.org>1998-11-13 21:41:01 +0000
commit8fc1504ff8204dd1ca735f31c769f6dadf0f88cb (patch)
treec8f269c0f415afebc4069aee335629a08d2e0916 /source3/web
parente623b717502988f630a73a5e809c456b1839ebdb (diff)
downloadsamba-8fc1504ff8204dd1ca735f31c769f6dadf0f88cb.tar.gz
samba-8fc1504ff8204dd1ca735f31c769f6dadf0f88cb.tar.bz2
samba-8fc1504ff8204dd1ca735f31c769f6dadf0f88cb.zip
Makefile.in configure configure.in include/config.h.in: Changes for DGUX and UNIXWARE.
groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf. include/includes.h: Fix YP problem. include/smb.h: Fix ZERO_STRUCTP. lib/util_sock.c: Added strerror() in debugs. passdb/ldap.c: Don't use snprinf, use slprintf. rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf. script/installman.sh: DGUX changes. smbd/open.c smbd/oplock.c: Fixed gcc warnings. web/swat.c: Changes USER to SWAT_USER. (This used to be commit 4c2b5a00983501e5d4aad1456ba8b5ab0dfd9b4c)
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/swat.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 30150815fe..ad98b7b96e 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -34,7 +34,7 @@ static BOOL demo_mode = False;
/*
* Password Management Globals
*/
-#define USER "username"
+#define SWAT_USER "username"
#define OLD_PSWD "old_passwd"
#define NEW_PSWD "new_passwd"
#define NEW2_PSWD "new2_passwd"
@@ -627,7 +627,7 @@ static void chg_passwd(void)
BOOL rslt;
/* Make sure users name has been specified */
- if (strlen(cgi_variable(USER)) == 0) {
+ if (strlen(cgi_variable(SWAT_USER)) == 0) {
printf("<p> Must specify \"User Name\" \n");
return;
}
@@ -676,7 +676,7 @@ static void chg_passwd(void)
host = "127.0.0.1";
}
rslt = change_password(host,
- cgi_variable(USER),
+ cgi_variable(SWAT_USER),
cgi_variable(OLD_PSWD), cgi_variable(NEW_PSWD),
cgi_variable(ADD_USER_FLAG)? True : False,
cgi_variable(ENABLE_USER_FLAG)? True : False,
@@ -684,9 +684,9 @@ static void chg_passwd(void)
if (rslt == True) {
- printf("<p> The passwd for '%s' has been changed. \n", cgi_variable(USER));
+ printf("<p> The passwd for '%s' has been changed. \n", cgi_variable(SWAT_USER));
} else {
- printf("<p> The passwd for '%s' has NOT been changed. \n",cgi_variable(USER));
+ printf("<p> The passwd for '%s' has NOT been changed. \n",cgi_variable(SWAT_USER));
}
return;
@@ -703,8 +703,8 @@ static void passwd_page(void)
* After the first time through here be nice. If the user
* changed the User box text to another users name, remember it.
*/
- if (cgi_variable(USER)) {
- new_name = cgi_variable(USER);
+ if (cgi_variable(SWAT_USER)) {
+ new_name = cgi_variable(SWAT_USER);
}
if (!new_name) new_name = "";
@@ -719,7 +719,7 @@ static void passwd_page(void)
* Create all the dialog boxes for data collection
*/
printf("<tr><td> User Name : </td>\n");
- printf("<td><input type=text size=30 name=%s value=%s></td></tr> \n", USER, new_name);
+ printf("<td><input type=text size=30 name=%s value=%s></td></tr> \n", SWAT_USER, new_name);
if (am_root() == False) {
printf("<tr><td> Old Password : </td>\n");
printf("<td><input type=password size=30 name=%s></td></tr> \n",OLD_PSWD);
@@ -762,7 +762,7 @@ static void passwd_page(void)
* Create all the dialog boxes for data collection
*/
printf("<tr><td> User Name : </td>\n");
- printf("<td><input type=text size=30 name=%s value=%s></td></tr>\n",USER, new_name);
+ printf("<td><input type=text size=30 name=%s value=%s></td></tr>\n",SWAT_USER, new_name);
printf("<tr><td> Old Password : </td>\n");
printf("<td><input type=password size=30 name=%s></td></tr>\n",OLD_PSWD);
printf("<tr><td> New Password : </td>\n");