Seamless Integration: Active Directory Services and Samba 3.0 FVLUG – December 8, 2003 Wim Kerkhoff.

Slides:



Advertisements
Similar presentations
6.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
Advertisements

3.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 3: Introducing Active Directory.
Samba Integrating SMB file systems with UNIX. Samba Provides a file server compatible with Windows 9x and NT.. SMB Can function in NETBIOS name browsing.
Network Shares and Accounts Sharing Printers, Drives, Folders – Setup Windows 95/98 Windows NT (2000, XP) Linux – Users – Groups.
Resource Sharing Over a Network
Hussain Ali Department of Computer Engineering KFUPM, Dhahran, Saudi Arabia Microsoft Networking.
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
Installing a New Windows Server 2008 Domain Controller in a New Windows Server 2008 R2.
Securing Access in a Heterogeneous Network Environment Providing Interoperability between Microsoft Windows 2000 and Heterogeneous Networks Securing Authentication.
HalFILE 3.0 Active Directory Integration. halFILE 3.0 AD – What is it? Centralized organization of network objects and security – servers, computers,
Chapter 7 WORKING WITH GROUPS.
© 2005 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Advanced Samba Administration Part.
CMSC 691X – Summer 2002 Project By Pravin D’Souza.
Installing Samba Vicki Insixiengmay Jonathan Krieger.
UNIT - III. Installing Samba Windows uses Sever Message Block(SMB) to communicate with each other using sharing services like file and printer. Samba.
© 2005 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Advanced Samba Administration Part.
Linux System Administration LINUX SYSTEM ADMINISTRATION.
Chapter 5 File and Printer Services
Introduction to Active Directory December 10th, pm Daniels 407.
Samba
Square Pegs in Round Holes: Linux in a Windows World Eric G. Wolfe © 2008 Senior Linux Administrator Marshall University Slides, and code available at.
Linux Windows Integration Can’t we all just get along?
1 SAMBA. 2 Module - SAMBA ♦ Overview The presence of diverse machines in the network environment is natural. So their interoperability is critical. This.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Chapter 4 Windows NT/2000 Overview. NT Concepts  Domains –A group of one or more NT machines that share an authentication database (SAM) –Single sign-on.
Windows This presentation is an amalgam of presentations by Mark Michael, Randy Marchany and Ed Skoudis. I have edited and added material. Dr. Stephen.
Lecture – Single Login NIS and Winbind. NIS Network Information Service (NIS) is the traditional directory service on UNIX platforms Still widely used.
September 18, 2002 Introduction to Windows 2000 Server Components Ryan Larson David Greer.
Extending Active Directory Authentication and Account Management To Solaris 10 Systems A HOWTO guide for joining a Solaris 10 (8/07) host to a domain in.
Ferry Astika Saputra Workshop Administrasi Jaringan SAMBA PROTOCOL.
SAMBA Integrating Linux and Window. What is Samba? Free suite of programs that enables flavors of UNIX to work with other operating systems such as OS/2.
Samba Erik Turner CSIS 4490 Linux Admin & Security Dr. Hoganson.
Windows 2000 Operating System -- Active Directory Service COSC 516 Yuan YAO 08/29/2000.
Samba Advanced System Administration Course James Lwali University computing Centre Ltd, University of Dar es salaam,
Samba version What is the Samba? Samba is a suite of programs which work together to allow clients to access to a server's filespace and printers.
Active Directory Windows2003 Server. Agenda What is Active Directory What is Active Directory Building an Active Directory Building an Active Directory.
Single Sign-on with Kerberos 1 Chris Eberle Ryan Thomas RC Johnson Kim-Lan Tran CS-591 Fall 2008.
Samba Server Configuration
How to configure DNS for a Windows 2000 domain? 1.Start the Install/Remove Programs Control Panel Applet (Start - Settings - Control Panel - Add/Remove.
Active Directory Maryam Izadi. Topics Covered NT Vs 2000/2003 Active Directory LDAP MMC.
1 Administering Shared Folders Understanding Shared Folders Planning Shared Folders Sharing Folders Combining Shared Folder Permissions and NTFS Permissions.
“Windows Networking” ITL. © Hans Kruse & Shawn Ostermann, Ohio University 2 Overview Networking under Windows Mixture of applications and protocols.
Chapter 10: Rights, User, and Group Administration.
Samba – Good Just Keeps Getting Better The new and not so new features available in Samba, and how they benefit your organization. Copyright 2002 © Dustin.
1 Linux Networking and Security Chapter 5. 2 Configuring File Sharing Services Configure an FTP server for anonymous or regular users Set up NFS file.
Module 1: Implementing Active Directory ® Domain Services.
Windows-Linux Interconnection Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Samba.
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
OVERVIEW OF ACTIVE DIRECTORY
Linux Operations and Administration
Active Directory. Computers in organizations Computers are linked together for communication and sharing of resources There is always a need to administer.
Samba
u Babel Com Australia FDS + Samba ● What is LDAP? ● Fedora Directory Server ● Samba ● LDAP Tools.
Samba4. What is Samba4? ● A replacement for Active Directory ● The centre of a windows domain: – Windows domain logon server – Windows-compatible LDAP.
Unit –III CHAP-I 1 Created By Asst. Prof. Ashish Shah, J.M.Patel College of Commerce.
LINUX - SAMBA
Using Samba Doug Maxwell November 13, 2004 – GHGLUG
Guide to Operating Systems, 5th Edition
Windows interoperability with Unix/Linux
Network Administration Module 09
ACTIVE DIRECTORY ADMINISTRATION
LINUX ADMINISTRATION 1
Network Operating Systems Examples
Extending Active Directory Authentication and Account Management To Solaris 10 Systems A HOWTO guide for joining a Solaris 10 (8/07) host to a domain.
Workshop Administrasi Jaringan
Chapter 3: Windows7 Part 4.
Samba.
Windows Networking ICCM 2004 Tim Young
Presentation transcript:

Seamless Integration: Active Directory Services and Samba 3.0 FVLUG – December 8, 2003 Wim Kerkhoff

Overview What is Microsoft Active Directory Services? What is Samba? Windows 2000 Server configuration Linux/Samba3 configuration Test Kerberos authentication Winbind/PAM configuration Test PAM using SSH/FTP Some screenshots, demos Summary

What is Active Directory Services? Unified Environment Easier to Manage in Win2k then NT4 Group Policies Handles all sorts of things: DNS, trust relationships, etc…. Everything goes in ADS/LDAP ADS Domain Controllers replace NT PDC/BDCs LDAP

What is Samba? “Samba is a file and print server for Windows-based clients using TCP/IP as the underlying transport protocol. In fact, it can support any SMB/CIFS- enabled client. One of Samba's big strengths is that you can use it to blend your mix of Windows and Linux machines together without requiring a separate Windows NT/2000/2003 Server. Samba is actively being developed by a global team of about 30 active programmers and was originally developed by Andrew Tridgell.”

SMB? CIFS? History “SMB: Acronym for ‘Server Message Block’. This is Microsoft's file and printer sharing protocol” “CIFS: Acronym for ‘Common Internet File System’. Around 1996, Microsoft apparently decided that SMB needed the word "Internet" in it, so they changed it to CIFS”

Some quotes on SMB “ People inside Microsoft know it's a bad operating system and they still continue obviously working on it because they want to get the next version out because they want to have all these new features to sell more copies of the system.” - Linux Torvalds, 1998 “Several megabytes of NT-security archives, random whitepapers, RFCs, the CIFS spec, the Samba stuff, a few MS knowledge-base articles, strings extracted from binaries, and packet dumps have been dutifully waded through during the information-gathering stages of this project, and there are *still* many missing pieces.” – 1997 article on CIFS

Samba Features NT4/Win2k/Win3k Domain/Member Controllers Emulate any version of Windows Domain workstation, Peer to Peer Can run in “native” or “mixed” modes for Win2k Trusted Server/Client Authenticate against LDAP/MySQL etc, even as Primary Domain Controller No-strings Support: OSS Performance/reliability/cost Dynamic SMB

What can’t Samba do? Active Directory Server. Group Policy Objects (in Active Directory). Machine Policy Objects. Logon Scripts in Active Directory. Software Application and Access Controls in Active Directory.

Windows 2000 Install Overview Do a typical install of 2000/2003 Server Run ‘dcpromo’ to become the ADS Domain Controller Add a user account, set the password Add an administrator account, set the password That’s it!

Linux/Samba3 installation overview This is what I did; a couple of ways of doing it Download root.bin+rescue.bin, and use them to install Debian Woody Don’t run tasksel/dselect. Immediately dist- upgrade to Sarge or Sid Apt-get install samba smbclient winbind smbclient ssh krb5-clients krb5-user

Configuring Linux Since Active Directory Services uses DNS for everything, make sure the basics work before continuing. Make sure /etc/resolv.conf has the domain/nameserver settings for Win2k Test resolving (eg ping the short hostname of the ADS server) Make sure Linux hostname is set correctly Optionally created records in ADS DNS. Not having to rely on WINS or browse lists is nice

Configure Kerberos Debian does a fine job of doing this for you. If Debian is not being used or it isn’t working, create a simple krb.conf from scratch: [libdefaults] default_realm = ADS.NYETWORK.ORG [realms] ADS.NYETWORK.ORG = { kdc = BULL admin_server = BULL } [domain_realm].ads.nyetwork.org = ADS.NYETWORK.ORG

Configure Samba Enter the realm/domain info into the debconf wizard for the samba package to have nice starting point Change/Add these settings: Restart samba workgroup = ADS realm = ADS.NYETWORK.ORG security = ADS password server = bull.ads.nyetwork.org

Test Kerberos / ADS Sync the clocks! Run: kinit someUser, then enter password Run: klist to see Kerberos tickets Authenticate as a user with Administrator rights in the domain, then: net ads join –U adminuser Should now see a message that your computer is in the domain Computer will show up in Active Directory Computers list smbclient ‘\\bull\c$’ –U adminuser -k

Screenshot: Linux

Screenshot: Windows 2000

Winbind – unified logons Combination of Windows RPC, PAM, NSS switch Add this to smb.conf: Restart samba/winbind Run wbinfo –u and wbinfo –g to see all the ADS users and groups The default is to have all ADS accounts come through as Domain+User. Can also have Domain\User or even just User. winbind seperator = + idmap uid = idmap gid = winbind enum users = yes winbind enum groups = yes template homedir = /home/ads/%U template shell = /bin/bash

Pluggable Authentication Modules (PAM) Auth Modules available for LDAP, Kerberos, Netware, Radius, MySQL, PostgreSQL, or write your own Stackable, configurable per service (SSH vs login vs cron etc) Module types: auth, account, session, password Control flags: required, requisite, sufficient, optional Other interesting session/login modules: motd, mkhomedir, lastlog, mail, tally, time, limits mkhomedir doesn’t work with SSH because of privilege seperation

Changes required to default PAM files Add winbind to /etc/nsswitch.conf for passwd/group/shadow getent passwd will now show a unified /etc/passwd getent group will now show a unified /etc/group Modify the files in /etc/pam.d to allow logins via either pam_winbind.so or pam_unix.so Easiest is to modify common-auth and common- account. However not all services use them. Also, mkhomedir doesn’t work with SSH, but works fine with login and ftp. More details can be found in the Samba docs or

Can browse the network without password prompts

Can even manage shares from MMC, like any other server

Can use chown with ADS users fresh:/tmp# touch file.txt fresh:/tmp# ls -l file.txt -rw-r--r-- 1 root root 0 Dec 6 02:02 file.txt fresh:/tmp# chown ADS+AdminUser file.txt fresh:/tmp# ls -l file.txt -rw-r--r-- 1 ADS+AdminUser root 0 Dec 6 02:02 file.txt : add

SSH works

Example script commands Some functionality isn’t provided by Samba itself, but comes from scripts you set up yourself Share management User/Group management Abort/Shutdown Logon scripts admin users = ADS+AdminUser, ADS+Administrator add share command = /etc/samba/modify_samba_config.pl delete share command = /etc/samba/modify_samba_config.pl

Where does Samba cache special things? ls -1 account_policy.tdb group_mapping.tdb ntdrivers.tdb ntforms.tdb ntprinters.tdb passdb.tdb printers registry.tdb secrets.tdb share_info.tdb winbindd_idmap.tdb tdbdump can be used to examine *.tdb files TDB is a Trivial DataBase system, like gdbm

Other possibilities Print servers, including auto-install of win32 drivers DFS – Distributed File Systems SSL WINS Replication File System Access Control Lists using extended attributes of ext3 Single Sign On in Apache Stackable VFS: audit, recycle, databaseFS, vscan Samba 4 goal: Go through specs one line at a time, do things proper instead of through reverse engineering. Better support for NAS, clustering, high end stuff. Better use in non-Windows environments.

Summary More information available at is probably THE most complete reference, covering many scenarios Google is your friend, as always Questions