[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    Re: [exim] exim samba4 active directory
From:       Marco Gaiarin via Exim-users <exim-users () exim ! org>
Date:       2020-05-07 20:55:05
Message-ID: 769eog-kte.ln1 () hermione ! lilliput ! linux ! it
[Download RAW message or body]

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)



-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic