CentOS7与Windows AD集成之一CentOS加入Windows域控

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7与Windows AD集成之一CentOS加入Windows域控相关的知识,希望对你有一定的参考价值。

首先准备好以下测试机:

  1. Windows AD一台:192.168.137.137
  2. CentOS7一台:192.168.137.130

CentOS7上操作如下:

[[email protected] ~]# yum install sssd realmd oddjob oddjob-mkhomedir adcli samba-common
[[email protected] ~]# cat /etc/resolv.conf
search example.com
nameserver 192.168.137.137

[[email protected] ~]# realm join --user=administrator hadoop.local

Password for administrator:

检查:

[[email protected] ~]# realm list
hadoop.local
  type: kerberos
  realm-name: HADOOP.LOCAL
  domain-name: hadoop.local
  configured: kerberos-member
  server-software: active-directory
  client-software: sssd
  required-package: oddjob
  required-package: oddjob-mkhomedir
  required-package: sssd
  required-package: adcli
  required-package: samba-common-tools
  login-formats: %[email protected]
  login-policy: allow-realm-logins
[[email protected] ~]# id [email protected]
uid=193601109([email protected]) gid=193600513(domain [email protected]) groups=193600513(domain [email protected])

去Windows AD查看一下,这台CentOS已经加入到Windows AD里了。
技术图片

以上是关于CentOS7与Windows AD集成之一CentOS加入Windows域控的主要内容,如果未能解决你的问题,请参考以下文章

CentOS7加入AD域(sssd)

CentOS7加入AD域(winbind)

centos7加入ad域

CentOS7单独安装Apache Bench压力测试工具

CentOS7加入windows 2008 AD域

CentOS7添加入windows2008的AD域