Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

LDAP attributes should be converted to lowercase when saving configuration #8219

Closed
sbraz opened this issue Dec 26, 2019 · 0 comments
Closed

Comments

@sbraz
Copy link
Contributor

sbraz commented Dec 26, 2019

BUG REPORT INFORMATION

Versions

centreon-license-manager-common-19.10.0-1.el7.centos.noarch
centreon-engine-19.10.7-1.el7.centos.x86_64
centreon-poller-centreon-engine-19.10.4-1.el7.centos.noarch
centreon-connector-19.10.0-1.el7.centos.x86_64
centreon-broker-core-19.10.1-1.el7.centos.x86_64
centreon-auto-discovery-server-19.10.0-2.el7.centos.noarch
centreon-broker-cbmod-19.10.1-1.el7.centos.x86_64
centreon-base-config-centreon-engine-19.10.4-1.el7.centos.noarch
centreon-broker-cbd-19.10.1-1.el7.centos.x86_64
centreon-cwrapper-perl-0.1-1.el7.centos.x86_64
centreon-license-manager-19.10.0-1.el7.centos.noarch
centreon-engine-daemon-19.10.7-1.el7.centos.x86_64
centreon-trap-19.10.4-1.el7.centos.noarch
centreon-pp-manager-19.10.0-5.el7.centos.noarch
centreon-broker-19.10.1-1.el7.centos.x86_64
centreon-database-19.10.4-1.el7.centos.noarch
centreon-common-19.10.4-1.el7.centos.noarch
centreon-broker-storage-19.10.1-1.el7.centos.x86_64
centreon-engine-extcommands-19.10.7-1.el7.centos.x86_64
centreon-web-19.10.4-1.el7.centos.noarch
centreon-clib-19.10.0-6.el7.centos.x86_64
centreon-19.10.4-1.el7.centos.noarch
centreon-connector-perl-19.10.0-1.el7.centos.x86_64
centreon-perl-libs-19.10.4-1.el7.centos.noarch
centreon-release-19.10-1.el7.centos.noarch
centreon-connector-ssh-19.10.0-1.el7.centos.x86_64

Operating System

CentOS 7

Description

When using non-lowercase attributes in the config, those never match.

Steps to Reproduce

  • Set samAccountName as Login attribute in the LDAP config.

Describe the received result

  • The attribute never matches

Describe the expected result

  • The attribute should match because the LDAP server returns samAccountName

Additional info

That is because PHP's ldap_get_entries converts all attributes to lowercase.

The attribute index is converted to lowercase.

Because of this behaviour, I think that the following options should be converted to lowercase when saving the LDAP configuration: dn, alias, name, email, pager, firstname, lastname.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants