[cvsnt] Crash on Win32 with long domainname

Tony Hoyle tmh at nodomain.org
Sun Jan 25 18:32:55 GMT 2004


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


> James Ogden wrote:
> 
>> BreakNameIntoParts allocates DNLEN+1 characters for the domain name, 
>> DNLEN is defined in (mssdk) lmcons.h as 15, being the maximum domain 
>> name length for
>> Lanman 2.  I believe this is outdated - the code in isDomainMember 
>> uses LsaQueryInformationPolicy to retrieve the DNS name of the domain, 
>> which can (if memory serves) be up to 255 characters.  (Ours is 17 chars)
>>
I can't get it to return anything other than the Lanman name of the 
domain on our domain - which is consitent with the examples that were 
used to build the code in the first place.  I suspect its behaviour only 
changes on 'Legacy free' Win2000 domains, but I don't have access to one 
of those.  Just redefining DNLEN will probably work.

Tony




More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook