LDAP Integration

Moderator: crythias

Post Reply
xionnon
Znuny newbie
Posts: 1
Joined: 09 May 2012, 16:33
Znuny Version: 3.1.2

LDAP Integration

Post by xionnon »

Hi everyone, I am having a very hard time with this LDAP integration. I am using OTRS 3.1.2 on CentOS 6.

I have read the documentation from here:http://doc.otrs.org/3.1/en/html/auth-backends.html
I have also looked through several posts. I just cannot seem to find where I have messed up. Can anyone point me in the right direction? I have attached my code.
Thanks in advance!

Code: Select all

$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = 'ldap IP here';
$Self->{'AuthModule::LDAP::BaseDN'} = 'dc=VPS,dc=INT';
$Self->{'AuthModule::LDAP::UID'} = 'uid';
$Self->{'AuthModule::LDAP::GroupDN'} = 'cn=OTRS Agent,cn=Users,dc=VPS,dc=INT';
$Self->{'AuthModule::LDAP::AccessAttr'} = 'memberUid';
$Self->{'AuthModule::LDAP::UserAttr'} = 'UID';
$Self->{'AuthModule::LDAP::SearchUserDN'} = 'cn=Helpdesk,cn=Users,dc=VPS,dc=INT';
$Self->{'AuthModule::LDAP::SearchUserPw'} = 'passwordhere';
$Self->{'AuthModule::LDAP::AlwaysFilter'} = '(objectclass=user)';
$Self->{'AuthModule::LDAP::Params'} = {
    port => 389,
    timeout => 120,
    async => 0,
    version => 3,
};

$Self->{'AuthModule::UseSyncBackend'} = 'AuthSyncBackend';
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'ldap IP here';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=VPS, dc=INT';
$Self->{'AuthSyncModule::LDAP::UID'} = 'uid';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'cn=Helpdesk,cn=Users,dc=VPS,dc=INT';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'passwordhere';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
    # DB -> LDAP
    UserFirstname => 'givenName',
    UserLastname  => 'sn',
    UserEmail     => 'mail',
};
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
    'users',
];

Using this code, whenever I try to log on with a valid user / member of OTRS Agent, I get this in the apache logs:


Message: No UserID found for 'VALID USER HERE'!

Traceback (5102):
Module: Kernel::System::User::UserLookup (v1.121) Line: 797
Module: Kernel::System::Auth::Auth (v1.56) Line: 244
Module: Kernel::System::Web::InterfaceAgent::Run (v1.64) Line: 204
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 46
Module: (eval) (v1.90) Line: 204
Module: ModPerl::RegistryCooker::run (v1.90) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.90) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31
dylan650
Znuny newbie
Posts: 29
Joined: 18 May 2012, 19:48
Znuny Version: 3.1.2

Re: LDAP Integration

Post by dylan650 »

Are you sure that your DN is cn=Helpdesk,cn=Users,dc=VPS,dc=INT?
Are you sure it isn't cn=Helpdesk,ou=Users,dc=VPS,dc=INT?
Post Reply