ejabberd - Comments for "AD group integration, again" https://www.ejabberd.im/node/5307 en Edit: I just realized that https://www.ejabberd.im/node/5307#comment-58475 <p>Edit: I just realized that you are talking about OUs, not groups! This is <strong>impossible</strong> with the bundled module. You need that modified version mentioned above.</p> Thu, 29 Mar 2012 13:35:09 +0000 mikekaganski comment 58475 at https://www.ejabberd.im Okay. Can't you please https://www.ejabberd.im/node/5307#comment-58474 <p>Okay. </p> <p>Can't you please suggest config for me?</p> Thu, 29 Mar 2012 12:37:06 +0000 tarkhil comment 58474 at https://www.ejabberd.im tarkhil wrote: using https://www.ejabberd.im/node/5307#comment-58473 <div class="quote-msg"> <div class="quote-author"><em>tarkhil</em> wrote:</div> <p>using ldap_rfilter I fetch group</p></div> <p>No, you fetch list of group ids.</p> <p>you fetch group (and its member list) using ldap_gfilter.</p> <p>You cannot tell the module to <em>construct</em> group name in any way, it must be the value of an attribute (not part of it).</p> Thu, 29 Mar 2012 11:30:15 +0000 mikekaganski comment 58473 at https://www.ejabberd.im surely I'm confused. https://www.ejabberd.im/node/5307#comment-58472 <p>surely I'm confused. Documentation doesn't see too clear to me.</p> <p>so, using ldap_rfilter I fetch group</p> <p>than with ldap_gfilter I fetch users.</p> <p>How do I tell mod_s_r_ldap that group is in OU=(.*), in distinguishedName?</p> Thu, 29 Mar 2012 11:19:09 +0000 tarkhil comment 58472 at https://www.ejabberd.im Quote: 2. User - https://www.ejabberd.im/node/5307#comment-58471 <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>2. User - sAMAccountName</p></div> <p>;) You didn't even mention this attribute in the first post.</p> <p>First, let's filter out the irrelevant bits. ldap_auth_check and ldap_user_cache_validity don't matter here, they will only be needed to tune the performance later, when you have everything working.</p> <p>Next, please read the topic I mentioned above. You seem to be confused by the configuration options - there you may find an alternative description of them (well, the description there belongs to modified version of msrl, but the general rules persist).</p> <p>You need to build the groups list first. This is done using ldap_rfilter and ldap_groupattr.<br /> Next, for each group, you need to get its display name and its members (in one query!) using ldap_gfilter, ldap_groupdesc, and ldap_memberattr.<br /> And then you will do a query per user to get their names (and uids, that needed to match what was returned in second stage) using ldap_ufilter, ldap_useruid and ldap_userdesc.</p> <p>ldap_memberattr_format(_re) cannot be used to form group names, and the "_re" version must not use %u/%g syntax.</p> Thu, 29 Mar 2012 11:11:48 +0000 mikekaganski comment 58471 at https://www.ejabberd.im 1.Ejabber 2.1.9, bundled https://www.ejabberd.im/node/5307#comment-58470 <p>1.Ejabber 2.1.9, bundled mod_shared_roster_ldap</p> <p>2. User - sAMAccountName. group - OU=(.*) from dn</p> <p>3. Lots of attempts</p> <p> {ldap_base, "ou=apit,dc=apit,dc=local"},<br /> %% {ldap_groupattr,"distinguishedName"},<br /> %% {ldap_groupdesc,"department"},<br /> %% {ldap_rfilter, "(objectclass=user)"},<br /> %% {ldap_memberattr,"sAMAccountName"},</p> <p> {ldap_userdesc, "cn"},<br /> {ldap_auth_check, "off"},<br /> {ldap_rfilter, "(objectClass=organizationalUnit)"},<br /> %% {ldap_filter,"(ObjectClass=user)"},<br /> %% { ldap_ufilter, "(&amp;(objectClass=user)(department=%u))"},<br /> { ldap_gfilter, "(objectClass=user)" },<br /> {ldap_groupattr,"name"},<br /> {ldap_groupdesc,"ou"},<br /> {ldap_memberattr,"distinguishedName"},<br /> {ldap_memberattr_format_re,"CN=(%u),OU=(%g),OU=APIT,DC=apit,DC=local"},<br /> %% {ldap_memberattr_format,"%u"},<br /> {ldap_user_cache_validity, 0},<br /> {ldap_userdesc,"displayName"}</p> Thu, 29 Mar 2012 08:32:23 +0000 tarkhil comment 58470 at https://www.ejabberd.im You didn't specify the https://www.ejabberd.im/node/5307#comment-58468 <p>You didn't specify the following information required to understand what do you need:<br /> 1. The version of ejabberd and shared roster module you use<br /> 2. The look of desired layout you want to get<br /> 3. The failing setup you have tried</p> <p>Anyway, it looks like you are stuck with the inherent limitation of the vanilla msrl. Probably you will find something useful at <noindex><a href="https://support.process-one.net/browse/EJAB-1480" rel="nofollow" >this issue page</a></noindex>.</p> Wed, 28 Mar 2012 22:10:50 +0000 mikekaganski comment 58468 at https://www.ejabberd.im