From 3b562efcbd00730c4999aec9950216ef73a34e2b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 12 Feb 2003 00:40:41 +0000 Subject: add a note about a better method for finding netbios name of workgroup (not implemented yet) (This used to be commit 8a8cca78adebba640c6ce971d8888515bf0ea4be) --- source3/libads/ldap.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 41e70fbcae..867d124273 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -1981,6 +1981,13 @@ ADS_STATUS ads_domain_sid(ADS_STRUCT *ads, DOM_SID *sid) for the domain, but there isn't a simple query to do this. Instead we look for the principle names on the DCs account and find one that has the right form, then extract the netbios name of the domain from that + + NOTE! better method is this: + +bin/net -Uadministrator%XXXXX ads search '(&(objectclass=crossref)(dnsroot=VNET3.HOME.SAMBA.ORG))' nETBIOSName + +but you need to force the bind path to match the configurationNamingContext from the rootDSE + */ ADS_STATUS ads_workgroup_name(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, char **workgroup) { -- cgit