Issue 5082 - olcPasswordHash: Scheme not available
Summary: olcPasswordHash: Scheme not available
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-09 10:12 UTC by mahashmi@gmail.com
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mahashmi@gmail.com 2007-08-09 10:12:46 UTC
Full_Name: Mustafa A. Hashmi
Version: 2.3.30
OS: Debian Etch (4.0)
URL: 
Submission from: (NULL) (202.5.145.13)


When slapd is initialized to read configuration via cn=config (-F
/path/to/slapd.d), configuration directives are read before modules are loaded.
This can result in slapd exiting when a configuration option, provided by a
specific module, is found before the module is loaded.

As an example: the directive password-hash {K5KEY} results in slapd existing
with the following message: 

olcPasswordHash: value #0: <olcPasswordHash> scheme not available ({K5KEY})
olcPasswordHash: value #0: <olcPasswordHash> no valid hashes found
config error processing cn=config: <olcPasswordHash> no valid hashes found

The smbk5pwd module is loaded at a later stage during the initialization
process.

Please note: If cn=config.ldif is edited and the option removed, slapd will
start normally and allow the option to be added at runtime.

Comment 1 ando@openldap.org 2007-08-09 10:14:06 UTC
changed notes
moved from Incoming to Software Bugs
Comment 2 ando@openldap.org 2007-08-09 10:23:01 UTC
See also discussion in thread 
<http://www.openldap.org/lists/openldap-software/200708/msg00063.html>



Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
---------------------------------------
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   pierangelo.masarati@sys-net.it
---------------------------------------


Comment 3 Howard Chu 2007-08-10 20:39:06 UTC
ando@sys-net.it wrote:
> See also discussion in thread 
> <http://www.openldap.org/lists/openldap-software/200708/msg00063.html>

The fix currently in CVS HEAD is to remove the olcPasswordHash attribute from 
the olcGlobal entry and move it to the frontendDB entry.

-- 
   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP     http://www.openldap.org/project/

Comment 4 Howard Chu 2007-08-10 20:45:07 UTC
changed notes
changed state Open to Test
Comment 5 Howard Chu 2007-09-02 10:44:56 UTC
changed notes
changed state Test to Release
Comment 6 Howard Chu 2007-09-02 11:54:29 UTC
changed notes
Comment 7 Howard Chu 2007-09-02 12:06:09 UTC
Howard Chu wrote:
> ando@sys-net.it wrote:
>> See also discussion in thread 
>> <http://www.openldap.org/lists/openldap-software/200708/msg00063.html>
> 
> The fix currently in CVS HEAD is to remove the olcPasswordHash attribute from 
> the olcGlobal entry and move it to the frontendDB entry.

For better backward compatibility, olcPasswordHash is allowed in both the 
olcGlobal entry and the frontendDB entry. The preferred location for this 
setting is now in the frontendDB entry. When generating a slapd.d from a 
slapd.conf file, only the frontendDB entry will carry the attribute. Existing 
slapd.d configs with the attribute in the global entry should continue to work 
but they should be manually updated to use only the frontendDB entry.

This fix is now in RE23 as well as RE24.

-- 
   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP     http://www.openldap.org/project/

Comment 8 Howard Chu 2007-11-01 14:34:17 UTC
changed notes
changed state Release to Closed
Comment 9 Howard Chu 2009-02-17 05:21:53 UTC
moved from Software Bugs to Archive.Software Bugs
Comment 10 OpenLDAP project 2014-08-01 21:06:48 UTC
back-config
fix in HEAD/RE24/RE23