diff options
author | Jeremy Allison <jra@samba.org> | 2003-02-12 01:07:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-02-12 01:07:48 +0000 |
commit | abbbaa2f6f9f05164cf146ea3c712ea5a57afaa9 (patch) | |
tree | 59a338777ff2864c234b1808887cdc17dad077f3 /source3/libads | |
parent | dc1f0fd79ad7037cb32d8f08f6e353000ae52d0b (diff) | |
download | samba-abbbaa2f6f9f05164cf146ea3c712ea5a57afaa9.tar.gz samba-abbbaa2f6f9f05164cf146ea3c712ea5a57afaa9.tar.bz2 samba-abbbaa2f6f9f05164cf146ea3c712ea5a57afaa9.zip |
Merging from HEAD - add a note about a better method for finding netbios name of workgroup
(not implemented yet)
Jeremy.
(This used to be commit c0eab99753032f5f49bc7adeb1ff95eceb6fe0fe)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ldap.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) { |