LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-28-2009, 07:43 AM   #1
apkelley
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
Active Directory login returning me to login screen


Hello,

I've very new to linux, so please excuse my ignorance. I am trying to setup a number of servers to authenticate against my Windows Server 2003 active directory. I have successfully done this with one computer (Dell Optiplex 755), but I can’t seem to get it to work with my servers (Dell PowerEdge R710). I am using Fedora 11.

I have setup samba and pam and have successfully joined the network. Everything with winbind seems to be working properly and I can get all the user info, etc.

When I log in with a local account, everything is fine. If I try to log in with an account from my domain through SSH, I see the message

Code:
/usr/bin/xauth:  creating new authority file /home/apkelley/.Xauthority
After that, nothing happens and it is as if I haven’t connected to anything. If I try to log into the actual server using the graphical interface, it starts logging me in, shows a blank screen for about a second, and then returns to the login screen as if nothing has happened.

I would greatly appreciate any suggestions for how I might fix this problem or how to find out more information about the error.

Here are my smb.conf and system-auth files:

/etc/samba/smb.conf

Code:
 [global]
   workgroup = DS
   password server = 192.168.111.9 192.168.111.1
   realm = DS.MYDOMAIN.EDU
   security = ads
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/false
   winbind use default domain = true
   winbind offline logon = false

	log file = /var/log/samba/log.%m
	max log size = 50	
	load printers = yes
	cups options = raw

template homedir = /home/%U
[homes]
	comment = Home Directories
	browseable = no
	writable = yes
	
[printers]
	comment = All Printers
	path = /var/spool/samba
	browseable = no
	guest ok = no
	writable = no
	printable = yes
/etc/pam.d/system-auth

Code:
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      pam_env.so
auth        sufficient    pam_fprintd.so
auth        sufficient    pam_unix.so nullok try_first_pass
auth        requisite     pam_succeed_if.so uid >= 500 quiet
auth        sufficient    pam_winbind.so use_first_pass
auth        required      pam_deny.so

account     required      pam_unix.so broken_shadow
account     sufficient    pam_localuser.so
account     sufficient    pam_succeed_if.so uid < 500 quiet
account     [default=bad success=ok user_unknown=ignore] pam_winbind.so
account     required      pam_permit.so

password    requisite     pam_cracklib.so try_first_pass retry=3
password    sufficient    pam_unix.so sha512 shadow nullok try_first_pass use_authtok
password    sufficient    pam_winbind.so use_authtok
password    required      pam_deny.so

session     optional      pam_keyinit.so revoke
session     required      pam_limits.so
session     optional      pam_mkhomedir.so skel=/etc/skel/ umask=0022
session     [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session     required      pam_unix.so
 
Old 10-29-2009, 11:02 AM   #2
imapishard
LQ Newbie
 
Registered: Jul 2009
Location: Norman, OK
Distribution: Fedora, CentOS, RHEL, Ubuntu on occasion
Posts: 4

Rep: Reputation: 1
i think the problem with the ssh login is probably the template shell. the default is /bin/false, i'd change to /bin/bash

here's a snippet of my smb.conf:

Code:
   workgroup = MYDOMAIN
   password server = MYDC1
   realm = my.realm.tld
   security = ads
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/bash
   winbind use default domain = true
   winbind offline logon = false

however, i'm having a similar issue with the graphical logins...
 
Old 10-30-2009, 08:10 AM   #3
apkelley
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
That worked - thanks so much for your help! I really appreciate it!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trac login with Active Directory Server your_shadow03 Linux - Newbie 0 07-28-2009 11:41 PM
ldap pam active directory login zerocool22 Linux - Server 0 05-20-2008 03:49 AM
Login against active directory. Get permission denied! ZilenT-X Linux - Newbie 6 08-15-2005 04:29 AM
Login to Fedora With Active Directory FloydFan Linux - Networking 2 05-27-2005 08:41 PM
Login to Fedora With Active Directory FloydFan Linux - General 1 05-27-2005 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration