使用 Active Directory 作为 Linux 客户端的 LDAP 服务器

sid*_*deh 8 linux active-directory ldap

我想弄清楚如何使用 Windows Server 2008 R2 作为 Linux 客户端的 LDAP 服务器。

理想情况下,用户应该能够通过针对 AD 的 pam_ldap 身份验证登录到他们的 Linux 工作站。(不幸的是,winbind 不是一种选择)

我已经查看了适用于 Unix 的 Windows 服务,但它似乎很快就要停产了。

有没有其他方法可以实现这一目标?

sid*_*deh 5

感谢您的建议。正如我在原帖中提到的,Unix 的 Windows 服务很快就会停产,但我找到了任何感兴趣的人的替代品。

在 Windows Server 2008 R2 中,您需要安装“基于 UNIX 的应用程序子系统”功能。

其次,在 Roles > Active Directory Domain Services 下,您需要安装“Identity Management for Unix”。

一旦安装了这些,每个用户都会有一些额外的 unix 属性:)

/etc/ldap.conf 的 ldap 映射如下:

# RFC 2307 (AD) mappings
nss_map_objectclass posixAccount user
nss_map_objectclass shadowAccount user
nss_map_attribute uid sAMAccountName
nss_map_attribute homeDirectory unixHomeDirectory
nss_map_attribute shadowLastChange pwdLastSet
nss_map_objectclass posixGroup group
nss_map_attribute uniqueMember member
pam_login_attribute sAMAccountName
pam_filter objectclass=User
pam_password ad
Run Code Online (Sandbox Code Playgroud)

互操作性的乐趣...