Re: [exim] exim samba4 active directory

Top Page
Delete this message
Reply to this message
Author: Marco Gaiarin
Date:  
To: Benoît PELISSIER via Exim-users
CC: exim-users
Subject: Re: [exim] exim samba4 active directory
Mandi! Benoît PELISSIER via Exim-users
In chel di` si favelave...

> So someone can help me with example file or i will try it alone (with my
> no-brain) ? :)


For examples:

LOCAL_AD_SERVERS = vdcsv1.ad.fvg.lnf.it::3268
LOCAL_AD_BASE_DN = ${quote_ldap:OU=FVG,DC=ad,DC=fvg,DC=lnf,DC=it}
# You have to create a user to access the LDAP/AD server
LOCAL_AD_BIND_DN = ${quote_ldap:CN=mta,OU=Restricted,DC=ad,DC=fvg,DC=lnf,DC=it}
LOCAL_AD_PASS = "nontelado"


Then:

.ifdef LOCAL_AD_SERVERS
ldap_default_servers = LOCAL_AD_SERVERS
ldap_start_tls = true
ldap_require_cert = never
.endif


so, a query:

.ifdef LOCAL_AD_SERVERS

user_ad_aliases:
debug_print = "R: user_ad_aliases for $local_part@$domain"
driver = redirect
domains = +local_domains
data = ${lookup ldap {user=LOCAL_AD_BIND_DN pass=LOCAL_AD_PASS ldap:///LOCAL_AD_BASE_DN?uid?sub?(&(objectClass=user)(!(objectClass=computer))(mail=${quote_ldap:${local_part}}@${quote_ldap:${domain}}))}}

.endif

-- 
  Non mi interessa sentirmi intelligente guardando in tv dei cretini,
  preferirei sentirmi un cretino di fronte a persone eccellenti.
                        (Franco Battiato)