mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
parent
05045be470
commit
89058f8bc1
@ -727,30 +727,32 @@ static void passwd_page(void)
|
|||||||
printf("<td><input type=password size=30 name=%s></td></tr>\n",NEW_PSWD);
|
printf("<td><input type=password size=30 name=%s></td></tr>\n",NEW_PSWD);
|
||||||
printf("<tr><td> Re-type New Password : </td>\n");
|
printf("<tr><td> Re-type New Password : </td>\n");
|
||||||
printf("<td><input type=password size=30 name=%s></td></tr>\n",NEW2_PSWD);
|
printf("<td><input type=password size=30 name=%s></td></tr>\n",NEW2_PSWD);
|
||||||
|
printf("</table>\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create all the control buttons for requesting action
|
* Create all the control buttons for requesting action
|
||||||
*/
|
*/
|
||||||
printf("<tr><td><input type=submit name=%s value=\"Change Password\"></td></tr>\n", CHG_S_PASSWD_FLAG);
|
printf("<input type=submit name=%s value=\"Change Password\">\n",
|
||||||
|
CHG_S_PASSWD_FLAG);
|
||||||
if (demo_mode || am_root()) {
|
if (demo_mode || am_root()) {
|
||||||
printf("<tr><td><input type=submit name=%s value=\"Add New User\"></td></tr>\n", ADD_USER_FLAG);
|
printf("<input type=submit name=%s value=\"Add New User\">\n",
|
||||||
printf("<tr><td><input type=submit name=%s value=\"Disable User\"></td></tr>\n", DISABLE_USER_FLAG);
|
ADD_USER_FLAG);
|
||||||
printf("<tr><td><input type=submit name=%s value=\"Enable User\"></td></tr>\n", ENABLE_USER_FLAG);
|
printf("<input type=submit name=%s value=\"Disable User\">\n",
|
||||||
|
DISABLE_USER_FLAG);
|
||||||
|
printf("<input type=submit name=%s value=\"Enable User\">\n",
|
||||||
|
ENABLE_USER_FLAG);
|
||||||
}
|
}
|
||||||
|
printf("<p></FORM>\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Do some work if change, add, disable or enable was requested. It could be
|
* Do some work if change, add, disable or enable was
|
||||||
* this is the first time through this code, so there isn't anything to do.
|
* requested. It could be this is the first time through this
|
||||||
*/
|
* code, so there isn't anything to do. */
|
||||||
if ((cgi_variable(CHG_S_PASSWD_FLAG)) || (cgi_variable(ADD_USER_FLAG)) ||
|
if ((cgi_variable(CHG_S_PASSWD_FLAG)) || (cgi_variable(ADD_USER_FLAG)) ||
|
||||||
(cgi_variable(DISABLE_USER_FLAG)) || (cgi_variable(ENABLE_USER_FLAG))) {
|
(cgi_variable(DISABLE_USER_FLAG)) || (cgi_variable(ENABLE_USER_FLAG))) {
|
||||||
chg_passwd();
|
chg_passwd();
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("</table>\n");
|
|
||||||
|
|
||||||
printf("</FORM>\n");
|
|
||||||
|
|
||||||
printf("<H2>Client/Server Password Management</H2>\n");
|
printf("<H2>Client/Server Password Management</H2>\n");
|
||||||
|
|
||||||
printf("<FORM name=\"swatform\" method=post>\n");
|
printf("<FORM name=\"swatform\" method=post>\n");
|
||||||
@ -771,23 +773,25 @@ static void passwd_page(void)
|
|||||||
printf("<tr><td> Remote Machine : </td>\n");
|
printf("<tr><td> Remote Machine : </td>\n");
|
||||||
printf("<td><input type=password size=30 name=%s></td></tr>\n",RHOST);
|
printf("<td><input type=password size=30 name=%s></td></tr>\n",RHOST);
|
||||||
|
|
||||||
|
printf("</table>");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create all the control buttons for requesting action
|
* Create all the control buttons for requesting action
|
||||||
*/
|
*/
|
||||||
printf("<tr><td><input type=submit name=%s value=\"Change Password\"></td></tr>", CHG_R_PASSWD_FLAG);
|
printf("<input type=submit name=%s value=\"Change Password\">",
|
||||||
|
CHG_R_PASSWD_FLAG);
|
||||||
|
|
||||||
|
printf("<p></FORM>\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Do some work if a request has been made to change the password somewhere other
|
* Do some work if a request has been made to change the
|
||||||
* than the server. It could be this is the first time through this code, so there
|
* password somewhere other than the server. It could be this
|
||||||
* isn't anything to do.
|
* is the first time through this code, so there isn't
|
||||||
*/
|
* anything to do. */
|
||||||
if (cgi_variable(CHG_R_PASSWD_FLAG)) {
|
if (cgi_variable(CHG_R_PASSWD_FLAG)) {
|
||||||
chg_passwd();
|
chg_passwd();
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("</table>");
|
|
||||||
|
|
||||||
printf("</FORM>\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user