• No results found

Integrating Linux systems with Active Directory

N/A
N/A
Protected

Academic year: 2021

Share "Integrating Linux systems with Active Directory"

Copied!
29
0
0

Loading.... (view fulltext now)

Full text

(1)

Integrating Linux systems

with Active Directory

Dmitri Pal

Engineering Director, Red Hat, Inc.

(2)

Security Camp at Boston University: August 20th, 2015 2

Agenda

Problem statement

Aspects of integration

Integration options

Recommendations

(3)

Security Camp at Boston University: August 20th, 2015 3

Problem Statement

For most companies AD is the central hub of the user identity

management inside the enterprise

All systems that AD users can access (including Linux) need

(in some way, i.e. directly or indirectly) to have access to AD to

perform authentication and identity lookups

In some cases the AD is the only allowed central authentication

server due to compliance requirements

In some cases DNS is tightly controlled by the Windows side of

(4)

Security Camp at Boston University: August 20th, 2015 4

Aspects of Integration

Authentication

User logs into a Linux system, how is he authenticated?

Identity lookup

How system knows about the right accounts?

How AD accounts are mapped to POSIX?

Name resolution and service discovery

How system knows where is its authentication and identity server?

Policy management

(5)

Security Camp at Boston University: August 20th, 2015 5

Integration Options

Active Directory Active Directory Linux system Linux

system systemsystemLinuxLinux systemsystemLinuxLinux

Direct Integration

Central Identity Server Central Identity Server Linux system Linux

system systemsystemLinuxLinux systemsystemLinuxLinux

Indirect Integration

Active Directory

Active Directory

(6)

Security Camp at Boston University: August 20th, 2015 6

Direct Integration Options

3

rd

party

Legacy (pam_krb5, pam_ldap, nss_ldap, nslcd)

Traditional – winbind

(7)

Security Camp at Boston University: August 20th, 2015 7

Third Party Direct Integration

Active Directory

Active Directory

3rd party plugin Policies via GPO

3rd party plugin

Policies via GPO

Linux system Linux system DNS DNS LDAPLDAP KDCKDC 3rd party client 3rd party client Policies Policies Name Resolution Name Resolution Authentication Authentication Identities Identities sudo sudo hbac hbac automount automount selinux selinux ID mapping is implementation specific

or uses SFU/IMU extensions in AD

Authentication can be LDAP or Kerberos

(8)

Security Camp at Boston University: August 20th, 2015 8

Pros and Cons of the 3rd Party Option

Pros

Everything is managed in one place including policies

Cons

Requires third party vendor

Extra cost per system (adds up)

Limits UNIX/Linux environment independence

Requires software on AD side

(9)

Security Camp at Boston University: August 20th, 2015 9

Legacy Integration Option

Active Directory Active Directory Linux system Linux system DNS DNS LDAPLDAP KDCKDC LDAP/Kerberos

LDAP/Kerberos PoliciesPolicies

Name Resolution Name Resolution Authentication Authentication Identities Identities sudo sudo hbac hbac automount automount selinux selinux ID mapping uses SFU/IMU extensions in AD

Authentication can be LDAP or Kerberos

AD can be extended to serve basic sudo and automount

Policies are delivered via configuration files and managed locally or via a config server like Satellite or Puppet.

(10)

Security Camp at Boston University: August 20th, 2015 10

Pros and Cons of the Legacy Option

Pros:

Free

No third party vendor is needed

Intuitive

Cons:

Requires SFU/IMU AD extension

Policies are not centrally managed

Hard to configure securely

(11)

Security Camp at Boston University: August 20th, 2015 11

Traditional Integration Option

Active Directory Active Directory Linux system Linux system DNS DNS LDAPLDAP KDCKDC Samba Winbind

Samba Winbind PoliciesPolicies

Name Resolution Name Resolution Authentication Authentication Identities Identities sudo sudo hbac hbac automount automount selinux selinux Authentication can use LDAP, Kerberos

or NTLM

AD can be extended to serve basic sudo and automount

Policies are delivered via configuration files and managed locally or via a config server like Satellite or Puppet.

Can map AD SID to POSIX attributes or use SFU/IMU Can join system into AD domain (net join or realmd) Leverages native AD protocols and LDAP/Kerberos

(12)

Security Camp at Boston University: August 20th, 2015 12

Pros and Cons of the Traditional Option

Pros:

Well known

Does not require third party

Does not require SFU/IMU

Supports trusted domains

Cons:

Can connect only to AD and very MSFT focused

Has some perceived stability issues

(13)

Security Camp at Boston University: August 20th, 2015

Introducing SSSD

SSSD is a service used to retrieve information from a central

identity management system.

SSSD connects a Linux system to a central identity store:

Active Directory

FreeIPA

Any other directory server

Provides authentication and access control

Top technology in the evolution chain of the client side IdM

components

(14)

Security Camp at Boston University: August 20th, 2015

SSSD Features

Multiple parallel sources of identity and authentication –

domains

All information is cached locally for offline use

Remote data center use case

Laptop or branch office system use case

Advanced features for

FreeIPA integration

AD integration

(15)

Security Camp at Boston University: August 20th, 2015

Identity Source Integration with SSSD

SSSD SSSD N etw or k B ou nd ar y Client Client Client Client Client Client NSS Responder NSS Responder PAM Responder PAM Responder Cache

Cache ProviderDomainProviderDomain

Identity Provider Identity Provider Auth Provider Auth Provider Authentication Server Authentication Server Identity Server Identity Server

(16)

16

Why SSSD is our choice?

Supports everything that previous UNIX solutions support

and more

Brings architecture to the next level

Supports multiple sources – domains

Supports IdM specific features

Supports trusts between AD and IdM

(17)

Security Camp at Boston University: August 20th, 2015 17

Contemporary Integration Option

Active Directory Active Directory Linux system Linux system DNS DNS LDAPLDAP KDCKDC SSSD SSSD PoliciesPolicies Name Resolution Name Resolution Authentication Authentication Identities Identities sudo sudo hbac hbac automount automount selinux selinux Can map AD SID to POSIX attributes or use SFU/IMU

Can join system into AD domain (realmd)

Leverages native AD protocols and LDAP/Kerberos

Authentication can use LDAP or Kerberos

AD can be extended to serve basic sudo and automount

GPO support for HBAC is available.

Other policies are delivered via configuration files and managed locally or via a config server like Puppet.

(18)

Security Camp at Boston University: August 20th, 2015 18

Pros and Cons of the Contemporary Option

Pros:

Does not require SFU/IMU but can use them

Can be used with different identity sources

Support transitive trusts in AD domains and trusts with FreeIPA

Supports CIFS client and Samba FS integration

GPO for Windows based HBAC

Cons:

(19)

Security Camp at Boston University: August 20th, 2015 19

Option Comparison

Feature

LDAP/KRB

Winbind

SSSD

Authenticate using Kerberos or LDAP

Yes

Yes

Yes

Identities are looked up in AD

Yes

Yes

Yes

Requires SFU/IMU

Yes

No

No

ID mapping

None

Multiple ways

Most popular way

System is joined into AD

Manual

Has join utility

Realmd

Supports trusts for AD domains

No

Yes

Yes

Supports heterogeneous domains and advanced

features

No

No

Yes

Support file sharing

No

Yes

Yes

HBAC GPO

No

No

Yes

(20)

Security Camp at Boston University: August 20th, 2015 20

Bottom Line of the Direct Integration

SSSD is the way to go

Winbind is the fallback option:

if you rely on NTLM (please do not, it is very insecure)

If you have multiple forests and need users from different forests to

(21)

Security Camp at Boston University: August 20th, 2015 21

Limitations of the Direct Integration Options

Policy management is mostly left out

Per system CALs add to cost

Linux/UNIX administrators do not have control over the

environment

(22)

Security Camp at Boston University: August 20th, 2015 22

FreeIPA Based Integration Option (Trust)

Active Directory Active Directory Linux system Linux system DNS DNS LDAPLDAP KDCKDC SSSD SSSD PoliciesPolicies Name Resolution Name Resolution Authentication Authentication Identities Identities

Domain trust is established on the Kerberos level. DNS zone can be delegated to FreeIPA, can be a

subdomain

Client software connects to the right server depending on the information it needs FreeIPA FreeIPA KDC KDC LDAPLDAP DNSDNS sudo sudo hbac hbac automount automount selinux selinux

Policies are managed centrally

(23)

Security Camp at Boston University: August 20th, 2015 23

Pros and Cons of the FreeIPA Trust

Pros:

Reduces cost – no CALs or 3rd party

Policies are centrally managed

Gives control to Linux admins

Enabled independent growth of the Linux environment

No synchronization required

Authentication happens in AD

Requirement:

(24)

Security Camp at Boston University: August 20th, 2015 24

Terminology

FreeIPA – open source project and technology

IdM – Identity Management in Red Hat Enterprise Linux or

CentOS

(25)

Security Camp at Boston University: August 20th, 2015 25

Direct vs. Indirect

Use Case

Direct Integration

Trust-based Integration

Number of Linux Clients

Small, less than 30

Large, 30 or more

Policy Management

Requires separate solution

Included with FreeIPA

Cost

Grows with # of clients(CALs)

Fixed at one connection

Free in Fedora/RHEL/CentOS

Best Investment Profile

Short-term

Long-term

(26)

Security Camp at Boston University: August 20th, 2015 26

Summary

Consider direct integration for a small deployment

Consider SSSD as a main solution for direct integration

Use winbind as a fallback alternative

Consider IdM/FreeIPA trust based solution for a bigger or

growing environment

Use Fedora to discover, CentOS to prepare and RHEL to

(27)

Security Camp at Boston University: August 20th, 2015 27

Resources

FreeIPA

Project wiki:

www.freeipa.org

Project trac:

https://fedorahosted.org/freeipa/

Code:

http://git.fedorahosted.org/git/?p=freeipa.git

Mailing lists:

[email protected]

[email protected]

[email protected]

SSSD:

https://fedorahosted.org/sssd/

Mailing lists:

[email protected]

[email protected]

Certmonger:

https://fedorahosted.org/certmonger/

(28)

Security Camp at Boston University: August 20th, 2015 28

(29)

Security Camp at Boston University: August 20th, 2015 29

References

Related documents

Vintela Authentication Services allows system administrators to provide a secure environment where users have the same user name and password for Windows, Unix, and Linux

There are several promo codes that you can input into the FREE ROBUX platform itself or specific games to unlock these free items.. If you want to take your gameplay to the next

37 Direct Integration Active Directory Active Directory Linux system Linux system DNS DNS LDAP LDAP KDC KDC SSSD SSSD Policies Policies Name Resolution Name Resolution

UNIX/Linux – LDAP, LDAP + Kerberos, NIS Windows – Active Directory (LDAP + Kerberos) LDAP is the most common identity store.. Centralized user databases.. Basic LDAP

Identity Management Under the Hood FreeIPA Core Directory Server Kerberos KDC NTP DNS Management framework Managed host (client) SSSD Management Station CLI

Comparison with Winbind and the LDAP provider Feature SSSD with LDAP/KRB5 providers SSSD with AD provider Winbind. Requires SFU/IMU Yes

Under the Hood IPA Core Directory Server Kerberos KDC NTP DNS Management framework Managed host (client) SSSD Management Station CLI Browser Certmonger

AD - IPA Trust AD Linux System SSSD Authentication KDC LDAP DNS Identities Name resolution Policies sudo hbac automount selinux IPA KDC LDAP DNS Domains trust