【问题标题】:OTRS with LDAP authentication not working带有 LDAP 身份验证的 OTRS 不起作用
【发布时间】:2017-04-20 10:15:13
【问题描述】:

我在我的服务器上运行 OTRS 5s,需要在其中配置 LDAP 身份验证。

目前我有这个代码:

$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = '127.0.0.1';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=domain,dc=com';
$Self->{'AuthModule::LDAP::UID'} = 'uid';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'cn=tester,cn=adminuser,ou=users,dc=domain,dc=com';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'tester';

最后两行应该没问题,但我在现场收到此错误

Panic, user authenticated but no user data can be found in OTRS DB!! Perhaps the user is invalid.

我还尝试了在此处和其他网站上找到的版本,但使用以下代码根本无法使用:

$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = '127.0.0.1';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=domain,dc=com';
$Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthModule::LDAP::GroupDN'} = 'cn=adminuser,ou=users,dc=domain,dc=com';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'AuthModule::LDAP::UserAttr'} = 'DN';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'cn=tester,cn=adminuser,ou=users,dc=domain,dc=com';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'tester';

但它会导致错误的密码或用户名和 apache error.log 调用

ERROR: OTRS-CGI-45 Perl: 5.20.2 OS: linux Time: Mon Dec  5 18:19:41 2016
Message: No UserID found for 'tester'!

两个代码都有

$Self->{'AuthModule::LDAP::Params'} = {
    port => 389,
    timeout => 120,
    async => 0,
    version => 3,
};

感谢任何帮助,谢谢。

【问题讨论】:

    标签: authentication ldap debian otrs


    【解决方案1】:

    用户(代理)需要先存在于数据库中,然后才能对其使用 LDAP 身份验证。手动添加它们或配置 AuthSyncModule 模块。

    【讨论】:

    • 我尝试配置 AuthSyncModule 模块,但得到相同的结果
    • 经过几次尝试,结果变成了Message: Can't create user 'tester' (cn=tester,cn=adminuser,ou=users,dc=domain,dc=com) in RDBMS!
    • 用户在 Active Directory 中需要这些属性:
    • - 给定名称、sn、邮件
    【解决方案2】:

    $Self->{'AuthModule::LDAP::Params'} 部分之后使用以下参数:

    $Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
    UserFirstname => 'givenName',
    UserLastname  => 'sn',
    UserEmail     => 'mail',
    };
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-10
      相关资源
      最近更新 更多