Actions
Bug #2803
closedInitialization of LDAP credentials in rudder-upgrade script can match comments and several lines from rudder-web.properties
Pull Request:
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