[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: GDM Greeter



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

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]