centos7 - 添加用户时出现 FreeIpa 数据库错误
问题描述
我有一台运行了一年多的 ipa 服务器。最近,当我尝试通过 https 或终端添加新用户时,它失败并显示以下错误消息。
IPA-Fehler 4203: DatabaseError
Server is unwilling to perform: Managed Entry Plugin rejected add operation (see errors log).
在错误日志中,我看到:
[timestamp] [:warn] [pid 2731] [client xxx] failed to set perms (3140) on file (/var/run/ipa/ccaches/user@xxx)!, referer: xxx
[timestamp] [:error] [pid 2727] ipa: INFO: [jsonserver_session] user@xxx: group_find(None, posix=True, version=u'2.230', no_members=True): SUCCESS
[timestamp] [:warn] [pid 2731] [client xxx] failed to set perms (3140) on file (/var/run/ipa/ccaches/user@xxx)!, referer: xxx
[timestamp] [:error] [pid 2726] ipa: INFO: [jsonserver_session] user@xxx: user_add(u'xxx', givenname=u'xxx', sn=u'xxx', userpassword=u'********', version=u'2.230'): DatabaseError
未创建用户,但我必须按照此处所述删除托管组: https ://www.redhat.com/archives/freeipa-users/2016-August/msg00092.html ,然后我才能重试。到底是怎么回事?任何帮助表示赞赏。
$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
$ ipa --version
VERSION: 4.6.4, API_VERSION: 2.230
解决方案
所以我设法解决了这个问题。在尝试其他设置时,我尝试添加没有私人组的用户并收到错误消息:
Server is unwilling to perform: Automember Plugin update unexpectedly failed.
快速搜索显示,当用户被添加到一个不存在的组时,该错误正在发生,这是由于过时的 Auto-Membership-Rule 而发生的。更正这一点,可以添加用户。
推荐阅读
- javascript - 如何使用 Next.js 检查自定义服务器中是否存在页面
- c++ - 在 QLabel 中显示视频
- python - PyTorch - 自定义 ReLU 平方实现
- linux - 使用 FOR 循环时出现奇怪的问题,这里是脚本中的文档
- amazon-s3 - Logstash 当前日期 logstash.conf 作为 backup_add_prefix(s3 输入插件)
- javascript - 检查时差是否小于1秒
- php - 如何将 base64 数据嵌入到 Laravel 6 电子邮件中
- javascript - 克隆后如何禁用原始删除按钮也为 id 文本框自动递增
- node.js - 节点可以在多个线程中运行吗?
- xml - 从包含多个值的行中获取值