Gentoo Archives: gentoo-server

From: Ryan Gibbons <gibbonsr-ml@××××××××××××××××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Extract usernames from Active Directory
Date: Tue, 28 Jun 2011 20:31:29
Message-Id: 30E4910FE22D4641AF976A2D01F428D3@routedtechnologies.com
In Reply to: [gentoo-server] Extract usernames from Active Directory by Pandu Poluan
1 >
2 > Hello list!
3 >
4 > I'm in the process of setting up a pair of cloud-based email gateways
5 > based on Postfix. The gateways are meant to perform 'front line
6 > filtering' against spammers, before the messages entered the measly
7 > bandwidth into my company's DMZ.
8 >
9 > The 'missing ingredient' would be a way to extract the usernames from
10 > Windows' Active Directory. I don't really need a full-fledged AD-LDAP
11 > synchronization, just a way to get them names into a nice list with
12 > which 'postmap' can act upon.
13 >
14 > I plan to run the extractor tool every 30 minutes on one of the Gentoo
15 > servers in the DMZ, and automagically push the extraction result -- if
16 > there's anything new -- onto the mail gateways using rsync. And have
17 > yet-another-script at the gateways run 15 minutes afterwards to
18 > 'compile' a new file (maybe leveraging make's baked-in timestamp
19 > detection).
20 >
21 > Anyone knows what tool(s) I'll need? Especially for the AD extraction part?
22 >
23 > Rgds,
24 >
25 >
26 > --
27 > --
28 > Pandu E Poluan - IT Optimizer
29 > My website: http://pandu.poluan.info/
30 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
31
32 http://randomerror.wordpress.com/2009/10/16/quick-tip-how-to-search-in-windows-active-directory-from-linux-with-ldapsearch/