大网数据广告活动
服务器运维问答

Why does realmd list multiples of the same realm?

· 52CE 我爱测

I'm setting up an Ubuntu server so that users can authenticate against a Windows AD server. Not knowing about realmd, I used Samba Winbind's net join command to join the machine to the domain. Afterwards, I installed realmd and t…

问题原文

原帖链接 · watkipet · CC BY-SA 4.0

I'm setting up an Ubuntu server so that users can authenticate against a Windows AD server. Not knowing about realmd, I used Samba Winbind's net join command to join the machine to the domain. Afterwards, I installed realmd and tried realm list:

username@ubuntuhost:~$ realm list
thedomain.com
  type: kerberos
  realm-name: THEDOMAIN.COM
  domain-name: thedomain.com
  configured: kerberos-member
  server-software: active-directory
  client-software: winbind
  required-package: winbind
  required-package: libpam-winbind
  required-package: samba-common-bin
  login-formats: THEWORKGROUP\%U
  login-policy: allow-any-login
thedomain.com
  type: kerberos
  realm-name: THEDOMAIN.COM
  domain-name: thedomain.com
  configured: kerberos-member
  server-software: active-directory
  client-software: sssd
  required-package: sssd-tools
  required-package: sssd
  required-package: libnss-sss
  required-package: libpam-sss
  required-package: adcli
  required-package: samba-common-bin
  login-formats: %U
  login-policy: allow-permitted-logins
  permitted-logins:
  permitted-groups:

It appears that I have two realms--the first managed by winbind and the second managed by sssd. Am I right? I don't really need both. How do I whittle this down to just one? I guess I'd prefer to use the sssd version. How do I remove the windbind entry?

已采纳解答

原帖链接 · ElementalStorm · CC BY-SA 4.0

This is actually a dangerous situation, as you're probably using ONE of the two entries, not both, and you can't be sure you're using the one you want.

Depending on your nsswitch.conf, you may be using winbind or sss. You probably don't need both, and I assume sss the best choice.

So, assuming that we want to use sss and NOT winbind, alas the only way I found to keep the right realm is to remove both and re-add the one you want:

realm leave
realm leave
realm join thedomain.com

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-02-19)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。