Link to home
Start Free TrialLog in
Avatar of ivan rosa
ivan rosaFlag for United States of America

asked on

How to Join Centos to Windwos Domain

Hello Folks,

Does anybody have a procedure on how to join Centos PCs to a Windows Domain?

I'm running Windows server 2008
PCs running Centos 6.9

Thanks for looking
Avatar of William Miller
William Miller
Flag of United States of America image

Here's a pretty detailed article I found on the issue on rootusers:

https://www.rootusers.com/how-to-join-centos-linux-to-an-active-directory-domain/
Avatar of ivan rosa

ASKER

thanks for the swift response Will, however when i try this line from that guide
realm join --user=administrator example.com

Open in new window


it gives me the following
"bash: realm: command not found "

am I missing to install realm and if so what would be the repo?
Sorry about that, I made an assumption on my end, haha. Here's another guide that includes the repo package you should need to join AD:

https://outsideit.net/realmd-sssd-ad-authentication/

This one isn't as detailed, of course, but it will give you the necessary repo.
hmm,

so with the second guide, installing the applications gives me an error below
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos-distro.cavecreek.net
 * extras: centos.unixheads.org
 * updates: centos.mbni.med.umich.edu
No package realmd available.
Package sssd-1.13.3-57.el6_9.x86_64 already installed and latest version
Package oddjob-0.30-6.el6.x86_64 already installed and latest version
Package oddjob-mkhomedir-0.30-6.el6.x86_64 already installed and latest version
Package adcli-0.8.1-1.el6.x86_64 already installed and latest version
Package samba-common-3.6.23-45.el6_9.x86_64 already installed and latest version
No package samba-common-tools available.
Package ntpdate-4.2.6p5-10.el6.centos.2.x86_64 already installed and latest version
Package ntp-4.2.6p5-10.el6.centos.2.x86_64 already installed and latest version
Nothing to do

Open in new window


and therefore step 2 line, two doesn't go beyond
systemctl enable ntpd.service
bash: systemctl: command not found

Open in new window

Hmm, that is an interesting one. I'm on a Windows-based PC right now and don't really have access to Linux. I'll do some digging and see if I can figure out why realm wouldn't be available. Maybe something about that package has changed or realm has changed.
ASKER CERTIFIED SOLUTION
Avatar of ivan rosa
ivan rosa
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hence no response from anybody else i was forced to research deep everywhere else until achieve my goal
I'm having the same issue as Ivan, none of the repo's I have for my CentOS 7 have the required packages I need to install so I can join this server to my domain.

Anyone have updated repo's that will install all these packages needed?

yum -y install adcli sssd authconfig pam_krb5 samba4-common