Solved

Configure Samba / Kerberos and LDAP on Red Hat

Posted on 2011-02-18
6
1,256 Views
Last Modified: 2013-12-06
http://www.linuxmail.info/active-directory-single-sign-on/

http://www.linuxmail.info/active-directory-integration-samba-centos-5/

If I need to allow my AD users to access the Red Hat server, and the Red Hat server is enabled to user the shared resource in Window domain, do I need to do enable Samba and Kerberos/LDAP on the Red Hat, or either one ?

What the main difference between these two settings ?

Thanks
0
Comment
Question by:AXISHK
  • 3
  • 2
6 Comments
 
LVL 6

Assisted Solution

by:de2Zotjes
de2Zotjes earned 200 total points
ID: 34931974
When you say samba I presume you mean the winbindd portion of samba.

You would need to enable 1 of the two, windbindd or ldap. In principle kerberos is independent of the chosen mechanism, that being said I do not know of any implementations using winbind and kerberos.

The main difference is that for ldap to work you need to extend active directory with 'unix services'. Something a lot of windows administrators rather not do.
0
 
LVL 14

Accepted Solution

by:
small_student earned 300 total points
ID: 34938370
You need to run the winbind service.

You also need to run Kerberos as a Client and not as a KDC. Your AD is a kerberos KDC.

This is as simple as changing two/three lines in /etc/krb5.conf.

Then you need to Join your Linux Machine to Windows AD.

Configure Authentication to lookup from WinAD.

Finally you run the winbind service to actually start to login with Windows users on the Linux machine.

However the Linux users will not be able to run on the Windows machine. If you want that then you need to run SFU on your Windows AD to support Linux users on it.
0
 

Author Comment

by:AXISHK
ID: 34940769
http://www.linuxmail.info/active-directory-integration-samba-centos-5/

Follow the instruction above and I could setup  winbind service succesfully. Can u advise how to setup the remaining steps as mentioned in the previous thread.

Great Thanks.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:AXISHK
ID: 34940807
http://www.linuxmail.info/active-directory-dovecot-pam-authentication/

Follow this link, I have setup the Kerberos authentication and it works fine.

However, when I log off the Linux server, and try to use one of the AD domain user to login to the Red Hat server, it could authentication the login successfully.

Any idea ?

Thanks
0
 
LVL 14

Expert Comment

by:small_student
ID: 34941166
OK so from the command line if you type

wbinfo -a

Do you get all the windows users listed?

If so now you need to configure PAM. from the same place you did the kerberos and winbind configuration. (This was mensioned in the guide you posted)

Now we need to make sure they can login as shell users before GUI.

From the options tab in system-config-authentication check the box that says ceate home dirs.

Now to test this while still logged in RedHat as the root user run the following command

su - username

Where username is windows username that you have under ActiveDirectory.

The home dir should be created and you should get no errors on the command line

Confrim the above is all ok to proceed getting you in via the GUI
0
 

Author Closing Comment

by:AXISHK
ID: 34949078
Tks
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question