Issue 8705 - Windows registry key creation incorrect
Summary: Windows registry key creation incorrect
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.45
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-03 02:45 UTC by Quanah Gibson-Mount
Modified: 2018-03-22 19:26 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 Quanah Gibson-Mount 2017-08-03 02:45:32 UTC
Full_Name: Quanah Gibson-Mount
Version: 2.4.45
OS: Windows 10 64-bit
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (47.208.148.239)


When installing OpenLDAP on windows, it creates a registry key for the Eventlog
to map startup/shutdown events.  There was an attempt to fix the problem with
the key value back in 2003, 6e8adce9d94ffff125d6acce669c35245d73d0df.  However,
the fix is incorrect.

Without 6e8adce9d94ffff125d6acce669c35245d73d0df, the key value is set to (on a
64-bit install):

"C:\Program Files\OpenLDAP\slapd.exe service"

With 6e8adce9d94ffff125d6acce669c35245d73d0df, the key value is set to (on a
64-bit install):

"C:\Program"

The value that works is:

"C:\Program Files\OpenLDAP\slapd.exe"

The goal of 6e8adce9d94ffff125d6acce669c35245d73d0df was to strip of " service",
but since it simply parses on a single space, if the install path has a space
elsewhere in it, you end up with the incorrect value noted above.

Comment 1 Quanah Gibson-Mount 2017-09-12 23:29:22 UTC
changed notes
changed state Open to Release
moved from Incoming to Software Bugs
Comment 2 Quanah Gibson-Mount 2017-09-12 23:34:02 UTC
changed notes
Comment 3 OpenLDAP project 2018-03-22 19:26:02 UTC
Fixed in master (af92b8d2caa7f3a27ea8721cdaf75d8b8a3c79ff)
Fixed in RE24 (2.4.46)
Comment 4 Quanah Gibson-Mount 2018-03-22 19:26:02 UTC
changed notes
changed state Release to Closed