#49634 Ticket 49447 - Missing pbkdf python
Closed 3 years ago by spichugi. Opened 5 years ago by firstyear.
firstyear/389-ds-base 49477-missing-python  into  master

@@ -0,0 +1,34 @@ 

+ # --- BEGIN COPYRIGHT BLOCK ---

+ # Copyright (C) 2018 William Brown <william@blackhats.net.au>

+ # All rights reserved.

+ #

+ # License: GPL (version 3 or any later version).

+ # See LICENSE for details.

+ # --- END COPYRIGHT BLOCK ---

+ 

+ from lib389.plugins import Plugin

+ 

+ class PasswordPlugin(Plugin):

+     _plugin_properties = {

+         'nsslapd-pluginpath': 'libpwdstorage-plugin',

+         'nsslapd-plugintype': 'pwdstoragescheme',

+         'nsslapd-pluginEnabled' : 'on'

+     }

+ 

+     def __init__(self, instance, dn=None):

+         super(PasswordPlugin, self).__init__(instance, dn)

+         self._rdn_attribute = 'cn'

+         self._must_attributes = [

+             'nsslapd-pluginEnabled',

+             'nsslapd-pluginPath',

+             'nsslapd-pluginInitfunc',

+             'nsslapd-pluginType',

+             ]

+         self._create_objectclasses = ['top', 'nsslapdplugin']

+         # We'll mark this protected, and people can just disable the plugins.

+         self._protected = True

+ 

+ class PBKDF2Plugin(PasswordPlugin):

+     def __init__(self, instance, dn="cn=PBKDF2_SHA256,cn=Password Storage Schemes,cn=plugins,cn=config"):

+         super(PBKDF2Plugin, self).__init__(instance, dn)

+ 

Bug Description: When I wrote the tests for the pbkdf2 regression
I missed adding a file.

Fix Description: Recreate and add the file as required.

https://pagure.io/389-ds-base/issue/49447

Author: firstyear

Review by: ???

Please note different copyright since I no longer work for Red Hat, and I have not signed a CLA.

rebased onto 77357a2

5 years ago

Pull-Request has been merged by firstyear

5 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/2693

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

3 years ago
Metadata