AD Integration & Home Folders



Similar documents
Configuring the Active Directory Plug-in

Integrating Mac OS X 10.6 with Active Directory. 1 April 2010

Best Practices: Integrating Mac OS X with Active Directory. Technical White Paper April 2009

Instructions for Adding a MacOS 10.4.x Client to ASURITE

Best Practices: Integrating Mac OS X with Active Directory. Technical White Paper September 2007

NetSpective Logon Agent Guide for NetAuditor

Wazza s QuickStart 13. Leopard Server - Windows Domain

DeployStudio Server Quick Install

Sentral servers provide a wide range of services to school networks.

EVault Software. Course 361 Protecting Linux and UNIX with EVault

System Area Manager. Remote Management

Wazza s QuickStart 10. Leopard Server - Managing Preferences

IceWarp to IceWarp Server Migration

Monitor Print Popup for Mac. Product Manual.

Creating Home Directories for Windows and Macintosh Computers

Apple Technical White Paper Best Practices for Integrating OS X with Active Directory

Leveraging Active Directory on Mac OS X. Leopard Edition, Revision 3

Other documents in this series are available at: servernotes.wazmac.com

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities

for Networks Installation Guide for the application on the server July 2014 (GUIDE 2) Lucid Rapid Version 6.05-N and later

ShadowControl ShadowStream

Other documents in this series are available at: servernotes.wazmac.com

QuickStart Guide for Client Management. Version 8.7

User's Manual. Intego VirusBarrier Server 2 / VirusBarrier Mail Gateway 2 User's Manual Page 1

1. Product Information

Online Backup Client User Manual Linux

Backing Up TestTrack Native Project Databases

TROUBLESHOOTING INFORMATION

MoneyWorks Datacentre. Administrators' Guide

Installation Steps for PAN User-ID Agent

PC Monitor Enterprise Server. Setup Guide

Quality Center LDAP Guide

Centralized Mac Home Directories On Windows Servers: Using Windows To Serve The Mac

Configuring MailArchiva with Insight Server

RecoveryVault Express Client User Manual

Ajera 7 Installation Guide

Joining a workstation to the TAMU IT Domain and Profile Migration

NetIQ Advanced Authentication Framework - MacOS Client

6) Click the lock in the lower left corner of the Directory Utility Window and authenticate with the local administrator account s credentials.

LDaemon. This document is provided as a step by step procedure for setting up LDaemon and common LDaemon clients.

Online Backup Linux Client User Manual

Using Logon Agent for Transparent User Identification

Apple Mac VPN Service Setting up Remote Desktop

Online Backup Client User Manual

Wazza s QuickStart 15. Leopard Server - Disaster Backup

Printer Connection Manager

ILTA HANDS ON Securing Windows 7

Binding an OS X computer to Active Directory at NEIU (Existing User)

for Networks Installation Guide for the application on the server August 2014 (GUIDE 2) Lucid Exact Version 1.7-N and later

Nixu SNS Security White Paper May 2007 Version 1.2

Web-Access Security Solution

The following was taken directly from the ARD (Apple Remote Desktop) operator s manual:

Instructions for Adding a MacOS 10.4.x Server to ASURITE for File Sharing. Installation Section

Active Directory Integration

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:


Managing Software and Configurations

1 Getting Started. Before you can connect to a network

How To - Implement Single Sign On Authentication with Active Directory

for Networks Installation Guide for the application on a server September 2015 (GUIDE 2) Memory Booster version 1.3-N and later

How To Synchronize the easystore to the AD

Lepide Software. LepideAuditor for File Server [CONFIGURATION GUIDE] This guide informs How to configure settings for first time usage of the software

Desktop Surveillance Help

NAS 253 Introduction to Backup Plan

Enterprise Apple Xserve Wiki and Blog using Active Directory. Table Of Contents. Prerequisites 1. Introduction 1

PROJECTIONS SUITE. Database Setup Utility (and Prerequisites) Installation and General Instructions. v0.9 draft prepared by David Weinstein

Download/Install IDENTD

Bulk Downloader. Call Recording: Bulk Downloader

Linko Software Express Edition Typical Installation Guide

FaxCore 2007 Getting Started Guide (v1.0)

Acronis Backup & Recovery 10 Server for Windows. Installation Guide

QuickStart Guide for Managing Computers. Version 9.2

Integrating with Active Directory. MacSysAdmin 2010

Net Services: File System Monitor

Digipass for Citrix VM3.0: troubleshooting guide. Creation date: 11/07/2007 Last Review: 30/11/2007 Revision number: 2

Deep Freeze Mac User Guide

Ekran System Help File

Configuring Active Directory Binding for OS X (10.4.x) within Miami Dade Schools

Optional Mainserver Setup Instructions for OS X Support

Setting up FileMaker 10 Server

WS_FTP Professional 12

Active Directory Requirements and Setup

How to make a VPN connection to our servers from Windows XP

Zimbra Connector for Outlook Administrator Guide

Autofs: Automatically Mounting Network File Shares in Mac OS X. Technical White Paper June 2009

your Apple warranty; see There are two main failure modes for a mirrored RAID 1 set:

Version 4.61 or Later. Copyright 2013 Interactive Financial Solutions, Inc. All Rights Reserved. ProviderPro Network Administration Guide.

Scan to SMB(PC) Set up Guide

Using Mac OS X 10.7 Filevault with Centrify DirectControl

Mapping Network Shares

FTP Service Reference

Contents CHAPTER 1 IMail Utilities

INTRODUCING SAMBA 4 NOW, EVEN MORE AWESOMENESS

How To Set Up A Macintosh With A Cds And Cds On A Pc Or Macbook With A Domain Name On A Macbook (For A Pc) For A Domain Account (For An Ipad) For Free

How To Configure A Bomgar.Com To Authenticate To A Rdius Server For Multi Factor Authentication

Transcription:

AD Integration & Home Folders

David Acland Technical Director at Amsys @davidacland

ACSE Training Projects & Support What the heck s AD? Uh-oh AD mastered!

What I ll be talking about AD Integration Troubleshooting Tweaks Scripting Home folders Mounting options Finder integration Troubleshooting Syncing Other options

Integrating with Active Directory

Objectives Login Window Authentication Certificate enrollment Single username & password for services

Getting Connected GUI Casper or DeployStudio directory bind Script dsconfigad -add domain.com -computer $computer -username aduser -password yourpw -ou CN=Computers,DC=domain,DC=com" Third Party Tool Centrify Express

What if you can t connect?

Troubleshooting Client Network Server Are other Macs affected? Was this Mac previously working? Where is the affected device? Should it work from that location? Try from a known working location / port / switch No devices can communicate with DC Can other Macs write to that OU using that username & password?

Troubleshooting Has this configuration ever worked? Get back to a minimal system to establish a baseline

What Causes It To Break? AD Permissions DNS Service Reachability Date & Time Computer Name Length Corrupt client files opendirectoryd

Troubleshooting Client? Check DNS host -t SRV _ldap._tcp.yourdomain.com Check the clock Check what DC the client is using /Library/Preferences/OpenDirectory/DynamicData/Active Directory/DOMAIN.plist Delete any local files from previous bindings /Library/Preferences/OpenDirectory Set a preferred DC dsconfigad -preferred dc01.domain.com

Troubleshooting Network? Check port reachability nc -z dc01.domain.com 389 Firewall Rule out physical issues

Troubleshooting Server? Usually someone else Handover as much useful information as possible Test with a domain admin account Test with a pre-created computer object Test writing to a different OU (or default Computers container)

Great, we re connected, but there are some issues

Troubleshooting Issues after binding Slow logons Failed reconnects Computers dropping off the domain Macs crashing 50% through boot up

dsconfigad Advanced Options -sharepoint disable -useuncpath disable -passinterval 0 -mobile enable -mobileconfirm disable -force e.g. dsconfigad -force -sharepoint disable -passinterval 0 -mobile enable -mobileconfirm disable

Slow Logons Restrict scope of search to specified domain dsconfigad -alldomains disable dscl /Search -delete / CSPSearchPath "/Active Directory/YOURDOMAIN/All Domains dscl /Search/Contacts -delete / CSPSearchPath "/Active Directory/YOURDOMAIN/All Domains dscl /Search -create / SearchPolicy CSPSearchPath dscl /Search -append / CSPSearchPath "/Active Directory/YOURDOMAIN/domain.com dscl /Search/Contacts -create / SearchPolicy CSPSearchPath dscl /Search/Contacts -append / CSPSearchPath "/Active Directory/YOURDOMAIN/domain.com" Specify a particular DC dsconfigad -preferred dc01.domain.com Set timeout value defaults write /Library/Preferences/com.apple.loginwindow DSBindTimeout -int <seconds>

Failed Reconnects For classrooms, shutdown at night, only put display to sleep during the day Mac wakes from sleep and doesn t reconnect to the DC Reboot Restart opendirectoryd sudo killall opendirectoryd Script kdestroy and ask user to re-enter password Mac fails to reconnect when returning to the office dsconfigad -passinterval 0

Computers dropping off the domain Don t trust dsconfigad -show Add a self-heal script or policy to the Mac Check client is on the right network Check DC is available Check client can read its own computer object Retry in 2 mins if it fails 2nd failure triggers a re-bind Check with Windows administrator

Macs crashing 50% through bootup After a crash, a hard reboot, or just when it feels like it Affects 10.10.0-10.10.2 /usr/sbin/bootcachecontrol jettison (triggered by /etc/rc.server) Update to 10.10.3

.local Expect issues! Add.local to your search domains Lower the mdns timeout defaults write /System/Library/SystemConfiguration/IPMonitor.bundle/Contents/ Info mdns_timeout -int 1

Stress Testing Use ARD to login multiple Macs at once osascript -e 'tell application "System Events" to keystroke "username"' \ osascript -e 'tell application "System Events" to keystroke tab' \ osascript -e 'tell application "System Events" to delay 0.5' \ osascript -e 'tell application "System Events" to keystroke "password"' \ osascript -e 'tell application "System Events" to keystroke return'

Home Folders

What is a home folder? Data store User level settings and resources

Types Local Home Full Network Home Split / Re-directed Home Folder

Objectives Providing personal network storage for the users Backing up user data Hot-desking

Mounting Options Use UNC path (SMBHome) Mounts top-level share Tries to add shortcut to the Dock Causes a lot of logon failures

Mounting Options Logon Script User initiated script Directory Automount

Script to mount the network home Determine the user s network home folder path ShortDomainName=$(dscl /Active\ Directory/ -read. grep SubNodes \ sed 's SubNodes: g ) adhome=$(dscl /Active\ Directory/$ShortDomainName/All\ Domains -read \ /Users/$USER SMBHome sed 's SMBHome: g' sed 's/^[\\]*//' \ sed 's:\\:/:g' sed 's/ \/\///g' tr -d '\n' sed 's/ /%20/g ) sed s SMBHome: g' - Strip off the SMBHome: part of the string sed s/^[\\]*//' - Remove the first two backslashes sed s:\\:/:g' - Turn any remaining backslashes into forward slashes tr -d \n' - Remove a carraige return if the path is wrapped onto two lines sed 's/ /%20/g - Replace a space with %20 if its found in the path

Script to mount the network home Check the attribute has a value case "$adhome" in "" ) echo "ERROR: ${USER}'s SMBHome attribute does not have a value set. Exiting script." exit 1 ;; * ) echo "Active Directory users SMBHome attribute identified as $adhome" ;; esac

Script to mount the network home Mount the home value # Mount the network home mount_script=`/usr/bin/osascript > /dev/null << EOT tell application "Finder" activate mount volume "smb://${adhome}" end tell EOT`

Interacting with the Finder Adding to the Dock dockutil --add $SMBHome --label 'Network Docs' --position beginning \ no-restart /Users/$USER Adding to the Sidebar changesidebarlistscasper.py --first /Volumes/$USER - first - last - after

Syncing Goals Hot-desking Centralised backups Do the users really need it? Cost

OS X Home Sync Why don t we use it? 2 way sync Unreliable No central reporting

Rsync? We use Rsync We re in full control of what gets synced and when We can have a central reporting system for failures We can adjust and develop it over time We have spent a number of years refining the scripts Error capturing and handling is very important

Core components Check capacity and amount to copy before syncing datasize$(rsync -n source destination) grep "total size" awk '{ print $4; }' sed 's/m//g' awk '{printf("%d\n",$1 + 0.5)}' networkhomecapacity=$(df -hm $syncdest awk 'NR==2 {print $4} ) if [ $syncsize -lt $networkhomecapacity ]; then Loop through sub-folders to get more granular logging ls $syncsource grep "[A-z 0-9]" head -$counter tail -1 Use a filter file --filter='merge /path/to/exclusionfile/syncup_filter_exclude'

Core components Capture errors in a temp file rsync command 2>> /tmp/${user}syncerror Email issues to IT sendmail -f $fromaddress -t $toaddress -u $subject -m "$message" -s $mailserver -xu $username -xp $password Other rsync options # u - Skip files that are newer on the receiver # z - Compress file data during the transfer # r - Recurse into directories # l - Copy symlinks as symlinks # v - Increase verbosity

When do we run it? Every 15 minutes while logged in At logout

User Trigger Applescript saved as an application set myscript to POSIX path of (path to resource "LogoutSync.sh") do shell script myscript Lets user run the script when they want

Thanks https://github.com/amsysuk/psu