<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 4:24 PM, Alexander Bokovoy <span dir="ltr"><<a target="_blank" href="mailto:abokovoy@redhat.com">abokovoy@redhat.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">On ma, 20 maalis 2017, Iulian Roman wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
On Mon, Mar 20, 2017 at 4:00 PM, Alexander Bokovoy <<a target="_blank" href="mailto:abokovoy@redhat.com">abokovoy@redhat.com</a>><br>
wrote:<br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
On ma, 20 maalis 2017, Iulian Roman wrote:<br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
Hello,<br>
<br>
I noticed that nested group feature do not work with the unix ldap clients<br>
(AIX) if the default groupbasedn (cn=groups,cn=accounts,dc=...) is used.<br>
If<br>
i use the cn=compat and change the mapping the nested groups are listed<br>
properly.<br>
<br>
</blockquote>
Compat tree implements RFC2307 schema which doesn't have nested groups.<br>
<br>
</blockquote>
Correct, but although the groups under the compat tree do not have the<br>
nestedgroup object class attribute, whenever i change the group membership<br>
via WEB UI, the compat tree group membership is automatically updated (new<br>
memberUid is added). What i've done was a sort of workaround and map the<br>
AIX groups attribute to the memberUid which seems to work properly.<br>
</blockquote>
memberUid is uidNumber of corresponding user, not a group identifier.<br>
Perhaps, you are trying to explain something else?<br></blockquote><div>Ok, maybe i have to explain it more clearly as it was confusing: <br></div><div>in order to get the user list attribute for an ldap group in AIX , you use some .map files, which map the ldap attributes to the AIX attributes. For the 2307schema, to get the user list of a group you have to map the AIX <b>_users_ </b>attribute to the _memberuid_ ldap attribute. For compat tree, in the file ipagroup.map i've mapped the AIX _users_ attribute to the _memberuid_ ipa/ldap attribute and therefore i have the list of the users for that particular group.  Having the user list which are members to a group translates to having the group list of the users (if we invert the logic).<br></div><div>Does that make more sense now ? <br> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
Main tree in FreeIPA uses RFC2307bis schema which supports nested<br>
groups.<br>
<br>
</blockquote>
Any plans to support RFC2307AIX schema ?<br>
</blockquote>
No.<br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
On AIX, IBM officially supports only AIX, RFC2307, and RFC2307AIX<br>
schemas. AIX's automounter does support RFC2307bis automount maps but<br>
the rest of the system does not support RFC2307bis. In particular, AIX<br>
does not understand member attribute  dereference.<br>
<br>
<br>
My question is if it is allowed to mix the compat and accounts cn for the<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
userbasedn and groupbasedn on the same unix ldap client ?<br>
<br>
</blockquote>
No, not really. You are messing it up something that your client<br>
does not understand.<br>
<br>
</blockquote>
As i explained above, i could use the basic attributes in the compat tree<br>
for groups in order to update the AIX "groups" attribute (based on<br>
memberuid list). Is there anything which can break the functionality if the<br>
compat tree is used instead of the main/accounts tree  or it is a fortunate<br>
coincidence that this setup works ?<br>
</blockquote>
Why you don't use compat tree for both users and groups in AIX? This is<br>
how it was designed to be used.<span class="gmail-HOEnZb"><font color="#888888"><br></font></span></blockquote><div>Actually the compat tree was the default one configured by the ldap client, but checking the ldap structure seemed more logical to use the default ipa ldap tree which is used as well for Linux. Moreover i did not understood what is exactly the purpose of the compat tree and i was quite confused . Apart from that i missed  some krb* related attributes for the user, but probably i have to re-evaluate that and use compat tree for both users and groups, if that's what it was designed for. <br> <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class="gmail-HOEnZb"><font color="#888888">
<br>
-- <br>
/ Alexander Bokovoy<br>
</font></span></blockquote></div><br></div></div>