LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   GNOME hangs with LDAP Authentication (http://www.linuxquestions.org/questions/fedora-35/gnome-hangs-with-ldap-authentication-719558/)

sreeharsha.t 04-16-2009 07:38 AM

GNOME hangs with LDAP Authentication
 
Hi,

I have recently configured my Fedora 9 computer to use LDAP Authentication using a Fedora Directory Server. In the Configuration options, I have selected 'Local Authorization is sufficient for local users' and 'Create home directories on the first login'.

Now when I try to login into gnome. The gnome hangs (mouse pointer responds), and only the wallpaper is shown without any GUI.

To test whether there was any problem with the LDAP server authentication I tried to login into through the console <ctrl+shift+F2> and it succeeded with the following messages:

localhost login:harsha
password: <LDAP password for harsha>
'Creating user home directory.../home/harsha
'Creating bash_profile.... /home/harsha/.bash_profile'
..................few more............
[harsha@localhost~]#

then i restarted X using :killall Xorg and logged into gnome, this time Gnome showed up!

My diagnostics on this are:
1.Gnome is not creating home directories for LDAP users on their first login. (This is happening because there is no home directory for the LDAP user)
2.In order to login to the Gnome initially, an LDAP user has to login through the console which creates his home directories.

Now my question is, Can we configure gnome to create home directories for LDAP users at their first login without logging in through console? if so, how?


Thanks in advance.

custangro 04-16-2009 11:49 PM

Quote:

Originally Posted by sreeharsha.t (Post 3510910)
Hi,

I have recently configured my Fedora 9 computer to use LDAP Authentication using a Fedora Directory Server. In the Configuration options, I have selected 'Local Authorization is sufficient for local users' and 'Create home directories on the first login'.

Now when I try to login into gnome. The gnome hangs (mouse pointer responds), and only the wallpaper is shown without any GUI.

To test whether there was any problem with the LDAP server authentication I tried to login into through the console <ctrl+shift+F2> and it succeeded with the following messages:

localhost login:harsha
password: <LDAP password for harsha>
'Creating user home directory.../home/harsha
'Creating bash_profile.... /home/harsha/.bash_profile'
..................few more............
[harsha@localhost~]#

then i restarted X using :killall Xorg and logged into gnome, this time Gnome showed up!

My diagnostics on this are:
1.Gnome is not creating home directories for LDAP users on their first login. (This is happening because there is no home directory for the LDAP user)
2.In order to login to the Gnome initially, an LDAP user has to login through the console which creates his home directories.

Now my question is, Can we configure gnome to create home directories for LDAP users at their first login without logging in through console? if so, how?


Thanks in advance.

I had a similar problem and I put this in my /etc/pam.d/gdm file...

Code:

auth sufficient pam_ldap.so
account sufficient pam_ldap.so
password sufficient pam_ldap.so

That seemed to work for me...

-C


All times are GMT -5. The time now is 03:40 AM.