gpt4 book ai didi

linux - Linux Ubuntu 上的 OTRS 单点登录 (SSO)

转载 作者:太空宇宙 更新时间:2023-11-04 03:56:39 24 4
gpt4 key购买 nike

我尝试使用 Apache 在 Linux 上安装 SSO,但我不明白为什么 Linux 系统有 ntdomain,甚至不明白 ntdomain 到底是什么。

http://wiki.otterhub.org/index.php?title=Implementing_Single_Sign_On_on_Linux_with_Apache#Installing_Modules

<Location /otrs>
PerlAuthenHandler Apache2::AuthenNTLM
AuthType ntlm,basic
AuthName Basic
require valid-user
PerlAddVar ntdomain "DOMAIN dc bdc"
PerlSetVar defaultdomain DOMAIN
PerlSetVar splitdomainprefix 1
</Location>

$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::HTTPBasicAuth';
$Self->{CustomerPanelLoginURL} = 'http://otrs-server/otrs/no_sso_login_possible.html';
$Self->{CustomerPanelLogoutURL} = 'http://otrs-server/otrs/logout.html';

为什么会有ntdomain?我不知道在 Linux 环境中这是什么。我不知道如何从文档中做到这一点。

除此之外,它似乎与 github 站点上的文档不同。有没有简单的英文解释,或者我只是愚蠢之类的?

http://otrs.github.io/doc/manual/admin/3.1/en/html/auth-backends.html#customer-auth-backend-httpbasic

最佳答案

这取决于你想做什么......

来自 Otterhub-Wiki 的示例侧重于使用 NTLM 为 Windows 域中的 Windows 客户端提供 SSO:用户使用其域凭据登录到其工作站,并将这些凭据传递给 OTRS/Apache。

管理手册中的示例(使用 Kernel::System::CustomerAuth::HTTPBasicAuth)是一种更通用的方法 - 但从技术上讲几乎与 NTLM 内容相同。

这里的基本思想是,您在其他地方为用户进行了某种身份验证,然后设置了 Authorization header - 就像 HTTP-Basic-Auth 所做的那样。

OTRS 然后使用 Authorization header 提供的用户名来查询本地用户数据库。

tl;dr:在第一个示例中,您通过从 NTLM 获取相关信息来设置 Authorization header ,在第二个示例中,您必须自己找到方法并设置适当的 header 。

关于linux - Linux Ubuntu 上的 OTRS 单点登录 (SSO),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24459363/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com