Joining a Linux box to the domain
In order to participate in an AD style domain, you must have the machine joined to the domain using Administrator credentials. This will create the machine's account within the database, and provide credentials to the system for querying the ldap server.
How to do it…
- Install
Samba
,heimdal-clients
, andwinbind
:sudo apt-get install winbind
- Populate
/etc/samba/smb.conf
:[global] workgroup = EXAMPLE realm = ad.example.org security = ads idmap uid = 10000-20000 idmap gid = 10000-20000 winbind enum users = yes winbind enum groups = yes template homedir = /home/%U template shell = /bin/bash winbind use default domain = yes
- Join the system to the domain:
sudo net ads join -U Administrator
- Configure the system to use
Get Linux Networking Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.