View Issue Details

IDProjectCategoryView StatusLast Update
0002032SOGoBackend Address Bookpublic2016-12-22 16:27
Reportersim Assigned Toludovic  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionsuspended 
Product Version2.0.1 
Summary0002032: LDAP SOGoUserSources of groupOfNames members are not decomposed
Description

I've defined a SOGoUserSources for groupOfNames in my LDAP database. The groups are detected and I can add them to emails and invite them to events. However, they do not expand (decompose) to the members of the groups, as stated in the documentation:
"You can set ACLs based on group membership and invite a group to a meeting (and the group will be decomposed to its list of members upon save by SOGo)."

This is happening in the webUI. I've not tried from TB yet.

Additional Information

The SOGoUserSources:
{type=ldap;CNFieldName = cn;IDFieldName = cn;UIDFieldName = cn; MailFieldNames=(cn, mail); scope=SUB; KindFieldName="group";baseDN = "ou=departments,ou=groups,dc=example,dc=com";bindDN="cn=admin,dc=example,dc=com"; bindPassword="secret";canAuthenticate = YES;displayName = "Departments"; hostname="192.168.1.5"; id="departments"; isAddressBook=YES; port=389;}

Tagsldap, SOGoUserSources

Activities

sim

sim

2012-10-15 07:16

reporter   ~0004650

On a related note, none of my SOGoUserSources that show in the address book have entries. These are used for logins. So I know they are working. Each SOGoUserSources has an entry in the address book. However they are empty. They do show up on autocomplete. Perhaps there is here. Main SOGoUserSources for logins:
type=ldap;CNFieldName=cn; IDFieldName=uid; UIDFieldName=uid; baseDN="ou=people,dc=example,dc=com"; bindDN="cn=admin,dc=example,dc=com"; bindPassword="secret"; canAuthenticate=YES; displayName="Email Addresses"; hostname="192.168.1.5"; id="people"; isAddressBook=YES; port=389;}

ludovic

ludovic

2012-10-15 11:10

reporter   ~0004654

Last edited: 2012-10-15 11:10

Please show an LDAP entry of one of your group.

sim

sim

2012-10-15 11:18

reporter   ~0004656

Certainly:

dn: cn=it@example.com,ou=departments,ou=groups,dc=example,dc=com
cn: it@example.com
description: Information Technology
member: uid=simon.walter,ou=people,dc=example,dc=com
member: uid=test.person,ou=people,dc=example,dc=com
objectclass: groupOfNames
objectclass: top

Then I tried this as mourik jan heupink <heupink@gmail.com> explained on the mailing list. This does not work either:

dn: cn=it,ou=departments,ou=groups,dc=example,dc=com
cn: it
description: Information Technology
mail: it@example.com
member: uid=simon.walter,ou=people,dc=example,dc=com
member: uid=test.person,ou=people,dc=example,dc=com
objectclass: groupOfNames
objectclass: top
objectclass: extensibleObject

Any other info you need, please let me know. It's not in production yet, so I can play with the server.

ludovic

ludovic

2012-10-15 11:21

reporter   ~0004657

UIDFieldName=uid and UIDFieldName=uid try wrong, you have no UID in there. try with =cn.

sim

sim

2012-10-15 12:00

reporter   ~0004659

Please see the first SOGoUserSources example, not the one in the note. (That is my main SOGoUserSources - not groups) For the above LDAP groups I have 'cn' for CNFieldName, IDFieldName, and UIDFieldName as in the first example.

But maybe I should try uid instead? I will try now...

OK, what I've found is that one cannot have more than one MailFieldNames. I had MailFieldNames=(cn, mail). This did not work. I changed it to MailFieldNames=(cn) and it worked.

Though the documentation does seem to indicate it can be more than one: "an array of fields that returns the user's email addresses". Either way we need to change the docs or make it work with more than one MailFieldNames.

The addresses still do not decompose when writing emails. I suppose that is by design. I was going to have the MTA take care of that anyway. So it does not affect me. However, those used to Outlook might like that.

Another thing is: the decomposition does not take place until after the event is saved and closed. Which means one cannot see the free/busy info for group members. It's not a showstopper, but it would be nice.

sim

sim

2012-10-15 12:08

reporter   ~0004660

To follow up:

If I use only one SOGoUserSources (the one at the top) I cannot login. I have three SOGoUserSources: logins, groups, emails. Though the groups have the same members. If someone wants to use just one SOGoUserSources, it will not work. I have tried a combination of cn or uid for the CNFieldName, IDFieldName, and UIDFieldName fields. Again, it's not a showstopper, but it sounds like it should work because of 'canAuthenticate = YES' must be set.

ludovic

ludovic

2016-12-22 16:27

reporter   ~0011089

Suspending this old bug for now - the code for groupOfNames vs. other object classes is exactly the same. Reopen if necessary, we'll be happy to look at it if the problem persist with SOGo v3.

Issue History

Date Modified Username Field Change
2012-10-15 07:09 sim New Issue
2012-10-15 07:16 sim Note Added: 0004650
2012-10-15 07:16 sim Tag Attached: ldap
2012-10-15 07:16 sim Tag Attached: SOGoUserSources
2012-10-15 11:10 ludovic Note Added: 0004654
2012-10-15 11:10 ludovic Note Edited: 0004654
2012-10-15 11:18 sim Note Added: 0004656
2012-10-15 11:21 ludovic Note Added: 0004657
2012-10-15 12:00 sim Note Added: 0004659
2012-10-15 12:08 sim Note Added: 0004660
2016-12-22 16:27 ludovic Note Added: 0011089
2016-12-22 16:27 ludovic Status new => closed
2016-12-22 16:27 ludovic Assigned To => ludovic
2016-12-22 16:27 ludovic Resolution open => suspended