Bug 1221302 - aaa-ldap extension don't parses the space in baseDN correctly
Summary: aaa-ldap extension don't parses the space in baseDN correctly
Keywords:
Status: CLOSED DUPLICATE of bug 1096175
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Martin Perina
QA Contact: Ondra Machacek
URL:
Whiteboard: infra
Depends On: 1096175
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-13 16:33 UTC by nijin ashok
Modified: 2015-07-12 06:04 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-07-12 06:04:46 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description nijin ashok 2015-05-13 16:33:36 UTC
Description of problem:

The aaa-ldap extension don't parses the space in baseDN correctly and characters after space is ignored . If the base DN is "My Company" only My is considered as baseDN in Search Request

Version-Release number of selected component (if applicable):

ovirt-engine-extension-aaa-ldap-1.0.2-1.el6ev.noarch

How reproducible:

100%

Steps to Reproduce:
1. Configure a base DN along with space . In my case

pool.default.auth.simple.bindDN = cn=manager,dc=My Company,dc=com

2. Restart the ovirt-engine service and the profile will be created successfully . Here "space" is taken correctly. 

==========
2015-05-13 21:43:24,387 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ServerService Thread Pool -- 41) createBindRequest Return SimpleBindRequest(dn='cn=manager,o=My Company,dc=com')
2015-05-13 21:43:24,387 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ServerService Thread Pool -- 41) BindRequest: SimpleBindRequest(dn='cn=manager,o=My Company,dc=com')
======

3. Go to RHEV-M admin portal => Users => Add  
and search the user in this namespace. Here all characters after "space" will be ignored.

My logs

engine

2015-05-13 21:49:14,485 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ajp-/127.0.0.1:8702-8) SearchRequest: SearchRequest(baseDN='cn=manager,o=My', scope=SUB, deref=NEVER, sizeLimit=0, timeLimit=0, filter='&(objectClass=groupOfNames)(|(cn=*))', attrs={entryUUID, cn, description})

ldap log

May 13 21:52:57 dhcp234-33 slapd[16826]: connection_get(24)
May 13 21:52:57 dhcp234-33 slapd[16826]: connection_get(24)
May 13 21:52:57 dhcp234-33 slapd[16826]: SRCH "cn=manager,o=My" 2 0

Only 'cn=manager,o=My' is considered as baseDN . Characters after that has been ignored.


Actual results:
Characters after "space" in baseDN is ignored 

Expected results:

Extension should consider space in baseDN correctly

Additional info:

Comment 1 Alon Bar-Lev 2015-05-13 16:40:14 UTC
It is not ldap extension issue, cause is bug#1096175.
I keep it open for visibility.

Comment 2 Oved Ourfali 2015-06-08 10:00:38 UTC
Martin - that will be fixed by Bug 1096175, right?

Comment 3 Martin Perina 2015-06-08 10:10:48 UTC
Yes, patch for BZ1096175 should fix also this bug.

Comment 4 Oved Ourfali 2015-07-12 06:04:46 UTC

*** This bug has been marked as a duplicate of bug 1096175 ***


Note You need to log in before you can comment on or make changes to this bug.