Extension Attribute Help Finding Open Directory Binding

PCHS-IT
New Contributor

I need to be able to find what open directory each computer is bound to. I think the only way is to create an extension attribute to pull it with inventory. I want to use this information to eventually re-bind some machines to their building specific OD.

1 REPLY 1

rtrouton
Release Candidate Programs Tester

In a bit of serendipity, Sonic84 just posted an extension attribute for AD that (with very minor editing), you could use for OD:

https://jamfnation.jamfsoftware.com/discussion.html?id=6253

This extension attribute should show the OD server that particular machines are bound to:

#!/bin/bash

result="`dscl /Search -read / | grep "/LDAPv3/" | sort -u`"
echo "<result>$result</result>"

exit 0