Posting this result because I've had this problem since I started running wireless on my desktop. I use Fedora 10, KDE4.2.
When I login to my computer, NetworkManager tries to initiate a connection to my wireless router, but wants to use the gnome keyring. Because I am using KDE, the keyring isn't unlocked when I login. That means I have to type in my password a second time to give NM access to the data in my keyring.
I searched google looking for a solution, and installed pam_keyring, but because I use KDE, none of them worked for me, until I found this one:
For KDE, instead of modifying /etc/pam.d/gdm, modify /etc/pam.d/kdm.
My kdm file has the following:
auth [success=done ignore=ignore default=bad] pam_selinux_permit.so
auth required pam_env.so
auth substack system-auth
auth optional pam_gnome_keyring.so try_first_pass
account required pam_nologin.so
account include system-auth
password include system-auth
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
session required pam_selinux.so open
session optional pam_keyinit.so force revoke
session required pam_namespace.so
session optional pam_gnome_keyring.so auto_start
session include system-auth
The only change I made to my kdm file was adding the "try_first_pass". Everything else already existed in my kdm file. Now, when I login, NM automatically connects to my router.