首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >docker容器上的SSSD (Ubuntu)

docker容器上的SSSD (Ubuntu)
EN

Stack Overflow用户
提问于 2018-10-15 05:06:03
回答 3查看 1.3K关注 0票数 0

我正在尝试将ubuntu docker容器与FreeIPA集成,在安装FreeIPA-client -install时遇到以下错误

代码语言:javascript
复制
Created /etc/ipa/default.conf
New SSSD config will be created
Configured sudoers in /etc/nsswitch.conf
Configured /etc/sssd/sssd.conf
Configured /etc/krb5.conf for IPA realm BLABS.COM
trying https://vilma.com/ipa/json
Forwarding 'ping' to json server 'https://vilma.com/ipa/json'
Forwarding 'ca_is_enabled' to json server 'https://vilma.com/ipa/json'
Systemwide CA database updated.
Adding SSH public key from /etc/ssh/ssh_host_dsa_key.pub
Adding SSH public key from /etc/ssh/ssh_host_ed25519_key.pub
Adding SSH public key from /etc/ssh/ssh_host_ecdsa_key.pub
Adding SSH public key from /etc/ssh/ssh_host_rsa_key.pub
Forwarding 'host_mod' to json server 'https://vilma/ipa/json'
SSSD enabled
SSSD service restart was unsuccessful.
Configured /etc/openldap/ldap.conf
Unable to find 'admin' user with 'getent passwd admin@vilma.com'!
Unable to reliably detect configuration. Check NSS setup manually.
NTP enabled

我尝试手动启动sssd,方法是键入sssd并得到以下消息

代码语言:javascript
复制
 ldb: unable to open modules directory '/usr/lib/x86_64-linux-gnu/ldb/modules/ldb' - Permission denied
 (Sun Oct 14 20:55:17:078716 2018) [sssd] [load_configuration] (0x0010): The confdb initialization failed
(Sun Oct 14 20:55:17:078750 2018) [sssd] [main] (0x0020): SSSD couldn't load the configuration database.

非常感谢你的帮助

EN

回答 3

Stack Overflow用户

发布于 2020-06-08 23:49:56

如果其他人遇到这种情况,问题是docker使用的overlayfs会导致sssd正在使用的ldb数据库出现问题。

因此,您需要:

在容器中启动Dockerfile

  • then,之前,您必须创建一个空卷并将其装载到/usr/lib/x86_64-linux-gnu/ldb/modules/ldb

  • then中将/usr/lib/x86_64-linux-gnu/ldb/modules/ldb的原始内容从/usr/lib/x86_64-linux-gnu/ldb/modules/ldb-orig拷贝到新卷

  • 中,然后启动container
票数 3
EN

Stack Overflow用户

发布于 2020-10-24 11:29:50

这似乎在Linux 5.8中得到了修复。我想是这个fix,但我不确定。

票数 0
EN

Stack Overflow用户

发布于 2018-10-18 05:30:47

我可以通过不使用sssd (--no-sssd选项)来管理解决方法

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52807098

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档