Skip to main content
Question

Determining a Mac's bindings

  • August 8, 2011
  • 4 replies
  • 19 views

Hey folks,

Trying to see if there is a way to determine a Mac's directory bindings remotely? I can touch each Mac remotely or physically visit each Mac, but there should be a good way of determining if a Mac's bindings are working correctly.

Any thoughts on this?

Mick

4 replies

Forum|alt.badge.img+21
  • Contributor
  • August 8, 2011

There is an active directory status field in the operating system section of the inventory record of a Mac which tells you if it's bound and to what domain. However, if you're trying to figure out if that binding is red ball or green ball currently, that I'm not too certain about.

Craig E


Forum|alt.badge.img+13

if they're working or if they're present?

and are you looking for AD, OD, other, or all?

this will show you any OD bindings: dscl localhost -list /LDAPv3

to test, add a user or some other object in the directory and perform a lookup. if the machine is properly bound, the lookup will succeed. if not, it may need to be reconfigured.

likewise, dsconfigad -show will show you AD bind details.


bentoms
Forum|alt.badge.img+35
  • Hall of Fame
  • August 8, 2011

Edit the below to do an AD lookup:

set ADGroups to do shell script "dscl /Active Directory/All Domains -read /Users/" & loggedInUser & " | awk '/^dsAttrTypeNative:memberOf:/,/^dsAttrTypeNative:msExchHomeServerName:/'"

Regards,

Ben.


  • August 9, 2011

You may want to try dsstatus, which is a command line version of the "Network Accounts Available" indicator.
On Aug 8, 2011, at 5:36 PM, Michael D Conners wrote:

https://github.com/jatoben/dsstatus

-- Ben