tutorial: migration from nt4 to samba-3jht/presentations/cifs2003... · cifs conference, 2003 2...

31
Tutorial: Migration from NT4 to Samba-3 John H Terpstra Samba-Team [email protected]

Upload: others

Post on 17-Apr-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

Tutorial:Migration from NT4

to Samba-3John H Terpstra

[email protected]

Page 2: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

2CIFS Conference, 2003

Agenda

NT4 to Samba-3 Migration– Review Chapter 31

Review New Samba-HOWTO– Chapters 30, 11, 12, 20-24

Live Conversion from NT4 PDC to Samba-3 PDC

Please turn to chapter 31 of the HOWTO

Page 3: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

3CIFS Conference, 2003

Why Migrate?

Improve manageability Improved User Functionality Cost control (reduction) Reduce exposure – NT4 Obsoleted Avoid MS License 6 implications Reduce dependency on technology

single supplier

Page 4: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

4CIFS Conference, 2003

Why Integrate?

Leverage Active Directory Preserve existing IT investments Do not reinvent infrastructure Adding storage – not replacing

– NAS / Device / Server decision Fear Staff Familiarity

Page 5: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

5CIFS Conference, 2003

Samba-3 v's MS Windows NT

Cost of ownership Support availability with NO strings

attached Features that future life Stability, Reliability, Performance,

Manageability

Page 6: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

6CIFS Conference, 2003

Missing from Samba-3

NT4 Domains -> Win2K and Active Directory– Group Policies now go into ADS

Machine / System PoliciesUser Policies

– Logon Scripts can be in ADS– Application and Menu Control in ADS– Software controls now in Active Directory

Page 7: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

7CIFS Conference, 2003

Planning Migration

Read Samba-3 documentation Identify environment differences Understand what needs to be migrated Design BEFORE migration

– Know how differences will be handled– Educate users sos they know what to

expect

Page 8: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

8CIFS Conference, 2003

Impact of Site Size

There are 3 major Site Types– <= 50 Users

Want simple conversion with NO pain

– 50 – 250 UsersWant new featuresCan manage some in-house complexity

– Large Scale SitesSolution / Implementation MUST scale well, complex needsCross departmental decision processLocal expertise in most areas

Page 9: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

9CIFS Conference, 2003

Planning for Success

Decide which approach is needed – 3 Choices– Simple Conversion (total replacement)– Upgraded Conversion (could be one of

integration)– Complete Redesign (completely new

solution) Take sufficient time

– Avoid Panic– Test ALL assumptions

Page 10: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

10CIFS Conference, 2003

Simple Conversion

Keep Implementation Simple Suck all accounts from NT4 into

Samba-3– Make least number of operational changes– Take least amount of time to migrate

Live versus Isolated Conversion– Integrate Samba-3 then migrate while

users are active Change of control (ie: swap out)

Page 11: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

11CIFS Conference, 2003

Upgraded Conversion

Translate NT4 features to new host OS features

Copy and improve– Old environment to Samba-3– Make progressive improvements

Minimise user impact Maximise functionality Take advantage of lower maintenance

opportunity

Page 12: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

12CIFS Conference, 2003

Complete Network Redesign

Decide– Authentication

database location and access

– ID MappingDynamic or Fixed

– Desktop Management Methods Identify Needs for:

– Manageability, Scalability, Security, Availability

Page 13: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

13CIFS Conference, 2003

Implementation - I

● Authentication database back end– Winbind

External Samba or NT4/200x server– External server could use Active Directory or NT4

DomainCan use pam_mkhomedir.so to auto-create home dirs

– Database typesmbpasswd, tdbsam, ldapsam, MySQL

Page 14: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

14CIFS Conference, 2003

Implementation – II

Access Control:– On the Share itself - Use NT4 Server

Manager– On the file system– Unix permissions on files and directories– Posix ACLs enablement in file system?– Through Samba share parameters

Not recommended – except as only resort

Page 15: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

15CIFS Conference, 2003

Implementation – III

Policies– Group Policy Editor (NT4)

User and Group Profiles– Watch out for bleed-through effect– Migrate or create new ones

Platform specific so use platform tool to change from a Local to a Roaming profileCan use new profiles tool to change SIDs (NTUser.DAT)

Page 16: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

16CIFS Conference, 2003

Implementation - IV

Logon Scripts– Location– Dynamic Generation

Page 17: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

17CIFS Conference, 2003

Samba Implementation Choices – V User and Group mapping to Unix/Linux

– username map facility may be needed– Use smbgroupedit to connect NT4 groups

to Unix groups– Use pdbedit to set/change user

configuration NOTE:

– If migrating to LDAP back end it may be easier to dump initial LDAP database to LDIF, then edit, then reload into LDAP

Page 18: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

18CIFS Conference, 2003

Samba Implementation Choices – VI OS specific scripts / programs may be

needed– Add / delete Users

Note OS limits on size of name– Linux 8 chars

– Add / delete machinesApplied only to domain members

– Note: up to 16 chars

– Add / delete GroupsLinux limit is 16 char, no spaces and no upper case chars (groupadd)

Page 19: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

19CIFS Conference, 2003

Migration Tools

Domain Control (NT4 Style) Profiles, Policies, Access Controls,

Security– Migration Tools

Samba: net, rpcclient, smbpasswd, pdbedit, profiles, editregWindows: NT4 Domain User Manager, Server Manager (SrvTools and NEXUS)

Authentication– New SAM back end (smbpasswd, tdbsam,

ldapsam, mysql)

Page 20: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

20CIFS Conference, 2003

Future Outlook

Management and Control Tools Extended Windows Registry

integration Samba AD Policy Implementation

● Group Policy Object handling● Support for new nested group memberships● Machine policy implementation

Roll-out and Deployment enhancements

Page 21: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

21CIFS Conference, 2003

Background Information

Samba-HOWTO-Collection– Official Team Documentation– Official Samba-3 HOWTO and Reference

GuideIn Print Nov 2003

Samba Web site Man pages SWAT Home page

Page 22: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

22CIFS Conference, 2003

Summarize So Far ...

Migration from NT4 PDC to Samba can be done now

Samba-3 misses some Windows 200x/XP features– Samba-3 features compensate for forgone

Windows functionality Planning and clean implementation will

be key to deployment success

Page 23: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

23CIFS Conference, 2003

Chapter 11 – Passdb

Samba-3 supports multiple concurrent backends– smbpasswd, tdbsam, ldapsam, mysql, xml

LDAP is only suitable backend for distributed infrastructures– PDC + BDCs

Need to use idmap backend to ensure consistent UID/GIDs across network

– Alternative to Active Directory

Page 24: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

24CIFS Conference, 2003

Passdb tools

New tools for managing passdb data:– Pdbedit

Manages detailed content of passdb backendUsed together with smbpasswdCan migrate data between backends

– Need to understand importance of correct LDAP Schema design

Also need to have site-specific scripts to manage LDAP backends

Page 25: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

25CIFS Conference, 2003

Chapter 12 – Group Mapping

Samba-3 has group_mapping.tdb file– Stores relationships between UNIX Groups

and Windows NT Groups– New Tool:

net groupmap ...

– Ties with WinbindWinbindd now does all ID Mapping

– Ie: Handles UNIX ID to Windows SID mapping Uses files: winbindd_cache.tdb,

winbindd_idmap.tdb

Page 26: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

26CIFS Conference, 2003

Chapter 20 – VFS Modules

New Modules– audit– extd_audit– fake_perms– recycle– netatalk

New configuration syntax– No longer supports external config files– Use in-line configuration settings in

smb.conf

Page 27: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

27CIFS Conference, 2003

Chapter 21 – Winbind

Note 3 Components– PAM Authentication (pam_winbind.so)– NSS Identity Resolution

(libnss_winbind.so_)– IDMAP Handling

Winbindd is MUCH more important in Samba-3 than it previously was

Page 28: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

28CIFS Conference, 2003

Chapters 22 -24 – Environment Control Need to be informed about

– Remote Management Options– Logon Script Magic– Policy Handling– Profile Management

Particularly as relates to Group Policy Objects in AD

Management Tools for the above!

Page 29: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

29CIFS Conference, 2003

Chapter 26 – PAM

Some PAM implementation support new configuration options– Documented

Need to know how to configure PAM for UNIX / Linux local logins using SMB passdb backend database Accounts

Opportunity for distributed authentication

Page 30: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

30CIFS Conference, 2003

Live Migration

Demonstration of NT4 PDC to Samba PDC– Using tdbsam (for simplicity)

Page 31: Tutorial: Migration from NT4 to Samba-3jht/Presentations/CIFS2003... · CIFS Conference, 2003 2 Agenda NT4 to Samba-3 Migration – Review Chapter 31 Review New Samba-HOWTO – Chapters

31CIFS Conference, 2003

Discussion / Questions / Feedback

Nothing Ever Ends: Every Conclusion Is a New Start!