OS X,Tips April 30, 2013 at 7:00 am

ldapsearch and ldapdelete Examples

Noel Alonso has a post outlining one way you could easily delete a machine out of Active Directory using ldapsearch and ldapdelete.

This script could easily be modified and changed to do various other things, such as passing the hostname in as an argument or doing a different action upon the machine.  Check it out over on his blog.

Nate Walck

Nate is a Systems Reliability Engineer at Dropbox, Inc in San Francisco, CA. He runs afp548.com along with Sam Keeley and is one of the founding members of the ##osx-server IRC channel on freenode.net. He loves being involved in the Mac Admin community and using Open Source projects whenever possible, especially Munki, The Luggage and Puppet.

More Posts

Follow Me:
Twitter

Leave a reply

You must be logged in to post a comment.