LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-23-2009, 10:30 AM   #1
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 181

Rep: Reputation: 21
Winbind authentication issues


Hi,

I'm running CentOS 5.2 on a server that acts as a router / firewall. In order to setup VPN later on, I need to get the machine to authenticate using a AD server on Windows 2003. I've followed loads of the instructions on the net and I believe I'm almost there.

The CentOS machine can actually connect to the AD server (and joined the domain), but when I try to login to it using one of the accounts in the AD, it doesn't even bother to contact the AD server.

So, this works:
# wbinfo -p
Ping to winbindd succeeded on fd 4

# wbinfo -u
<actual list of users is displayed>

But when I try
# getent passwd
I only get a list of users from /etc/passwd; nothing from the AD.

I have the following entries in /etc/nsswitch.conf:
passwd: files winbind
shadow: files winbind
group: files winbind

#hosts: db files nisplus nis dns
hosts: files dns wins

And here is the relevant part of the smb.conf:
realm = DIGIO.LOCAL
workgroup = DIGIO
password server = digs101
security = ads
server signing = auto
netbiosname = digs001
winbind separator = +
encrypt passwords = yes
idmap uid = 10000-20000
idmap gid = 10000-20000
template shell = /bin/bash
template homedir = /home/%D/%U
winbind use default domain = yes
winbind offline logon = false

And finally the /etc/krb5.conf
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log

[libdefaults]
default_realm = DIGIO.LOCAL
dns_lookup_realm = false
dns_lookup_kdc = false
ticket_lifetime = 24h
forwardable = yes

[realms]
DIGIO.LOCAL = {
kdc = 172.29.38.101
admin_server = digs101.digio.local
default_domain = DIGIO.LOCAL
kdc = DIGIO.LOCAL
}

[domain_realm]
.DIGIO.LOCAL = DIGIO.LOCAL
DIGIO.LOCAL = DIGIO.LOCAL
.digio.local = DIGIO.LOCAL
digio.local = DIGIO.LOCAL

[appdefaults]
pam = {
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false
}

Any help would be greatly appriciated.
Louis
 
Old 05-12-2009, 04:55 AM   #2
stioanid
Member
 
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38

Rep: Reputation: 15
What you need to do is to change the files that they are under /etc/pam.d
The files you need to change in order to use winbind for your authentication and not pam_unix
are :
common-password
password [success=1 default=ignore] pam_unix.so obscure sha512
password requisite pam_deny.so
password required pam_permit.so


common-session
session required pam_unix.so
session required pam_mkhomedir.so umask=0022 skel=/etc/skel

common-auth
auth sufficient pam_winbind.so
auth sufficient pam_unix.so nullok_secure use_first_pass
auth required pam_deny.so

common-account
account sufficient pam_winbind.so
account required pam_unix.so


Don't forget to comment out all other entries you find
As well if you are using ssh to access this machine you need to edit /etc/ssh/sshd_config and
put
Usepam = yes

Finally your /etc/nsswitch.conf seems fine
 
  


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
SSH + Winbind Group Authentication Question ericspreher Linux - Security 2 08-29-2007 12:52 PM
Winbind authentication NT_STATUS_NO_SUCH_USER MediMania Linux - Networking 0 10-02-2006 06:31 AM
K12 LTSP 4.4.1: problems w winbind authentication cls Linux - Software 0 12-17-2005 01:05 PM
POPTOP PPTPD WINBIND PDC Authentication tomjermy Linux - Networking 1 03-14-2005 09:42 AM
Samba, winbind, NT authentication Karma Linux - Networking 0 10-16-2002 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:18 PM.

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