LDAP authenticatio problem

Moderator: crythias

Locked
Ann
Znuny newbie
Posts: 27
Joined: 27 Jan 2012, 07:56
Znuny Version: 3.0.9
Real Name: Ann
Company: SGSSoft

LDAP authenticatio problem

Post by Ann »

Hi,

I have configured the LDAP in my otrs....but its not working
Here is my config.pm

Code: Select all

 $Self->{LogModule}          = 'Kernel::System::Log::File';
    $Self->{LogModule::LogFile} = 'C:/PROGRA~1/OTRS/OTRS/var/log/otrs.log';
    # $DIBI$
    $Self->{'DefaultCharset'} = 'utf-8';
	
	$Self->{AuthModule} = 'Kernel::System::Auth::LDAP';
    $Self->{'AuthModule::LDAP::Host'} = 'localhost';
    $Self->{'AuthModule::LDAP::BaseDN'} = 'OU=Agents,DC=asdf,DC=com';
    $Self->{'AuthModule::LDAP::UID'} = 'uid';
	$Self->{'AuthModule::LDAP::GroupDN'} = 'CN=Office,OU=Agents,DC=asdf,DC=com'
	$Self->{'AuthModule::LDAP::UserAttr'} = 'UID';
	$Self->{'AuthModule::LDAP::AcessAttr'} = 'memberUid';
     $Self->{'AuthModule::LDAP::SearchUserDN'} = 'otrs';
    $Self->{'AuthModule::LDAP::SearchUserPw'} = 'otrsuser';
	$Self->{'AuthModule::LDAP::Params'} = {
        port    => 389,
        timeout => 120,
        async   => 0,
       version => 3,
	   
	   
	   $Self->{AuthSyncModule} = 'Kernel::System::Auth::Sync::LDAP';
    $Self->{'AuthSyncModule::LDAP::Host'} = 'ldap://localhost';
    $Self->{'AuthSyncModule::LDAP::BaseDN'} = 'OU=Agents,DC=asdf,DC=com'';
    $Self->{'AuthSyncModule::LDAP::UID'} = 'uid';
	$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'otrs';
    $Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'otrsuser';
	$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
        # DB -> LDAP
        UserFirstname => 'givenName',
        UserLastname  => 'sn',
        UserEmail     => 'mail',
    };



Anyone please tell where i do wrong.....
Zorn
Znuny newbie
Posts: 9
Joined: 17 Jan 2012, 16:15
Znuny Version: 3.0

Re: LDAP authenticatio problem

Post by Zorn »

try this

Code: Select all

 Enable LDAP Authentication Sync for Agent #
    $Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
    $Self->{'AuthSyncModule::LDAP::Host'} = 'delta.1c.local';
    $Self->{'AuthSyncModule::LDAP::BaseDN'} = 'cn=Users,dc=1c,dc=local';
    $Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
    $Self->{'AuthSyncModule::LDAP::AccessAttr'} = 'member';
    $Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'CN=otrs,CN=Users,DC=1c,DC=local';
    $Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'pass';
    $Self->{'AuthSyncModule::LDAP::Charset'} = 'utf-8';

    # Enable Agent Mapping from LDAP to DB #
    $Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
    UserFirstname => 'givenName',
    UserLastname => 'sn',
    UserEmail => 'mail',
    };
    $Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
        'users',
    ];
    $Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
    $Self->{'AuthModule::LDAP::Host'} = 'delta.1c.local';
    $Self->{'AuthModule::LDAP::BaseDN'} = 'dc=1c, dc=local';
    $Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
    $Self->{'AuthModule::LDAP::GroupDN'} = 'CN=OTRS.Agents,CN=Users,DC=1c,DC=local';
    $Self->{'AuthModule::LDAP::AccessAttr'} = 'member';
    $Self->{'AuthModule::LDAP::UserAttr'} = 'DN';
    $Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=otrs,CN=Users,DC=1c,DC=local';
    $Self->{'AuthModule::LDAP::SearchUserPw'} = 'pass';
I think, you have some errors ($Self->{'AuthModule::LDAP::AcessAttr'})
Locked