Building DMD on Linux with Windows Domain Logins

Walter Bright newshound2 at digitalmars.com
Mon May 23 21:55:18 PDT 2011


On 5/23/2011 4:10 PM, KennyTM~ wrote:
> On May 24, 11 06:37, Kai Meyer wrote:
>> Funny thing happened today. I tried building DMD from source, and got this:
>>
>> dmd: libelf.c:171: void OmToHeader(Header*, ObjModule*): Assertion `len
>> <= 6' failed.
>>
>> Digging around, and it appears that my user ID can only be 6 characters
>> long. Doh! I happen to be on a RHEL 6 workstation that can authenticate
>> users via a Windows Domain Controller (using samba + winbind). My
>> smb.conf looks has these two lines:
>>
>> idmap uid = 16777216-33554431
>> idmap gid = 16777216-33554431
>>
>> Which is to say "If a uid or gid appears on the system, use winbind to
>> resolve to a name".
>>
>> On my machine, my user looks like this:
>> [kai.meyer at kai-rhel6 BUILD]$ id
>> uid=16777216(kai.meyer) gid=16777221(domain users)
>> groups=16777221(domain
>> users),16777223(SENSORED),16777224(SENSORED),16777225(SENSORED),16777226(SENSORED)
>>
>>
>>
>> That's right. My UID is 8 characters long.
>>
>> Are we interested in accommodating UID and GID's that are this big?
>>
>> -Kai Meyer
>
> An old bug (e.g.
> http://www.mail-archive.com/dmd-internals@puremagic.com/msg00402.html). The
> 'uid' > 6 digit problem has been worked-around, but the 'gid' hasn't.
>

Post to bugzilla!


More information about the Digitalmars-d mailing list