Building DMD on Linux with Windows Domain Logins

Kai Meyer kai at unixlords.com
Mon May 23 15:37:33 PDT 2011


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


More information about the Digitalmars-d mailing list