This question about LDAP: Asked
Unable to retrieve any data from LdapNgPlugin
I would like to retrieve email addresses for particular accounts from LDAP.
On my Foswiki I have installed:
I use LDAP authentication. Since "_The
LdapNgPlugin will use the default configuration of the
LdapContrib_" and I'm able to log into my Foswiki, I guess I have proper configuration.
Unfortunately, I'm unable to retrieve any data from LDAP.
None of the examples on
LdapNgPlugin page retrieve any results except LDAPUSERS.
So following:
%LDAP{"(objectClass=user)"}%
do not retrieve any results.
I enabled {Ldap}{Debug} and following message is added to Apache error log:
- LdapContrib - called search(filter=(objectClass=user), base=dc=myOrganisation, scope=sub, sizelimit=0, attrs=*)
- LdapContrib - following referral ldap://myOrganisation/dc=myOrganisation
- LdapContrib - following ldap url ldap://myOrganisation/dc=myOrganisation
- LdapContrib - called search(filter=(objectClass=user), base=dc=myOrganisation, scope=sub, sizelimit=0, attrs=*)
- LdapContrib - done following ldap url ldap://myOrganisation/dc=myOrganisation
- LdapContrib - cacheAge=2179, maxCacheAge=86400, lastUpdate=1439367289, refresh=0
- LdapContrib - cacheAge=2180, maxCacheAge=86400, lastUpdate=1439367289, refresh=0
Why I see 'ldap://myOrganisation/dc=myOrganisation' in my log?
It doesn't match '{Ldap}{Host}:' in LDAP configuration.
In {Ldap}{Base} I have set dc=myOrganisation, but why ldap://myOrganisation?
In {Ldap}{Host}: I have 'ldaps://mail.myOrganisation.com'
If this is not a source of my issues - how can I find them?
--
MateuszKDzior - 12 Aug 2015
I think there's a bug in
LdapNgPlugin:
--
MateuszKDzior - 18 Aug 2015