-original message- Subject: Re: [gentoo-server] Extract usernames from Active Directory From: Ryan Gibbons <gibbonsr...@routedtechnologies.com> Date: 2011-06-29 02:52
>> Hello list! >> >> I'm in the process of setting up a pair of cloud-based email gateways >> based on Postfix. The gateways are meant to perform 'front line >> filtering' against spammers, before the messages entered the measly >> bandwidth into my company's DMZ. >> >> The 'missing ingredient' would be a way to extract the usernames from >> Windows' Active Directory. I don't really need a full-fledged AD-LDAP >> synchronization, just a way to get them names into a nice list with >> which 'postmap' can act upon. >> >> I plan to run the extractor tool every 30 minutes on one of the Gentoo >> servers in the DMZ, and automagically push the extraction result -- if >> there's anything new -- onto the mail gateways using rsync. And have >> yet-another-script at the gateways run 15 minutes afterwards to >> 'compile' a new file (maybe leveraging make's baked-in timestamp >> detection). >> >> Anyone knows what tool(s) I'll need? Especially for the AD extraction part? >> > It's been a very long time since I've done this, but I believe the link below > will get you going in the right direction > >http://randomerror.wordpress.com/2009/10/16/quick-tip-how-to-search-in-windows-active-directory-from-linux-with-ldapsearch/ Ah, that would be a nice start. Unfortunately, the post was talking about Debian/Ubuntu, and a search on Portage seems to not have the 'ldap-util' package. Lots of interesting packages, though: http://gentoo-portage.com/Search?search=ldap Rgds, -- FdS Pandu E Poluan ~ IT Optimizer ~ Sent from Nokia E72-1