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

FreeIPA and AD password synchronisation

· 52CE 我爱测

I am attempting to integrate FreeIPA with Active Directory to provide single-sign-on for Windows and Linux users by following this guide . I have successfully created the 'winsync' agreement and loaded the AD data into FreeIPA bu…

问题原文

原帖链接 · KingBob · CC BY-SA 3.0

I am attempting to integrate FreeIPA with Active Directory to provide single-sign-on for Windows and Linux users by following this guide.

I have successfully created the 'winsync' agreement and loaded the AD data into FreeIPA but I am struggling to setup the Windows Password Synchronization from this part of the guide.

When a user changes their password, I see the following in the 389 PassSync plugin log on the Domain Controller:

06/17/16 08:47:32: Backoff time expired.  Attempting sync
06/17/16 08:47:32: Password list has 1 entries
06/17/16 08:47:32: Attempting to sync password for some.user
06/17/16 08:47:32: Searching for (ntuserdomainid=some.user)
06/17/16 08:47:32: Ldap error in QueryUsername
34: Invalid DN syntax
06/17/16 08:47:32: Deferring password change for some.user
06/17/16 08:47:32: Backing off for 1024000ms

When I run the query from the CLI, using the same user and password used by the PassSync plugin, it is successful:

$ ldapsearch -x -h ldaps://localhost -p 636 -D 'uid=passsync,cn=sysaccounts,cn=etc,dc=dc,my=domain,dc=com' -w 'password'  -b 'cn=users,cn=accounts,dc=my,dc=domain,dc=com' '(ntuserdomainid=some.user)'

Can anyone point out what I doing wrong?

已采纳解答

原帖链接 · KingBob · CC BY-SA 3.0

I figured this out, I'll post my findings to help anyone else that has a similar issue.

On the IPA server, I found the 389-ds log: /var/log/dirsrv/slapd-HOSTNAME/access

Looking at the entries in the log I noticed some extra characters in the DN that corresponds to "Search Base". I got the Windows admin to share his RDP session to the DC and had a look at the registry in HKEY_LOCAL_MACHINE\SOFTWARE\PasswordSync.

Here I noticed the same characters in the "Search Base" key. I think these extra characters were accidentally copy-pasted from the documentation.

Removing them and restarting the service has resolved the problem.

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

资料来源与适用范围

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

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

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