[cvsnt] Crash on Win32 with long domainname

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


> 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