Author Topic: Zentyal 4.2 LDAP and Freenas 9.10  (Read 1152 times)

jmserrano

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Zentyal 4.2 LDAP and Freenas 9.10
« on: April 12, 2016, 09:50:01 am »
Hi.

Working with FreeNAS-9.10-STABLE-201603252134 (412fb1c)

I want to connect to Zentyal 4.2 LDAP server.

In freenas, i can see in debug.log the next LDAP query

Apr 7 05:02:49 freenas cachetool.py: [common.freenasldap:374] FreeNAS_LDAP_Directory._search: based
n = 'CN=Users,DC=biodurcal,DC=com', filter = '(&(|(objectclass=person)(objectclass=posixaccount)(obj
ectclass=account))(uid=*))'

This query returns 0 results.

In Zentyal 4.2, user number field (uid) is on attribute sAMAccountname, so this filter

filter = '(&(|(objectclass=person)(objectclass=posixaccount)(objectclass=account))(sAMAccountname=*))'

returns the correct user list.

Is there any way to modify this in Zentyal configuration?

Thanks in advance