summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-02-12 00:40:41 +0000
committerAndrew Tridgell <tridge@samba.org>2003-02-12 00:40:41 +0000
commit8a8cca78adebba640c6ce971d8888515bf0ea4be (patch)
treef916473db212c19910d9ebb2f9972f9104af0686
parent3cf539421fa2a5c276baeedbdbf42ced29d9f1e4 (diff)
downloadsamba-8a8cca78adebba640c6ce971d8888515bf0ea4be.tar.gz
samba-8a8cca78adebba640c6ce971d8888515bf0ea4be.tar.xz
samba-8a8cca78adebba640c6ce971d8888515bf0ea4be.zip
add a note about a better method for finding netbios name of workgroup
(not implemented yet)
-rw-r--r--source/libads/ldap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c
index 41e70fbcaea..867d124273f 100644
--- a/source/libads/ldap.c
+++ b/source/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)
{