GDM Greeter
Christopher L Tubbs II
ctubbsii at emich.edu
Fri May 2 06:01:43 UTC 2008
Bob Arendt wrote:
> Matthias Clasen wrote:
>> On Fri, 2008-05-02 at 00:30 -0400, seth vidal wrote:
>>> On Fri, 2008-05-02 at 00:22 -0400, Matthias Clasen wrote:
>>>> On Fri, 2008-05-02 at 00:16 -0400, seth vidal wrote:
>>>>> On Thu, 2008-05-01 at 19:47 -0400, Matthias Clasen wrote:
>>>>>
>>>>>> You have not actually tried it, have you ? Your 10000 network
>>>>>> users are
>>>>>> not going to show up in the user list, since we only populate the
>>>>>> list
>>>>>> with local users.
>>>>> How are you distinguishing local users from any other kind?
>>>>>
>>>> Local users are the ones you get by reading /etc/passwd.
>>> So, you've got a separate reader of /etc/passwd independent of the
>>> normal glibc lookup for users in gdm?
>>>
>>
>> No need; glibc offers fgetpwent.
>>
> Doesn't fgetpwent provide all users via the methods listed for
> passwd in /etc/nsswitch.conf ? F8's gdm is listing our whole
> company as listed by provided by NIS. Has F9 changed this ?
>
Actually, it's fgetpwent(FILE *stream)
You don't even need to pass it /etc/passwd... it could be any file
stream formatted like /etc/passwd
getpwent(void) returns users from all system sources.
run "man fgetpwent" or "man getpwent" for more details.
Rainman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20080502/aa8a0447/attachment.sig>
More information about the fedora-test-list
mailing list