Bug 737520

Summary: kdm should wait for NIS client to bind
Product: [openSUSE] openSUSE 12.1 Reporter: Christos Gourdoupis <xrigou>
Component: BasesystemAssignee: E-mail List <kde-maintainers>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Patch for /etc/init.d/xdm

Description Christos Gourdoupis 2011-12-17 20:25:10 UTC
Created attachment 467972 [details]
Patch for /etc/init.d/xdm

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0

On a machine which is a NIS client, the kdm greeter may appear before ypbind has connected to the master. This is most likely to happen when using Networkmanager or connecting via wifi.

Reproducible: Always

Steps to Reproduce:
1. Use Networkmanager. Or use ifup with wifi.
2. Configure machine as NIS client via Yast.
3. Edit /etc/sysconfig/displaymanager and set:
   DISPLAYMANAGER="kdm"
   KDM_USERS="@users"
   DISPLAYMANAGER_KDM_THEME=""
4. Reboot machine

Actual Results:  
The kdm greeter appears with only local users (if any) showing on the list.
Wait some time and restart kdm by means of CTRL-ALT-BACKSPACE. The user list is now full.


Expected Results:  
The user list should appear populated from the beginning.

I have added a quick patch that seems to fix the problem for me. I am not sure if it will work in all cases safely.
Comment 1 Christos Gourdoupis 2013-07-19 11:43:15 UTC
This bug has been fixed with systemd NetworkManager-wait-online.service in 12.3.
Although the fix is not perfect, I am closing.