Displaying 1 result from an estimated 1 matches for "siteobject".
Did you mean:
saveobject
2018 May 15
0
Query for DC in the same site...
.../12/13/finding-your-active-directory-site-and-domain-controllers/
and seems to work. With the local network i can get the site:
root at vdcsv1:~# ldbsearch -H /var/lib/samba/private/sam.ldb -b "CN=Subnets,CN=Sites,CN=Configuration,DC=ad,DC=fvg,DC=lnf,DC=it" "(cn=10.5.0.0/16)" siteObject
# record 1
dn: CN=10.5.0.0/16,CN=Subnets,CN=Sites,CN=Configuration,DC=ad,DC=fvg,DC=lnf,DC=it
siteObject: CN=SanVito,CN=Sites,CN=Configuration,DC=ad,DC=fvg,DC=lnf,DC=it
# returned 1 records
# 1 entries
# 0 referrals
and doing the simple lookup, i can get the DC:
root at vdcsv1:~# ldbsearc...