|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
RE: Hash from ldap
ago
lsc.hu
Date: Fri Jun 10 2005 - 02:10:56 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>> Postfix does not provide any tools to build flat maps from an LDAP
>> source.
> I asked because the general wisdom seems to be that using only ldap for
> lookups is a bad idea as postfix does many queries to the ldap server.
LDAP is just one way to do it. If you do it in LDAP way you have great
freedom t define lookups the way you want. It's much more easy to manage
one database than n+1 flat/hash files.
> Potentially causiong DOS if the ldap server gets oveloaded by a spammer.
What are you talking about? Postfix maximizes the number of connections to
ldap servers. Just take a look at master.cf.... If you want to avoid
resource starvation and DoS/DDoS that's not the way.
> just wondered if there was a quick and easy way of creating hashes from
> ldap
yes. Write a little bash/csh+awk script to dump the datas you need from
ldap and create a text file from datas than postmap them.
Put this script into crontab and run it as frequent as you want. Keep in
mind that the maximum latency will be the frequency of execution. Eg. */5
in crontab will provide 5 minutes latency in worst case.
Tune your script to create files and hashes when neccessary only.
bye,
Ago
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]