Ajout de fichiers dans le plugins python.
darcs-hash:20071218042114-af139-8ce65c1c19fb24d871bddf18dfc29bd0627a40b1.gz
This commit is contained in:
parent
30982be082
commit
81ab684f93
12 changed files with 135 additions and 7 deletions
23
etc/python/template/postfix/ldap.py
Normal file
23
etc/python/template/postfix/ldap.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
# -*- 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")
|
||||
|
||||
@# 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
|
Loading…
Add table
Add a link
Reference in a new issue