View Issue Details

IDProjectCategoryView StatusLast Update
0003532SOGoBackend Generalpublic2016-12-15 19:46
Reporterchrroessner Assigned Toludovic  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSUbuntuOS Version14.04 LTS
Product Version2.3.8 
Summary0003532: Authentication fails with LDAP/memberof-overlay
Description

If you add the "memberof" overlay to a LDAP backend to support groups in SOGo, SOGo will run into some deadlock

Feb 17 09:21:04 sogod [14008]: [WARN] <0x0x7f757d505a08[WOWatchDogChild]> pid 14011 has been hanging in the same request for 1 minutes
Feb 17 09:22:04 sogod [14008]: [WARN] <0x0x7f757d505a08[WOWatchDogChild]> pid 14011 has been hanging in the same request for 2 minutes
Feb 17 09:23:04 sogod [14008]: [WARN] <0x0x7f757d505a08[WOWatchDogChild]> pid 14011 has been hanging in the same request for 3 minutes
Feb 17 09:24:04 sogod [14008]: [WARN] <0x0x7f757d505a08[WOWatchDogChild]> pid 14011 has been hanging in the same request for 4 minutes
Feb 17 09:25:04 sogod [14008]: [WARN] <0x0x7f757d505a08[WOWatchDogChild]> pid 14011 has been hanging in the same request for 5 minutes
Feb 17 09:26:04 sogod [14008]: [WARN] <0x0x7f757d505a08[WOWatchDogChild]> pid 14011 has been hanging in the same request for 6 minutes
2016-02-17 09:26:27.153 sogod[14011] WARNING(+[EOQualifier(Parsing) qualifierWithQualifierFormat:]): unexpected chars at the end of the string(class=GSMutableString,len=137) '(rnsMSRecipientAddress='test1') OR (uniqueIdentifier='test1') AND (memberOf=ou=exampleserver.de,ou=groupware,ou=it,dc=roessner-net,dc=de)'
2016-02-17 09:26:27.154 sogod[14011] buf-length: 137
2016-02-17 09:26:27.154 sogod[14011] length: 62
2016-02-17 09:26:27.154 sogod[14011] char[length]: 'A' (65) 'AND (memberOf=ou=exampleserver.de,ou=groupware,ou=it,dc=roessner-net,dc=de)'
Feb 17 09:27:04 sogod [14008]: [WARN] <0x0x7f757d505a08[WOWatchDogChild]> pid 14011 has been hanging in the same request for 7 minutes

Steps To Reproduce

If you configure SOGo like this:

...
// Domains
domains = {
"exampleserver-de" = {
SOGoMailDomain = "exampleserver.de";
SOGoUserSources = (
{
CNFieldName = cn;
IMAPLoginFieldName = rnsMSDovecotUser;
KindFieldName = Kind;
MailFieldNames = (
mail
);
MultipleBookingsFieldName = Multiplebookings;
UIDFieldName = rnsMSDovecotUser;
baseDN = "ou=it,dc=roessner-net,dc=de";
bindDN = "cn=sogo,ou=people,ou=it,dc=roessner-net,dc=de";
filter = "(memberOf=ou=exampleserver.de,ou=groupware,ou=it,dc=roessner-net,dc=de)";
bindFields = (
rnsMSRecipientAddress,
uniqueIdentifier
);
bindPassword = ***;
canAuthenticate = YES;
displayName = "Gemeinsame Adressen";
hostname = ldap://db.roessner-net.de/????!StartTLS;
id = directory2;
isAddressBook = YES;
scope = SUB;
type = ldap;
}
);
};
"iladresse-de" = {
...

and you have a LDAP group ou=exampleserver that holds several uids from the database, SOGo is not able to perform a successfull login. After minutes, the web interface shows an unhandled error and the log shows errors as seen above.

Additional Information

A simple ldapsearch on the commandline demonstrates a working LDAP:

ldapsearch -LL -xWD cn=sogo,ou=people,ou=it,dc=roessner-net,dc=de -H ldapi:/// "(memberOf=ou=exampleserver.de,ou=groupware,ou=it,dc=roessner-net,dc=de)" -b ou=it,dc=roessner-net,dc=de
Enter LDAP Password:
version: 1

dn: uid=de20005,ou=people,ou=it,dc=roessner-net,dc=de
sn: Testaccount 1
cn:: IFRlc3RhY2NvdW50IDE=
uniqueIdentifier: test1
amavisLocal: TRUE
mail: test1
userPassword: ****
rnsMSDovecotUser: de20005@srvint.net
rnsMSDeliverToAddress: de20005@srvint.net
rnsMSMailboxHome: /var/mail/virtual/de20005
objectClass: inetOrgPerson
objectClass: rnsMSPostfixAccount
objectClass: rnsMSDovecotAccount
objectClass: amavisAccount
objectClass: calEntry
objectClass: extensibleObject
objectClass: top
rnsMSRecipientAddress: test1@exampleserver.de
rnsMSRecipientAddress: de20005@srvint.net
uid: de20005

dn: uid=de20006,ou=people,ou=it,dc=roessner-net,dc=de
sn: Testaccount 2
cn:: IFRlc3RhY2NvdW50IDI=
uniqueIdentifier: test2
amavisLocal: TRUE
mail: test2@exampleserver.de
userPassword: ****
rnsMSDovecotUser: de20006@srvint.net
...

TagsNo tags attached.

Activities

ludovic

ludovic

2016-12-15 19:46

reporter   ~0011003

Your filter is wrong, you must use EOQualifier's syntax, like this:

filter = "memberOf = 'ou=exampleserver.de,ou=groupware,ou=it,dc=roessner-net,dc=de'";

Issue History

Date Modified Username Field Change
2016-02-17 08:39 chrroessner New Issue
2016-12-15 19:46 ludovic Note Added: 0011003
2016-12-15 19:46 ludovic Status new => closed
2016-12-15 19:46 ludovic Assigned To => ludovic
2016-12-15 19:46 ludovic Resolution open => no change required