[postfix-users] ldap und postfix
ldap-aliases.cf:
bind = yes bind_dn = cn=xxxxxxx,ou=Hosts,dc=uni-magdeburg,dc=de bind-pw = yyyyyy version = 3 timeout = 20 size_limit = 1 expansion_limit = 0 server_host = ldaps://ldap.uni-magdeburg.de:636 search_base = dc=uni-magdeburg,dc=de query_filter = (mailLocalAddress=%s) result_attribute = mailForwardingAddress
klappt nicht...
postmap -q margrit.lottmann@urz.uni-magdeburg.de ldap:/opt/pmx/postfix/etc/ldap-aliases.cf postmap: warning: dict_ldap_set_tls_options: Unable to set tls_require_cert to 0: -1: Can't contact LDAP server
???
aber ausserhalb klappt ldapsearch:
ldapsearch -H ldaps://ldap.uni-magdeburg.de -b "dc=uni-magdeburg,dc=de" -x -D "cn=xxxxxxx,ou=Hosts,dc=uni-magdeburg,dc=de" -w yyyyyy mailLocalAddress=margrit.lottmann@urz.uni-magdeburg.de mailForwardingAddress
???
-- MfG Margrit Lottmann
Otto-von-Guericke-Universitaet Magdeburg Abt. Kommunikation und Netze
Tel.: 0391 67 58572 Fax: 0391 67 11134
Am 10.06.2011 14:57, schrieb Margrit Lottmann:
ldap-aliases.cf:
bind = yes bind_dn = cn=xxxxxxx,ou=Hosts,dc=uni-magdeburg,dc=de bind-pw = yyyyyy version = 3 timeout = 20 size_limit = 1 expansion_limit = 0 server_host = ldaps://ldap.uni-magdeburg.de:636 search_base = dc=uni-magdeburg,dc=de query_filter = (mailLocalAddress=%s) result_attribute = mailForwardingAddress
klappt nicht...
welche Postfix-Version nutzt Du? Ich kann nur ein Beispiel für Postfix 2.8.3 hier liefern:
server_host = ldap://xxxxx/ ldap://yyyyy/
start_tls = yes tls_ca_cert_file = /ca/cacert_org.crt tls_cert = /ca/xxxxxxx/newcert.pem tls_key = /ca/xxxxxxxx/newkey.pem tls_require_cert = yes
search_base = ou=xxxxxxxx,dc=de bind = sasl sasl_mechs = EXTERNAL scope = sub query_filter = (&(objectClass=rnsMSPostfixAccount)(rnsMSRecipientAddress=%s)) result_attribute = rnsMSDeliverToAddress version = 3 # debuglevel = 2
Wo sind bei Dir die TLS-Angaben? Ist die CA bekannt?
LG Christian
participants (2)
-
Christian Roessner
-
Margrit Lottmann