Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computer Information.bash - AD test section #5

Open
n0brainer opened this issue May 9, 2019 · 1 comment
Open

Computer Information.bash - AD test section #5

n0brainer opened this issue May 9, 2019 · 1 comment

Comments

@n0brainer
Copy link

I came across your script this morning and was able to modify to my needs, mostly. I have a question/favor/request...

for the section for testing AD binding, I need to have it determine which domain it's connected to (we have 3). I was able to do the section for displaying binding by adding elif statements, but I'm unsure how to do the same for the testing section.

Thank you!

@talkingmoose
Copy link
Owner

Try this command in Terminal on an AD-bound Mac and see if it returns the correct NetBIOS domain. If it does, then we have a place to start.

/usr/bin/dscl "/Active Directory/" -read / SubNodes | /usr/bin/awk 'BEGIN {FS=": "} {print $2}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants