The version of the ruby-net-ldap installed by ruby193-rubygem-net-ldap is to old and does not support spaces in LDAP group names.
Issue
- The version of the ruby-net-ldap installed by ruby193-rubygem-net-ldap is to old and does not support spaces in LDAP group names.
- It has been fixed accordingly to : https://github.com/ruby-ldap/ruby-net-ldap/issues/80
- Unfortunately we are currently using an old version which does not work:
rpm -q --changelog ruby193-rubygem-net-ldap
* Mon Feb 03 2014 Troy Dawson <tdawson@redhat.com> - 0.3.1-1
- Initial package
- Took sections of spec file from Fedora 0.3.1 spec file
- Group with spaces:
/usr/sbin/oo-admin-ctl-team --config-file /etc/openshift/ldap-2.yaml -c sync Getting users in group: "CN=GLO-CLI-SEC-MSP09-Home0075_Users,OU=Environmental Settings,OU=Groups,DC=client,DC=barclayscorp,DC=com"
Failed to sync: "\x82" from ASCII-8BIT to UTF-8}
"\x82" from ASCII-8BIT to UTF-8
/opt/rh/ruby193/root/usr/share/gems/gems/net-ldap-0.3.1/lib/net/ber/core_ext/string.rb:23:in `encode'
/opt/rh/ruby193/root/usr/share/gems/gems/net-ldap-0.3.1/lib/net/ber/core_ext/string.rb:23:in `raw_utf8_encoded'
/opt/rh/ruby193/root/usr/share/gems/gems/net-ldap-0.3.1/lib/net/ber/core_ext/string.rb:15:in `to_ber'
/opt/rh/ruby193/root/usr/share/gems/gems/net-ldap-0.3.1/lib/net/ldap.rb:1396:in `block in search'
/opt/rh/ruby193/root/usr/share/gems/gems/net-ldap-0.3.1/lib/net/ldap.rb:1367:in `loop'
/opt/rh/ruby193/root/usr/share/gems/gems/net-ldap-0.3.1/lib/net/ldap.rb:1367:in `search'
/opt/rh/ruby193/root/usr/share/gems/gems/net-ldap-0.3.1/lib/net/ldap.rb:637:in `search'
/usr/sbin/oo-admin-ctl-team:379:in `get_users_in_group'
/usr/sbin/oo-admin-ctl-team:285:in `block in sync'
/usr/sbin/oo-admin-ctl-team:284:in `each'
/usr/sbin/oo-admin-ctl-team:284:in `sync'
/usr/sbin/oo-admin-ctl-team:547:in `<main>'
- Group without spaces:
/usr/sbin/oo-admin-ctl-team --config-file /etc/openshift/ldap-2.yaml -c sync
Getting users in group: "CN=,OU=,OU=Groups,DC=client,DC=,DC=com"
Found users: ["ABC1", "ABC2"]
Environment
- Openshift 2.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
