Project

General

Profile

Actions

Bug #2803

closed

Initialization of LDAP credentials in rudder-upgrade script can match comments and several lines from rudder-web.properties

Added by Nicolas PERRON over 12 years ago. Updated over 9 years ago.

Status:
Released
Priority:
3
Assignee:
Nicolas PERRON
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

The initialization of LDAP credentials in rudder-upgrade script is not enough strict and can match comments and several lines from rudder-web.properties:

If there is a commented attribute in rudder-web.properties:

ldap.authdn=cn=manager,cn=rudder-configuration
#ldap.authdn=cn=manager,cn=rudder-configuration

LDAP credentials in rudder-upgrade will match both of these lines:

root@server:~$ grep -E "ldap.authdn=" /opt/rudder/etc/rudder-web.properties |cut -d "=" -f 2-
cn=manager,cn=rudder-configuration
cn=manager,cn=rudder-configuration

Actions

Also available in: Atom PDF