cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
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: LDAPng error.png

-- MateuszKDzior - 18 Aug 2015
 

QuestionForm edit

Subject LDAP
Extension LdapNgPlugin
Version Foswiki 2.0.0
Status Asked
Related Topics
Topic revision: r2 - 18 Aug 2015, MateuszKDzior - This page was cached on 23 Mar 2018 - 04:58.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License