View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002322 | SOGo | Backend Address Book | public | 2013-05-15 14:04 | 2017-01-06 19:57 |
Reporter | mmerlone | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | open | ||
Product Version | 2.0.5 | ||||
Summary | 0002322: LDAP filter on SOGoUserSources | ||||
Description | When not set "filter" attribute on SOGoUserSources, a search for "geral" on addressbook generates a ldap search like this: SRCH base="dc=a1,dc=ind" scope=2 deref=0 filter="(|(sn=geral)(displayName=geral)(telephoneNumber=geral)(mail=geral)(cn=geral*))" If set filter = "(|(objectClass=mailUser)(objectClass=mailGroup))"; it ignores any filter and generates a search like this: SRCH base="dc=a1,dc=ind" scope=2 deref=0 filter="(objectClass=*)" The expected filter would be an "and" like this: "(& (|(objectClass=mailUser)(objectClass=mailGroup)) (|(sn=geral)(displayName=geral)(telephoneNumber=geral)(mail=geral)(cn=geral*)) )" | ||||
Tags | No tags attached. | ||||
Unfortunately, the filter attribute doesn't take a LDAP filter. Please see page 17-18 of the configuration guide : http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf Can you try with this: |
|
Indeed, the resulting ldap search sent to the server is the expected (also using SearchFieldNames): filter="(&(|(uid=geral)(cn=geral)(sn=geral)(givenName=geral)(mail=geral*))(|(objectClass=mailUser)(objectClass=mailGroup)))" On the referred doc there is no explicit information that the filter attribute doesn't take a LDAP filter, just an example that is not enough to make this clear. Also, on page 20 it is documented just as "the LDAP filter", which leads to the logic conclusion that it is a plain ldap filter. Perhaps this could be more specific on the docs. Thanks for the clarification. |
|
I know... I'm fixing that right now. |
|
fixed: https://github.com/inverse-inc/sogo/commit/1d1ed9a031f17d607b804bcb177fa106c46f6f9b |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2013-05-15 14:04 | mmerlone | New Issue | |
2013-05-15 17:37 |
|
Note Added: 0005594 | |
2013-05-15 18:05 | mmerlone | Note Added: 0005595 | |
2013-05-15 18:33 |
|
Note Added: 0005596 | |
2013-05-15 18:54 |
|
Note Added: 0005597 | |
2013-05-15 18:54 |
|
Assigned To | => jraby |
2013-05-15 18:54 |
|
Status | new => resolved |
2017-01-06 19:57 | francis | Status | resolved => closed |