diff options
Diffstat (limited to 'net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch')
-rw-r--r-- | net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch deleted file mode 100644 index cce885e10e01..000000000000 --- a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch +++ /dev/null @@ -1,107 +0,0 @@ ---- gsa-7.0.3/src/gsad_omp.c 2019-02-02 03:22:19.297954361 +0300 -+++ gsa-7.0.3/src/gsad_omp.c 2019-02-02 03:27:57.690214371 +0300 -@@ -1366,7 +1366,8 @@ - || (strstr (param_name, "_id") - == param_name + strlen (param_name) - strlen ("_id")) - || (strcmp (param_name, "name") == 0 -- && strcasecmp (prev_action, "Run Wizard") == 0) -+ && (strcasecmp (prev_action, "Run Wizard") == 0 -+ || strcasecmp (next_cmd, "auth_settings") == 0)) - || (strcmp (param_name, "get_name") == 0 - && strcasecmp (next_cmd, "wizard_get") == 0)) - { -@@ -25984,7 +25976,7 @@ - - html = response_from_entity (connection, credentials, params, entity, - (no_redirect && strcmp (no_redirect, "0")), -- NULL, NULL, -+ NULL, "auth_settings", - NULL, "modify_auth", - "Save Authentication Configuration", - response_data); ---- gsa-7.0.3/src/html/classic/js/greenbone.js 2018-03-28 16:23:57.000000000 +0300 -+++ gsa-7.0.3/src/html/classic/js/greenbone.js 2019-02-02 03:40:37.162714538 +0300 -@@ -1559,6 +1559,9 @@ - if (reload === 'next') { - reload_next(response); - } -+ else if (reload === 'window') { -+ location.reload(); -+ } - }, - function(jqXHR) { - if (jqXHR.status == 0 && jqXHR.readyState == 0) { ---- gsa-7.0.3/src/html/classic/omp.xsl 2018-03-28 16:23:57.000000000 +0300 -+++ gsa-7.0.3/src/html/classic/omp.xsl 2019-02-02 03:44:28.470599715 +0300 -@@ -36775,7 +36822,8 @@ - <!-- AUTHENTICATION DESCRIPTION --> - - <xsl:template match="group" mode="ldapauth"> -- <div class="section-box" id="ldap-box"> -+ <div class="section-box ajax-post" id="ldap-box" -+ data-button="form #save_button" data-reload="window"> - <form action="/omp" method="post" enctype="multipart/form-data"> - <input type="hidden" name="token" value="{/envelope/token}"/> - <input type="hidden" name="cmd" value="save_auth"/> -@@ -36784,6 +36832,15 @@ - <input type="hidden" name="filter" value="{gsa:envelope-filter ()}"/> - <!-- group name is e.g. of method:ldap --> - <input type="hidden" name="group" value="{@name}"/> -+ <!-- Auth type name for next page --> -+ <input type="hidden" name="name" value="ldap"/> -+ -+ <div class="error-dialog"> -+ <div class="text-center"> -+ <xsl:value-of select="gsa:i18n ('LDAP authentication config could not be modified.')"/> -+ </div> -+ </div> -+ - <table class="gbntable"> - <tr class="gbntablehead2"> - <td><xsl:value-of select="gsa:i18n ('Setting')"/></td> -@@ -36838,7 +36895,8 @@ - </tr> - <tr> - <td colspan="2" style="text-align:right;"> -- <input type="submit" name="submit" value="{gsa:i18n ('Save')}"/> -+ <input type="submit" name="submit" id="save_button" -+ value="{gsa:i18n ('Save')}"/> - </td> - </tr> - </table> -@@ -36847,7 +36905,8 @@ - </xsl:template> - - <xsl:template match="group" mode="radiusauth"> -- <div class="section-box" id="radius-box"> -+ <div class="section-box ajax-post" id="radius-box" -+ data-button="form #save_button" data-reload="window"> - <form action="/omp" method="post" enctype="multipart/form-data"> - <input type="hidden" name="token" value="{/envelope/token}"/> - <input type="hidden" name="cmd" value="save_auth"/> -@@ -36856,6 +36915,15 @@ - <input type="hidden" name="filter" value="{gsa:envelope-filter ()}"/> - <!-- group name is e.g. of method:radius_connect --> - <input type="hidden" name="group" value="{@name}"/> -+ <!-- Auth type name for next page --> -+ <input type="hidden" name="name" value="radius"/> -+ -+ <div class="error-dialog"> -+ <div class="text-center"> -+ <xsl:value-of select="gsa:i18n ('Radius authentication config could not be modified.')"/> -+ </div> -+ </div> -+ - <table class="gbntable"> - <tr class="gbntablehead2"> - <td><xsl:value-of select="gsa:i18n ('Setting')"/></td> -@@ -36890,7 +36958,8 @@ - </tr> - <tr> - <td colspan="2" style="text-align:right;"> -- <input type="submit" name="submit" value="{gsa:i18n ('Save')}"/> -+ <input type="submit" name="submit" id="save_button" -+ value="{gsa:i18n ('Save')}"/> - </td> - </tr> - </table> |