andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone

Blame SOURCES/0029-Remove-GOST-YESCRYPT-password-sotrage-scheme.patch

5d81fc
From 120511d35095a48d60abbb7cb2367d0c30fbc757 Mon Sep 17 00:00:00 2001
5d81fc
From: Mark Reynolds <mreynolds@redhat.com>
5d81fc
Date: Wed, 25 Aug 2021 13:20:56 -0400
5d81fc
Subject: [PATCH] Remove GOST-YESCRYPT password sotrage scheme
5d81fc
5d81fc
---
5d81fc
 .../tests/suites/password/pwd_algo_test.py     |  1 -
5d81fc
 ldap/ldif/template-dse-minimal.ldif.in         |  9 ---------
5d81fc
 ldap/ldif/template-dse.ldif.in                 |  9 ---------
5d81fc
 ldap/servers/plugins/pwdstorage/pwd_init.c     | 18 ------------------
5d81fc
 ldap/servers/slapd/fedse.c                     | 13 -------------
5d81fc
 5 files changed, 50 deletions(-)
5d81fc
5d81fc
diff --git a/dirsrvtests/tests/suites/password/pwd_algo_test.py b/dirsrvtests/tests/suites/password/pwd_algo_test.py
5d81fc
index 66bda420e..88f8e40b7 100644
5d81fc
--- a/dirsrvtests/tests/suites/password/pwd_algo_test.py
5d81fc
+++ b/dirsrvtests/tests/suites/password/pwd_algo_test.py
5d81fc
@@ -124,7 +124,6 @@ def _test_algo_for_pbkdf2(inst, algo_name):
5d81fc
     ('CLEAR', 'CRYPT', 'CRYPT-MD5', 'CRYPT-SHA256', 'CRYPT-SHA512',
5d81fc
      'MD5', 'SHA', 'SHA256', 'SHA384', 'SHA512', 'SMD5', 'SSHA',
5d81fc
      'SSHA256', 'SSHA384', 'SSHA512', 'PBKDF2_SHA256', 'DEFAULT',
5d81fc
-     'GOST_YESCRYPT',
5d81fc
      ))
5d81fc
 def test_pwd_algo_test(topology_st, algo):
5d81fc
     """Assert that all of our password algorithms correctly PASS and FAIL varying
5d81fc
diff --git a/ldap/ldif/template-dse-minimal.ldif.in b/ldap/ldif/template-dse-minimal.ldif.in
5d81fc
index 2eccae9b2..1a05f4a67 100644
5d81fc
--- a/ldap/ldif/template-dse-minimal.ldif.in
5d81fc
+++ b/ldap/ldif/template-dse-minimal.ldif.in
5d81fc
@@ -194,15 +194,6 @@ nsslapd-pluginarg1: nsds5ReplicaCredentials
5d81fc
 nsslapd-pluginid: aes-storage-scheme
5d81fc
 nsslapd-pluginprecedence: 1
5d81fc
 
5d81fc
-dn: cn=GOST_YESCRYPT,cn=Password Storage Schemes,cn=plugins,cn=config
5d81fc
-objectclass: top
5d81fc
-objectclass: nsSlapdPlugin
5d81fc
-cn: GOST_YESCRYPT
5d81fc
-nsslapd-pluginpath: libpwdstorage-plugin
5d81fc
-nsslapd-plugininitfunc: gost_yescrypt_pwd_storage_scheme_init
5d81fc
-nsslapd-plugintype: pwdstoragescheme
5d81fc
-nsslapd-pluginenabled: on
5d81fc
-
5d81fc
 dn: cn=Syntax Validation Task,cn=plugins,cn=config
5d81fc
 objectclass: top
5d81fc
 objectclass: nsSlapdPlugin
5d81fc
diff --git a/ldap/ldif/template-dse.ldif.in b/ldap/ldif/template-dse.ldif.in
5d81fc
index 7e7480cba..f30531bec 100644
5d81fc
--- a/ldap/ldif/template-dse.ldif.in
5d81fc
+++ b/ldap/ldif/template-dse.ldif.in
5d81fc
@@ -242,15 +242,6 @@ nsslapd-pluginarg2: nsds5ReplicaBootstrapCredentials
5d81fc
 nsslapd-pluginid: aes-storage-scheme
5d81fc
 nsslapd-pluginprecedence: 1
5d81fc
 
5d81fc
-dn: cn=GOST_YESCRYPT,cn=Password Storage Schemes,cn=plugins,cn=config
5d81fc
-objectclass: top
5d81fc
-objectclass: nsSlapdPlugin
5d81fc
-cn: GOST_YESCRYPT
5d81fc
-nsslapd-pluginpath: libpwdstorage-plugin
5d81fc
-nsslapd-plugininitfunc: gost_yescrypt_pwd_storage_scheme_init
5d81fc
-nsslapd-plugintype: pwdstoragescheme
5d81fc
-nsslapd-pluginenabled: on
5d81fc
-
5d81fc
 dn: cn=Syntax Validation Task,cn=plugins,cn=config
5d81fc
 objectclass: top
5d81fc
 objectclass: nsSlapdPlugin
5d81fc
diff --git a/ldap/servers/plugins/pwdstorage/pwd_init.c b/ldap/servers/plugins/pwdstorage/pwd_init.c
5d81fc
index 606e63404..59cfc4684 100644
5d81fc
--- a/ldap/servers/plugins/pwdstorage/pwd_init.c
5d81fc
+++ b/ldap/servers/plugins/pwdstorage/pwd_init.c
5d81fc
@@ -52,8 +52,6 @@ static Slapi_PluginDesc smd5_pdesc = {"smd5-password-storage-scheme", VENDOR, DS
5d81fc
 
5d81fc
 static Slapi_PluginDesc pbkdf2_sha256_pdesc = {"pbkdf2-sha256-password-storage-scheme", VENDOR, DS_PACKAGE_VERSION, "Salted PBKDF2 SHA256 hash algorithm (PBKDF2_SHA256)"};
5d81fc
 
5d81fc
-static Slapi_PluginDesc gost_yescrypt_pdesc = {"gost-yescrypt-password-storage-scheme", VENDOR, DS_PACKAGE_VERSION, "Yescrypt KDF algorithm (Streebog256)"};
5d81fc
-
5d81fc
 static char *plugin_name = "NSPwdStoragePlugin";
5d81fc
 
5d81fc
 int
5d81fc
@@ -431,19 +429,3 @@ pbkdf2_sha256_pwd_storage_scheme_init(Slapi_PBlock *pb)
5d81fc
     return rc;
5d81fc
 }
5d81fc
 
5d81fc
-int
5d81fc
-gost_yescrypt_pwd_storage_scheme_init(Slapi_PBlock *pb)
5d81fc
-{
5d81fc
-    int rc;
5d81fc
-
5d81fc
-    slapi_log_err(SLAPI_LOG_PLUGIN, plugin_name, "=> gost_yescrypt_pwd_storage_scheme_init\n");
5d81fc
-
5d81fc
-    rc = slapi_pblock_set(pb, SLAPI_PLUGIN_VERSION, (void *)SLAPI_PLUGIN_VERSION_01);
5d81fc
-    rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_DESCRIPTION, (void *)&gost_yescrypt_pdesc);
5d81fc
-    rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_PWD_STORAGE_SCHEME_ENC_FN, (void *)gost_yescrypt_pw_enc);
5d81fc
-    rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_PWD_STORAGE_SCHEME_CMP_FN, (void *)gost_yescrypt_pw_cmp);
5d81fc
-    rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_PWD_STORAGE_SCHEME_NAME, GOST_YESCRYPT_SCHEME_NAME);
5d81fc
-
5d81fc
-    slapi_log_err(SLAPI_LOG_PLUGIN, plugin_name, "<= gost_yescrypt_pwd_storage_scheme_init %d\n", rc);
5d81fc
-    return rc;
5d81fc
-}
5d81fc
diff --git a/ldap/servers/slapd/fedse.c b/ldap/servers/slapd/fedse.c
5d81fc
index 44159c991..24b7ed11c 100644
5d81fc
--- a/ldap/servers/slapd/fedse.c
5d81fc
+++ b/ldap/servers/slapd/fedse.c
5d81fc
@@ -203,19 +203,6 @@ static const char *internal_entries[] =
5d81fc
         "nsslapd-pluginVersion: none\n"
5d81fc
         "nsslapd-pluginVendor: 389 Project\n"
5d81fc
         "nsslapd-pluginDescription: CRYPT-SHA512\n",
5d81fc
-
5d81fc
-        "dn: cn=GOST_YESCRYPT,cn=Password Storage Schemes,cn=plugins,cn=config\n"
5d81fc
-        "objectclass: top\n"
5d81fc
-        "objectclass: nsSlapdPlugin\n"
5d81fc
-        "cn: GOST_YESCRYPT\n"
5d81fc
-        "nsslapd-pluginpath: libpwdstorage-plugin\n"
5d81fc
-        "nsslapd-plugininitfunc: gost_yescrypt_pwd_storage_scheme_init\n"
5d81fc
-        "nsslapd-plugintype: pwdstoragescheme\n"
5d81fc
-        "nsslapd-pluginenabled: on\n"
5d81fc
-        "nsslapd-pluginId: GOST_YESCRYPT\n"
5d81fc
-        "nsslapd-pluginVersion: none\n"
5d81fc
-        "nsslapd-pluginVendor: 389 Project\n"
5d81fc
-        "nsslapd-pluginDescription: GOST_YESCRYPT\n",
5d81fc
 };
5d81fc
 
5d81fc
 static int NUM_INTERNAL_ENTRIES = sizeof(internal_entries) / sizeof(internal_entries[0]);
5d81fc
-- 
5d81fc
2.31.1
5d81fc