getent passwd of an unused uid issues...

Dmitry Butskoy buc at odusz.so-cdu.ru
Wed Oct 17 12:17:59 GMT 2007


Gerald (Jerry) Carter wrote:
>> How to reproduce:
>> Samba is 3.0.26a,
>> idmap backend = rid
>> range, say 1000-100000
>>
>> Try any "unexistent" user, f.e. 1000 :
>>
>> # getent passwd 1000
>> :*:1000:0::/home/:/bin/bash
>>
>> i.e. instead of empty output, we have something with 
>> "empty" username!  And "ls -l" fields for such uidnumbers
>> are then empty (not numerical, as should be).
>>     
>
> That looks familar.  Please send me the level 10 debug logs from all
> winbindd processes.  Thanks.
>   

It seems for me that is something in 
"nsswitch/winbindd_async.c:query_user_recv()" .
Unlike in other similar functions, there is only:
"if (!success) {}"
block, and then probably missing:
"if (response->result != WINBINDD_OK) {}"
...


~buc

P.S. I can test any patches if needed.



More information about the samba-technical mailing list