Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
domain=$1
ldapsearch -h eftdomain.net \
-b "dc=${domain},cn=MicrosoftDNS,cn=System,dc=eftdomain,dc=net" \
-D "jameswhite@eftdomain.net" \
-s sub -xw ${WINDOWS_PASSWORD} \
"(objectClass=dnsNode)" | tr "\n" '%'| sed -e 's/% //g' | tr '%' "\n"
# dnssearch eftdomain.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.