AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 784636
Accepted
Rob Audenaerde
Rob Audenaerde
Asked: 2016-06-18 07:44:42 +0800 CST2016-06-18 07:44:42 +0800 CST 2016-06-18 07:44:42 +0800 CST

SSSD Kerberos AD Centos 故障排除

  • 772

我遵循了 RedHat AD 集成中的配置 3(https://access.redhat.com/sites/default/files/attachments/rhel-ad-integration-deployment-guidelines-v1.5.pdf);但我被困住了。

我在 Centos 6.8 上。

我有一个有效的 AD 连接:

 service sssd stop
 rm -r /var/lib/sss/db/*
 rm -r /var/lib/sss/mc/*
 service sssd start
 getent passwd [email protected]

这将返回一条合理的线:

 robau:*:102201201:102200513:Rob Audenaerde:/:

但是,当我尝试通过 SSH 连接时,我无法登录。我在sssd.conf.

我看到的错误(在var/log/sssd/krb5_child.log)是:

(Fri Jun 17 17:23:18 2016) [[sssd[krb5_child[3561]]]] [validate_tgt] (0x0020): TGT failed verification using key for [host/[email protected]].
(Fri Jun 17 17:23:18 2016) [[sssd[krb5_child[3561]]]] [get_and_save_tgt] (0x0020): 1240: [-1765328377][Server not found in Kerberos database]
(Fri Jun 17 17:23:18 2016) [[sssd[krb5_child[3561]]]] [map_krb5_error] (0x0020): 1301: [-1765328377][Server not found in Kerberos database]
(Fri Jun 17 17:23:18 2016) [[sssd[krb5_child[3561]]]] [k5c_send_data] (0x0200): Received error code 1432158209

服务器在 DNS 中,我可以使用它找到它nslookup

   nslookup server-new.mynetwork.nl

   Server:  192.168.110.56
   Address: 192.168.110.56#53

   Name:    server-new.mynetwork.nl
   Address: 192.168.210.94

和

kvno host/[email protected]
kvno: Server not found in Kerberos database while getting credentials for host/[email protected]

故障排除的任何提示/提示?

[编辑] 我曾经authconfig设置必要的pam东西nss:

authconfig --enablesssdauth --enablesssd --enablemkhomedir --update

输出klist -kte:

  25 06/20/16 10:56:24 host/[email protected] (des-cbc-crc) 
  25 06/20/16 10:56:24 host/[email protected] (des-cbc-md5) 
  25 06/20/16 10:56:24 host/[email protected] (aes128-cts-hmac-sha1-96) 
  25 06/20/16 10:56:24 host/[email protected] (aes256-cts-hmac-sha1-96) 
  25 06/20/16 10:56:24 host/[email protected] (arcfour-hmac) 
  25 06/20/16 10:56:24 host/[email protected] (des-cbc-crc) 
  25 06/20/16 10:56:24 host/[email protected] (des-cbc-md5) 
  25 06/20/16 10:56:25 host/[email protected] (aes128-cts-hmac-sha1-96) 
  25 06/20/16 10:56:25 host/[email protected] (aes256-cts-hmac-sha1-96) 
  25 06/20/16 10:56:25 host/[email protected] (arcfour-hmac) 
  25 06/20/16 10:56:25 [email protected] (des-cbc-crc) 
  25 06/20/16 10:56:25 [email protected] (des-cbc-md5) 
  25 06/20/16 10:56:25 [email protected] (aes128-cts-hmac-sha1-96) 
  25 06/20/16 10:56:25 [email protected] (aes256-cts-hmac-sha1-96) 
  25 06/20/16 10:56:26 [email protected] (arcfour-hmac)

的输出klist

Ticket cache: FILE:/tmp/krb5cc_0
Default principal: [email protected]

Valid starting     Expires            Service principal
06/20/16 10:56:41  06/20/16 20:56:41  krbtgt/[email protected]
    renew until 06/27/16 10:56:41
06/20/16 11:36:07  06/20/16 20:56:41  ldap/[email protected]
    renew until 06/27/16 10:56:41

[编辑 2]

如果我在 [domain/mynetwork.local] 部分krb5_validate的末尾添加,sssd.conf那么我可以登录。但是,我还设置了另一个不需要这一步的服务器,所以我不愿意这样。

[编辑 3] 在net ads join -k我收到错误/警告期间:

DNS Update for failed: ERROR_DNS_GSS_ERROR 
DNS update failed!

[编辑 4] 我看到的输出net ads info没有使用我在配置文件中指定的主域控制器(并且是 2003R2 而不是 2008R2)。有没有办法“强制”net ads join -k使用特定的域控制器?

active-directory centos6 sssd
  • 2 2 个回答
  • 18162 Views

2 个回答

  • Voted
  1. Best Answer
    aairey
    2016-06-21T02:45:44+08:002016-06-21T02:45:44+08:00

    尝试安装并运行msktutil(可通过 EPEL 获得)。

    安装:

    yum -y --enablerepo=epel install msktutil
    

    要运行它:

    msktutil --auto-update --server my-ad --verbose
    

    然后运行 ​​kinit :

    kinit -k server-new$
    

    此外,您应该 cron 这两个作业每 6 小时左右运行一次。这样你的票就不会过期。

    对 EDIT4 的回答:您应该能够使用 指定服务器net ads join -k -S,但默认情况下,它将在您的 DNS 中搜索 SRV 记录。这很好。除非你不想那样。如果您希望特定站点使用与另一个不同的 DC,请查看 Active Directory 站点和服务。

    • 2
  2. jhrozek
    2016-06-21T08:31:53+08:002016-06-21T08:31:53+08:00

    这通常是由规范化引起的。尝试添加:

    rdns=false
    

    到 krb5.conf 以及

    SASL_NOCANON true
    

    到 ldap.conf

    (两者都已经是 RHEL-7 中的默认设置)。

    • 2

相关问题

  • 如果以域用户身份远程登录,PC 速度极慢

  • 如何在 Windows 2003 的 ou 级别应用策略

  • 允许用户更改其 Active Directory 密码的 Web 界面

  • MOSS 2007 无法使用 ActiveDirectoryMembershipProvider 配置表单身份验证

  • 通过 VPN 更改 Active Directory 密码

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve