problem in authentication

Moderator: crythias

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

problem in authentication

Post by Ann »

Hi,

I have configured ldap in my otrs.But it is not possible to login. It shows error like...

Code: Select all

Panic, user authenticated but no user data can be found in OTRS DB!! Perhaps the user is invalid.
When i referred the otrs admin guide...in that it says
It is also a good idea to first create a user in OTRS using the standard DB authentication mechanism. If you configure LDAP/AD authentication before you have created any users, you won't be able to log on. Create a user that you give admin rights to and which corresponds to the username listed in Active Directory.
Is it correct???? Then what is the use of LDAP???!!!!!
Anybody please give me a solution....
root
Administrator
Posts: 4262
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: problem in authentication

Post by root »

You need to configure the AuthSyncModule. Details on this can be found in the documentation an in this forum.

hth, Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Ann
Znuny newbie
Posts: 27
Joined: 27 Jan 2012, 07:56
Znuny Version: 3.0.9
Real Name: Ann
Company: SGSSoft

Re: problem in authentication

Post by Ann »

Thanks for your reply .....
I have configured AuthSyncModule , but now also it showing the same error.....
And this is my configuration. Could you please check whether it is correct or not.....

Code: Select all

$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
	 $Self->{'AuthModule::LDAP::Host'} = '172.20.1.28'; 
   $Self->{'AuthModule::LDAP::BaseDN'} = 'OU=abcd,DC=pitsm,DC=com';
   $Self->{'AuthModule::LDAP::UID'} = 'sAMAccountName';
   $Self->{'AuthModule::LDAP::SearchUserDN'} = 'CN=otrs,OU=abcd,DC=pitsm,DC=com';
  $Self->{'AuthModule::LDAP::SearchUserPw'} = 'otrsuser';
$Self->{AuthSyncModule} = 'Kernel::System::Auth::Sync::LDAP';
    $Self->{'AuthSyncModule::LDAP::Host'} = 'ldap://172.20.1.28/';
    $Self->{'AuthSyncModule::LDAP::BaseDN'} = 'OU=abcd,DC=pitsm,DC=com';
    $Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
    $Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'CN=otrs,OU=Bangalore,DC=pitsm,DC=com';
    $Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'otrsuser';
  
    $Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
        UserFirstname => 'givenName',
        UserLastname  => 'sn',
        UserEmail     => 'mail',
    };
Thanks
Ann
Znuny newbie
Posts: 27
Joined: 27 Jan 2012, 07:56
Znuny Version: 3.0.9
Real Name: Ann
Company: SGSSoft

Re: problem in authentication

Post by Ann »

HI,
When i tried to login using ldap authentication it showing error that i mentioned before....and my log report is this
[Fri Feb 17 10:52:23 2012][Notice][Kernel::System::Auth::LDAP::Auth] User: otrs (CN=otrs,OU=abcd,DC=pitsm,DC=com) authentication ok (REMOTE_ADDR: 127.0.0.1).
[Fri Feb 17 10:52:23 2012][Notice][Kernel::System::User::UserUpdate] User: 'otrs' updated successfully (1)!
[Fri Feb 17 10:52:23 2012][Notice][Kernel::System::User::SetPassword] User: 'otrs' changed password successfully!
What it means......
root
Administrator
Posts: 4262
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: problem in authentication

Post by root »

Why is there a different SearchUserDN fpr the Auth and the Sync module?
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Locked