ten thousands users slow login

Asked by farmerbou on 2014-04-24


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);
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

English Edit question
Light Display Manager Edit question
No assignee Edit question
Last query:
Last reply:
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.