request to have sha2 module in contrib included in package

Bug #1033096 reported by ben thielsen
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
openldap (Debian)
Fix Released
Unknown
openldap (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

there is an sha2 module in the openldap source contrib directory which implements the following sha2 password hashing schemes:

{SSHA-512}
{SSHA-384}
{SSHA-256}
{SHA-512}
{SHA-384}
{SHA-256}

i'd like to have it included in the slapd package.

the module can be found in contrib/slapd-modules/passwd/sha2/

following the standard "make depend" when building openldap, the module can be built by running "make" in its directory. note that i had to add -fPIC to CCFLAGS in order to get it to build - e.g:

CCFLAGS = -Wall -g -fPIC

this may or may not be the right way to do this.

regards
-ben

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi Ben. This seems like a reasonable request. You should note that upstream would prefer that people not use these password methods and instead focus on SCRAM based methods. See the discussion on why this module isn't in core here:

http://www.openldap.org/its/index.cgi/Contrib?id=7278;page=4

Changed in openldap (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

One concern though is that this embeds "yet another" copy of a SHA2 algorithm.. and its even likely that this one has been embedded elsewhere so that may present maintenance problems if a problem is ever found with this particular code.

Revision history for this message
ben thielsen (btb-bitrate) wrote : Re: [Bug 1033096] request to have sha2 module in contrib included in package

On Aug 05, 2012, at 10.17, Clint Byrum wrote:

> Hi Ben. This seems like a reasonable request. You should note that
> upstream would prefer that people not use these password methods and
> instead focus on SCRAM based methods. See the discussion on why this
> module isn't in core here:
>
> http://www.openldap.org/its/index.cgi/Contrib?id=7278;page=4

hi-

thanks for the reference, i hadn't heard of scram before.

-ben

Revision history for this message
ben thielsen (btb-bitrate) wrote :

i gather this means that this module is independently implementing the algorithm rather than using existing [openssl/gnutls/etc] libraries? is there a compromise that might be reached?

Changed in openldap (Debian):
status: Unknown → Confirmed
Changed in openldap (Debian):
status: Confirmed → Fix Released
Revision history for this message
Ryan Tandy (rtandy) wrote :

The slapd package in wily now provides the pw-sha2 module.

Changed in openldap (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.