Active Directory & SQL Server



Similar documents
WINDOWS 2000 Training Division, NIC

ChangeAuditor 5.8 For Active Directory

Security and Kerberos Authentication with K2 Servers

ChangeAuditor 5.5. For Active Directory Event Reference Guide

Windows Server 2003 Active Directory MST 887. Course Outline

Table Of Contents. - Microsoft Windows - WINDOWS XP - IMPLEMENTING & SUPPORTING MICROSOFT WINDOWS XP PROFESSIONAL...10

Security IIS Service Lesson 6

MS 6419 Configuring, Managing and Maintaining Windows Server 2008-based Servers

MCSE Core exams (Networking) One Client OS Exam. Core Exams (6 Exams Required)

70-685: Enterprise Desktop Support Technician

70-417: Upgrading Your Skills to MCSA Windows Server 2012

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Metalogix SharePoint Backup. Advanced Installation Guide. Publication Date: August 24, 2015

R4: Configuring Windows Server 2008 Active Directory

Windows 7, Enterprise Desktop Support Technician

User-ID Best Practices

Security Provider Integration Kerberos Server

Click Studios. Passwordstate. Installation Instructions

Domain Controller Failover When Using Active Directory

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Managing Your Microsoft Windows Server Fleet with AWS Directory Service. May 2015

Click Studios. Passwordstate. Installation Instructions

Windows GPO Deep Dive

Configuring, Managing and Maintaining Windows Server 2008 Servers

TopEase Single Sign On Windows AD

Configuring Windows Server 2008 Active Directory

Chapter. Managing Group Policy MICROSOFT EXAM OBJECTIVES COVERED IN THIS CHAPTER:

Configuring, Managing and Maintaining Windows Server 2008-based Servers

50331D Windows 7, Enterprise Desktop Support Technician (Windows 10 Curriculum)

App Orchestration Setup Checklist

Installing, Configuring, and Managing a Microsoft Active Directory

Course 6419B: Configuring, Managing and Maintaining Windows Server 2008-based Servers

Lesson Plans Managing a Windows 2003 Network Infrastructure

NE-6425C Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

CHAPTER ANSWERS IMPLEMENTING, MANAGING, AND MAINTAINING A MICROSOFT WINDOWS SERVER 2003 NETWORK INFRASTRUCTURE

Troubleshooting Kerberos Errors

Extending Microsoft Windows Active Directory Authentication to Access HP Service Health Reporter

Active Directory Domain Migration Checklist ADUM Active Directory Migrator

Group Policy 21/05/2013

This is a distance learning course.

Configuring Managing and Maintaining Windows Server 2008 Servers (6419B)

Configuring and Troubleshooting Windows 2008 Active Directory Domain Services

DIGIPASS Authentication for Windows Logon Product Guide 1.1

Implementing, Managing and Maintaining a Microsoft Windows Server 2003 Network Infrastructure: Network Services Course No.

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain MOC 6425

Planning and Maintaining a Microsoft Windows Server Network Infrastructure

How to Join QNAP NAS to Microsoft Active Directory (AD)

Managing Celerra for the Windows Environment

KB Windows 2000 DNS Event Messages 1 Through 1614

Transparent Identification of Users

PC Power Down. MSI Deployment Guide

Lesson Plans LabSim for Microsoft s Implementing a Server 2003 Active Directory Infrastructure

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Implementing Domain Name Service (DNS)

6419: Configuring, Managing, and Maintaining Server 2008

HJ594S. Configuring, Managing and Mantaining Windows Server 2008 Servers (6419)

These guidelines can dramatically improve logon and startup performance.

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Using Logon Agent for Transparent User Identification

Presenter s name here Date of presentation (optional) Windows Security and Domains for Experion

Partie Serveur Lab : Implement Group Policy. Create, Edit and Link GPOs. Lab : Explore Group Policy Settings and Features

PingFederate. IWA Integration Kit. User Guide. Version 2.6

Active Directory 2008 Implementation. Version 6.410

Active Directory network protocols and traffic

Contents. Supported Platforms. Event Viewer. User Identification Using the Domain Controller Security Log. SonicOS

ITKwebcollege.ADMIN-Basics Fundamentals of Microsoft Windows Server

Collax Active Directory

Exam : Administrating Windows Server 2012 R2. Course Overview

MCSE Objectives. Exam : TS:Exchange Server 2007, Configuring

Dell Compellent Storage Center

Windows Server 2003 default services

Create, Link, or Edit a GPO with Active Directory Users and Computers

Laserfiche Web Access 8 and Kerberos Configuration in a Windows Server 2008 and IIS 7 Environment. White Paper

411-Administering Windows Server 2012

6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Pulse Policy Secure. UAC Solution Guide for SRX Series Services Gateways. Product Release 5.1. Document Revision 1.0 Published:

Setup and configuration for Intelicode. SQL Server Express

Agency Pre Migration Tasks

Installing and Setting up Microsoft DNS Server

XIA Configuration Server

MS 20413A: Designing and Implementing a Server Infrastructure

Get Success in Passing Your Certification Exam at first attempt!

SMART Active Directory Migrator. Desired End State and Project Prerequisites

Using DC Agent for Transparent User Identification

1 Introduction. Windows Server & Client and Active Directory.

Microsoft. Jump Start. M11: Implementing Active Directory Domain Services

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Managing an Active Directory Infrastructure

5 Configuring a DNS Infrastructure

Configuring, Managing and Maintaining Windows Server 2008 Servers

Training Name Installing and Configuring Windows Server 2012

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Windows 2008 Server DIRECTIVAS DE GRUPO. Administración SSII

Transcription:

Active Directory & SQL Server How AD can affect your SQL Servers Ryan Adams Blog - http://ryanjadams.com Twitter - @ryanjadams Email ryan@ryanjadams.com

DNS Group Policy Security Groups Password Policies SQLAgent Kerberos Objectives

DNS When is Name Resolution important? Outgoing Linked Server OPENROWSET SQLAgent PowerShell SQLAgent - CmdExec Incoming Applications Scripts Kerberos SPNs

DNS Can DNS Trick Us? Slow Replication Multiple HOST (A) Records for a single IP Auto PTR Multiple Alias (CNAME) Records for a single HOST (A) Split DNS AD DNS Domain Name does match company s DNS domain name Always use the AD DNS Name (Kerberos)

DNS Don t rely on the secondary DNS server Primary & Secondary should resolve all names No Answer Client Primary Yes Answer Secondary No Response

DNS DNS Suffix Search Order Appended to NetBIOS if no broadcast response Suffixes are appended in order Not needed if FQDN is used

What are they? Where can they be applied? Site Domain OU How can they be filtered? Object Type Security Groups WMI Group Policy

Group Policy Precedence Lower Level Wins Block Policy Inheritance No Override Wins over lower levels Wins over a block P1 Site Domain P2 OU OU

Group Policy What can they do? Software Install Startup/Shutdown Script Login/Logoff Scripts System Services startup type System Services Permissions Power Plans and CPU Usage Lock Pages in Memory Large Pages Registry Settings File System Permissions IPSec Policies Windows Update Settings Instant File Initialization Firewall Settings

Group Policy Troubleshooting Tools GPMC.msc Group Policy Management Console RSOP.msc Resultant Set of Policies GPResult.exe Group Policy Result GPUpdate.exe Refresh/Reapply Policies

Group Policy Contoso.com set via GPO Litware.com set on client Contoso.com set via GPO

Types Global Domain Local Universal Make sure you have a GC in the site Or make the site has GC caching Security Groups

Nesting Keep Recursive Membership in mind Kerberos Token Access Size Limited to 120 groups Security Groups Universal Global Domain Local Global Any Domain Universal Any Domain Global Same Domain Accounts Same Domain Global Any Domain Accounts Any Domain Accounts Any Domain Universal Any Domain Domain Local Same Domain

Security Groups Who has access to your DB files? Verify NTFS File Permissions Don t use a Deny ACE Best Practice is to simply omit the ACE Check inheritance at the folder level Check inheritance at the file level You can have access to a file without having access to the folder it is in.

Password Policy Windows Authentication Settings Determined by Default Domain Policy SQL Authentication Settings Determined by Local Policy Can be overridden by GPO SQL Auth Accounts adhere to this policy Enforce Password Policy (Complexity) Enforce Password Expiration

SQLAgent The job failed. Unable to determine if the owner (domain\username) of job MYJOB has server access (reason: Could not obtain information about Windows NT group/user 'domain\username'. Jobs will fail if the job owner cannot be found Use a SQL Account Has nothing to do with job security context Account can be disabled Jobs run under the context of the SQLAgent Service Account Unless credentials are defined in a job step

Kerberos Requirements Server and client must be in same or trusted domain SQL Server must use TCP/IP Names Pipes allowed starting in SQL 2008 SQL Server s SPN must be registered in AD SPNs must be unique However, AD allows for duplicates

Kerberos Why should I use Kerberos over NTLM? Mutual Authentication Faster Authentication Domain Trust Enhancement Delegated Authority

Kerberos How does it work? Client authenticates to KDC Client Requests a Service Ticket from KDC Client presents Service Ticket to resource server TGS Request KDC Service Ticket Single Hop Client Server Service Ticket

Kerberos How does delegation work? Same as single hop, but one or more steps further Distributed Reporting Services Solution KDC Double Hop TGS Request Service Ticket Client Reporting Services SQL Server Service Ticket Delegated Service Ticket

Kerberos Is my SQL Server using Kerberos or NTLM? SELECT auth_scheme FROM sys.dm_exec_connections WHERE session_id=@@spid

Service Principal Names Kerberos Register Manually You have to figure out the SPN yourself You need permissions on the account in AD Register Dynamically Permissions not granted by default for SELF on account Write Public Information Write serviceprincipalname Validated write to serviceprincipalname

SPN Method Comparison Kerberos Dynamic registers/unregisters with SQL Service start/stop AD replication can come into play Due to replication dynamic is not recommended for clusters Site topology and Urgent Replication can mitigate this Manual means intervention required if server name changes Manual means you can add an SPN for NetBIOS

What should my SPN look like? Kerberos Default instance registered by SQL Service TCP Connections MSSQLSvc/FQDN:Port Named Pipes Connections MSSQLSvc/FQDN Is this how I should do it for my manual registrations? Yes, but also add SPNs for the NetBIOS name MSSQLSvc/NetBIOS:Port MSSQLSvc/NetBIOS

Service Principal Names Kerberos Where should they go? SQL Server Service running under domain account Domain Account SQL Server Service running under the following: Local System Local Service Network Service AD Computer Account

Kerberos Troubleshooting Tools Klist.exe Kerbtray.exe SETSPN.exe

Summary DNS Group Policy Security Groups Password Policies SQLAgent Kerberos Ryan Adams Blog - http://ryanjadams.com Twitter - @ryanjadams Email ryan@ryanjadams.com