Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: List Microsoft AD users with perl on Linux (active and inactive users)

by Sinistral (Monsignor)
on Feb 23, 2011 at 15:16 UTC ( [id://889802]=note: print w/replies, xml ) Need Help??


in reply to List Microsoft AD users with perl on Linux (active and inactive users)

As viveksnv so helpfully points out, the LDAP interfaces in Perl are many and varied, with Net::LDAP leading the pack. However, it sounds like you are wanting more fundamental information, namely, "how do I query Active Directory using LDAP (and you're using ldapsearch command, not a Perl API)". That information seems to be carefully explained in an article in the "Hey, Scripting Guy!" blog on TechNet. Although that example uses Windows command line scripting (which if you're actually working with Active Directory you should be doing anyway, using the Microsoft tools that make such things easier than raw LDAP), it's easy enough to figure out the filters and proper values to query for. I also found an article describing how to use dsquery to do the same thing. If you're working with a newer A/D installation, you should check out Active Directory Administration using PowerShell from the folks at Microsoft. After all, they did create the system.

Update: Read your request too quickly, now see the very important from Linux in your post. Sorry about that. You can still use the Scripting Guy information to help you, though.

  • Comment on Re: List Microsoft AD users with perl on Linux (active and inactive users)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://889802]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found