RSS feed

[FIX] nslcd 0.7.x and large gidNumbers

[Date Prev][Date Next] [Thread Prev][Thread Next]

[FIX] nslcd 0.7.x and large gidNumbers


I encountered a problemwith nslcd and large gidNumbers. On version 0.7.5 
(scientific linux 6 and i assume others), large gid's in from passwd lookups 
get truncated, so for a user:

uid: username
uidNumber: 1412600003
gidNumber: 1412600003

the gidNumber would get truncated to 141260000

This presents itself as an error of 'id: cannot find name for group ID 
141260000' when the user logs in.

It looks like the buffer for the gidNumber is too small for the number. The 
attached patch increases the buffer size to allow for longer gidNumbers. I'm 
not sure if there is an actual limit defined for gidNumbers, so i made it 15 
characters, and it seems to work.

ZettaServe Disclaimer: This email and any files transmitted with it are 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately if you have received this email by mistake and delete this email 
from your system. Computer viruses can be transmitted via email. The recipient 
should check this email and any attachments for the presence of viruses. 
ZettaServe Pty Ltd accepts no liability for any damage caused by any virus 
transmitted by this email.

Attachment: fix-long-gidNumbers.patch
Description: fix-long-gidNumbers.patch

To unsubscribe send an email to or see