
Ignore-this: a03d38134f839406206dc21026694d4d darcs-hash:20090414022624-ffbb2-6a5db51778c1494d92f9640b9711ee9e8700cd4d.gz
25 lines
668 B
Python
25 lines
668 B
Python
# -*- mode: python; coding: utf-8 -*-
|
|
|
|
# Ce fichier sert de template pour les fichiers /etc/postfix/ldap-*.cf
|
|
# Pour l'utuliser, il faut l'inclure en instanciant les variables:
|
|
# query: requete faite a la base
|
|
# result: le champ a recuperer dans le resultat
|
|
|
|
include("secrets")
|
|
include("ldap")
|
|
keysep = " = "
|
|
|
|
@# Connexion LDAP
|
|
%server_host = ldap_host
|
|
%search_base = "ou=data,dc=crans,dc=org"
|
|
%version = 3
|
|
%bind = True
|
|
%bind_dn = secrets.ldap_postfix_auth_dn
|
|
%bind_pw = secrets.ldap_postfix_password
|
|
|
|
@# Requete faite a la base, %s est remplace
|
|
@# par l'alias recherche
|
|
%query_filter = query
|
|
|
|
@# Le champ qui nous interresse en particulier
|
|
%result_attribute = result
|