Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1224418

Summary: [RFE] Support eDirectory / rfc2307
Product: Red Hat Enterprise Virtualization Manager Reporter: Anitha Udgiri <audgiri>
Component: ovirt-engine-extension-aaa-ldapAssignee: Yaniv Kaul <ykaul>
Status: CLOSED CURRENTRELEASE QA Contact: Ondra Machacek <omachace>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: bazulay, dgross, iheim, kaminsc, lbopf, lsurette, mgoldboi, oourfali, pstehlik, Rhev-m-bugs, sherold, vvaldez, ykaul, ylavi
Target Milestone: ovirt-3.6.0-rc2Keywords: FutureFeature, Improvement, Reopened, ZStream
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Red Hat Enterprise Virtualization Manager now supports Novell eDirectory with the RFC-2307 schema extension.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-27 06:50:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1224722    
Bug Blocks:    
Attachments:
Description Flags
Error adding user to RHEV from eDirectory LDAP none

Description Anitha Udgiri 2015-05-22 21:35:31 UTC
Description of problem:openldap rfc2307

Customer is using the NetIQ/edir product that conforms to openldap rfc2307. 
After configuring for it, he was unable to add a user.

Comment 6 Alon Bar-Lev 2015-05-25 12:35:59 UTC
Thank you Anitha,
Logs looks good!

Comment 19 Ondra Machacek 2015-09-18 08:45:35 UTC
I guess you forgot to add new pkg of aaa-ldap.
There is currently - ovirt-engine-extension-aaa-ldap-1.0.2-1.el6ev.noarch

Comment 21 Alon Bar-Lev 2015-09-18 09:21:19 UTC
(In reply to Ondra Machacek from comment #19)
> I guess you forgot to add new pkg of aaa-ldap.
> There is currently - ovirt-engine-extension-aaa-ldap-1.0.2-1.el6ev.noarch

it is not onqa... :)

I will probably won't support this in 3.5 as customer has a solution and I have not gotten any more requests

Comment 22 Ondra Machacek 2015-09-18 09:24:33 UTC
It was ON_QA, I've changed the status, see comment 19.
Anyway, should I close as won't fix, then?

Comment 23 Alon Bar-Lev 2015-09-18 09:28:26 UTC
(In reply to Ondra Machacek from comment #22)
> It was ON_QA, I've changed the status, see comment 19.
> Anyway, should I close as won't fix, then?

sorry, it was my mistake. yes, I will close it for now.

Comment 24 Alon Bar-Lev 2015-09-18 09:31:55 UTC
On second thought this to make it clear it is fixed in 3.6, closing it for 3.6.

Comment 26 Vinny Valdez 2015-09-22 15:34:31 UTC
Created attachment 1075886 [details]
Error adding user to RHEV from eDirectory LDAP

Full error in engine.log

Comment 27 Ondra Machacek 2015-09-22 17:08:48 UTC
As said above, it's not supported in 3.5. You can workaround if you add this[1] to directory: /usr/share/ovirt-engine-extension-aaa-ldap/profiles/ and name it 'rfc2307-edir.properties'. Then in your properties use 'include = <rfc2307-edir.properties>'

[1] https://gerrit.ovirt.org/gitweb?p=ovirt-engine-extension-aaa-ldap.git;a=blob_plain;f=profiles/rfc2307-edir.properties;hb=ovirt-engine-extension-aaa-ldap-1.0

Comment 28 Vinny Valdez 2015-09-22 17:53:39 UTC
Thanks, I do know it is not supported in 3.5 but the customer is willing to try anything even unsupported to see if it works. Without this patch the namespace is blank, but we can find his user in the search. However, we cannot add it as we get the error I posted above.

With this new profile in place, the namespace is now populated, though it is unknown where this came from. It is a different ou= than we specified in the profile. So, the search cannot find his username, or anything else really so we still cannot move forward.

Would you like logs from this failure or should we not spend time on this testing and wait for 3.6?

Comment 29 Ondra Machacek 2015-09-23 07:08:53 UTC
(In reply to Vinny Valdez from comment #28) 
> With this new profile in place, the namespace is now populated, though it is
> unknown where this came from. It is a different ou= than we specified in the
> profile. So, the search cannot find his username, or anything else really so
> we still cannot move forward.

The namespace should be the namingContext, which you can find as follows:
$ ldapsearch -x -LLL -H ldap://edirectory-fqdn.org -s base namingContexts

I am not sure what do you mean by ou=? The user you used is in different namespace then the namespace which is shown in UI?

> 
> Would you like logs from this failure or should we not spend time on this
> testing and wait for 3.6?

Should work the same for 3.6 and 3.5 with the properties you downloaded.
So believe it worth to test. The logs would be very helpfull, also the configuration files. Thank you.

Comment 30 Ondra Machacek 2015-09-23 08:08:49 UTC
(In reply to Vinny Valdez from comment #28)
>
> With this new profile in place, the namespace is now populated, though it is
> unknown where this came from. It is a different ou= than we specified in the
> profile. So, the search cannot find his username, or anything else really so
> we still cannot move forward.
> 

Also please note some facts about edir. By default AFAIK, it has set up ACL, you have to use startTLS to be able to view some attributes needed by oVirt. 

Also please note, that the filter oVirt use is:
'&(objectClass=posixAccount)(uid=*)(|(givenName=*)(sn=*)(displayName=*)(uid=*))'

That means your users have to have objectClass posixAccount.