Blame SOURCES/0080-Ticket-49665-Upgrade-script-doesn-t-enable-CRYPT-pas.patch

b663b9
From 1c077cff1ce49f5380192325a6947c623019c365 Mon Sep 17 00:00:00 2001
b663b9
From: Mark Reynolds <mreynolds@redhat.com>
b663b9
Date: Wed, 9 May 2018 16:39:23 -0400
b663b9
Subject: [PATCH] Ticket 49665 - Upgrade script doesn't enable CRYPT password
b663b9
 storage plug-in
b663b9
b663b9
Description:  There is no upgrade script to add the new CRYPT plugins, this
b663b9
              fix adds the script.
b663b9
b663b9
https://pagure.io/389-ds-base/issue/49665
b663b9
b663b9
Reviewed by: vashirov(Thanks!)
b663b9
b663b9
(cherry picked from commit 91dc832411a1bb6e8bf62bb72c36777ddc63770f)
b663b9
---
b663b9
 Makefile.am                                        |  1 +
b663b9
 .../admin/src/scripts/50cryptpwdstorageplugin.ldif | 38 ++++++++++++++++++++++
b663b9
 2 files changed, 39 insertions(+)
b663b9
 create mode 100644 ldap/admin/src/scripts/50cryptpwdstorageplugin.ldif
b663b9
b663b9
diff --git a/Makefile.am b/Makefile.am
b663b9
index 055d480aa..4f62a899b 100644
b663b9
--- a/Makefile.am
b663b9
+++ b/Makefile.am
b663b9
@@ -950,6 +950,7 @@ update_DATA = ldap/admin/src/scripts/exampleupdate.pl \
b663b9
 	ldap/admin/src/scripts/50retroclprecedence.ldif \
b663b9
 	ldap/admin/src/scripts/50rootdnaccesscontrolplugin.ldif \
b663b9
 	ldap/admin/src/scripts/50pbkdf2pwdstorageplugin.ldif \
b663b9
+	ldap/admin/src/scripts/50cryptpwdstorageplugin.ldif \
b663b9
 	ldap/admin/src/scripts/50contentsync.ldif \
b663b9
 	ldap/admin/src/scripts/60upgradeschemafiles.pl \
b663b9
 	ldap/admin/src/scripts/60upgradeconfigfiles.pl \
b663b9
diff --git a/ldap/admin/src/scripts/50cryptpwdstorageplugin.ldif b/ldap/admin/src/scripts/50cryptpwdstorageplugin.ldif
b663b9
new file mode 100644
b663b9
index 000000000..0a4a50776
b663b9
--- /dev/null
b663b9
+++ b/ldap/admin/src/scripts/50cryptpwdstorageplugin.ldif
b663b9
@@ -0,0 +1,38 @@
b663b9
+dn: cn=CRYPT-MD5,cn=Password Storage Schemes,cn=plugins,cn=config
b663b9
+objectClass: top
b663b9
+objectClass: nsSlapdPlugin
b663b9
+cn: CRYPT-MD5
b663b9
+nsslapd-pluginPath: libpwdstorage-plugin
b663b9
+nsslapd-pluginInitfunc: crypt_md5_pwd_storage_scheme_init
b663b9
+nsslapd-pluginType: pwdstoragescheme
b663b9
+nsslapd-pluginEnabled: on
b663b9
+nsslapd-pluginId: ID
b663b9
+nsslapd-pluginVersion: PACKAGE_VERSION
b663b9
+nsslapd-pluginVendor: VENDOR
b663b9
+nsslapd-pluginDescription: DESC
b663b9
+
b663b9
+dn: cn=CRYPT-SHA256,cn=Password Storage Schemes,cn=plugins,cn=config
b663b9
+objectClass: top
b663b9
+objectClass: nsSlapdPlugin
b663b9
+cn: CRYPT-SHA256
b663b9
+nsslapd-pluginPath: libpwdstorage-plugin
b663b9
+nsslapd-pluginInitfunc: crypt_sha256_pwd_storage_scheme_init
b663b9
+nsslapd-pluginType: pwdstoragescheme
b663b9
+nsslapd-pluginEnabled: on
b663b9
+nsslapd-pluginId: ID
b663b9
+nsslapd-pluginVersion: PACKAGE_VERSION
b663b9
+nsslapd-pluginVendor: VENDOR
b663b9
+nsslapd-pluginDescription: DESC
b663b9
+
b663b9
+dn: cn=CRYPT-SHA512,cn=Password Storage Schemes,cn=plugins,cn=config
b663b9
+objectClass: top
b663b9
+objectClass: nsSlapdPlugin
b663b9
+cn: CRYPT-SHA512
b663b9
+nsslapd-pluginPath: libpwdstorage-plugin
b663b9
+nsslapd-pluginInitfunc: crypt_sha512_pwd_storage_scheme_init
b663b9
+nsslapd-pluginType: pwdstoragescheme
b663b9
+nsslapd-pluginEnabled: on
b663b9
+nsslapd-pluginId: ID
b663b9
+nsslapd-pluginVersion: PACKAGE_VERSION
b663b9
+nsslapd-pluginVendor: VENDOR
b663b9
+nsslapd-pluginDescription: DESC
b663b9
-- 
b663b9
2.13.6
b663b9