I wrote an extension attribute to determine what AD site the Mac is using, via the Centrify tools.
#!/bin/bash
# determine via Centrify binding the Active Directory Site
site=`adinfo -s`
if [ "$site" == "" ]; then
echo "<result>none</result>"
else
echo "<result>$site</result>"
fi
So far, this works like a charm. Please use this if it is useful to you.
My question is moving forward, how can I use this result to determine which local server to use? (Distribution Point, NetBoot, SUS, etc)
The only obvious solution would be to have smart group logic for each policy... but that would require duplicating every policy for each site. I don't see that scaling well.
I would love for scoping the servers to input from an Extension Attribute, or some direct method like this.