| |||||||||||||||||||||||||||||||
|
mynetworks = $config_directory/mynetworks and in this file are all the networks listed: 192.168.1.0/24 172.23.10.0/24 127.0.0.0/8 217.1.2.3/28 Is it possible to replace this lookup with a LDAP lookup? I tried this: mynetworks = ldap:$config_directory/ldap/mynetworks.cf And the query is: server_host = ldap://localhost bind_dn = cn=Postfix,dc=example,dc=com bind_pw = secret search_base = ou=Networks,cn=Postfix,dc=example,dc=com query_filter = (ipNetworkNumber=%s) result_attribute = ipNetworkNumber With postmap -q 192.168.1.0/24 ldap:./mynetworks.cf I get result back. But with postmap -q 192.168.1.1 ldap:./mynetworks.cf I get no result back although it is an allowed network address. Perhaps it is simple but I can't find a proper solution. Does someone give me a hint how I can lookup specific IP numbers and storing IP ranges in LDAP? Regards R.J. Baart
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com