Re: [exim] exim samba4 active directory

Top Pagina
Delete this message
Reply to this message
Auteur: Benoît PELISSIER
Datum:  
Aan: exim-users
Onderwerp: Re: [exim] exim samba4 active directory
Hi,

thanks for your help !

I do it and now its working !

cat <<EOF >/etc/exim4/conf.d/main/15_exim4-ldap

LOCAL_AD_SERVERS = ${IPAD}::389
LOCAL_AD_BASE_DN = \${quote_ldap:CN=Users,DC=${DOMAINE},DC=${SUFFIX}}
LOCAL_AD_BIND_DN =
\${quote_ldap:CN=${LDAPUSER},CN=Users,DC=${DOMAINE},DC=${SUFFIX}}
LOCAL_AD_PASS = "${LDAPPASS}"

.ifdef LOCAL_AD_SERVERS
ldap_default_servers = LOCAL_AD_SERVERS
ldap_start_tls = false
ldap_require_cert = never
.endif
EOF

chmod 644 /etc/exim4/conf.d/main/15_exim4-ldap

cat <<EOF >/etc/exim4/conf.d/router/898_exim4-config_ldap
.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
EOF

chmod 644 /etc/exim4/conf.d/router/898_exim4-config_ldap

Benoît

Le 09/06/2020 à 21:42, Marco Gaiarin via Exim-users a écrit :
> Mandi! Benoît PELISSIER via Exim-users
>    In chel di` si favelave...

>
>> So third block is router.
>> And first and second ? Where can i put here ?
>
> Put everywhere you want on the first section of exim config file, before ACL
> definition.
>

begin:vcard
fn;quoted-printable:Beno=C3=AEt PELISSIER
n;quoted-printable:PELISSIER;Beno=C3=AEt
org;quoted-printable:LAN2NET - l'informatique fiable sous Linux + logiciels libres;membre du r=C3=A9seau "Alliance-Libre"
adr;quoted-printable;dom:12 avenue Jules Verne;;Les Espaces Jules Verne, b=C3=A2timent A;SAINT-SEBASTIEN SUR LOIRE;;44230
email;internet:bpelissier@???
title;quoted-printable:Technicien syst=C3=A8me & r=C3=A9seau
tel;work:02 85 52 65 37
tel;cell:06 86 03 60 26
url:http://www.lan2net.fr
version:2.1
end:vcard