ten thousands users slow login

Asked by farmerbou on 2014-04-24

Hello,

we are using ubuntu 12.04 with samba/winbindd for user accounts from a windows domain.
There are more than 100.000 users. A login by ssh or tty is done in an acceptable time.

But a login with lightdm takes more than a minute to verify the username.

I think the problem is in the Lightdm API.
To get a LightDMUser you have to use:
LightDMUser * lightdm_user_list_get_user_by_name (LightDMUserList *user_list, const gchar *username);
and
LightDMUserList * lightdm_user_list_get_instance (void);

so you have to get a list of all 100.000 users to get one user. This takes more than a minute.

Is there a way to get a LightDMUser without a LightDMUserList?

Question information

Language:
English Edit question
Status:
Answered
For:
Light Display Manager Edit question
Assignee:
No assignee Edit question
Last query:
2014-04-24
Last reply:
2014-04-27
Robert Ancell (robert-ancell) said : #1

This API is just a convenience wrapper around the getpwnam etc calls. You can just use those directly.

Can you help with this problem?

Provide an answer of your own, or ask farmerbou for more information if necessary.

To post a message you must log in.