最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

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

业界 admin 9浏览 0评论

首先准备好以下测试机:

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

CentOS7上操作如下:

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

[root@centos130 ~]# realm join --user=administrator hadoop.local

Password for administrator:

检查:

[root@centos130 ~]# 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: %U@hadoop.local
  login-policy: allow-realm-logins
[root@centos130 ~]# id sshuser001@hadoop.local
uid=193601109(sshuser001@hadoop.local) gid=193600513(domain users@hadoop.local) groups=193600513(domain users@hadoop.local)

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

转载于:https://blog.51cto/jiaszwx/2406072

首先准备好以下测试机:

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

CentOS7上操作如下:

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

[root@centos130 ~]# realm join --user=administrator hadoop.local

Password for administrator:

检查:

[root@centos130 ~]# 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: %U@hadoop.local
  login-policy: allow-realm-logins
[root@centos130 ~]# id sshuser001@hadoop.local
uid=193601109(sshuser001@hadoop.local) gid=193600513(domain users@hadoop.local) groups=193600513(domain users@hadoop.local)

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

转载于:https://blog.51cto/jiaszwx/2406072

发布评论

评论列表 (0)

  1. 暂无评论