Customer SSO not loging in

Moderator: crythias

Locked
zipzoom
Znuny newbie
Posts: 26
Joined: 15 Aug 2012, 22:09
Znuny Version: 3.1.4

Customer SSO not loging in

Post by zipzoom »

When i go to customer.pl is not loging me in with my AD accout it just show the login screen, below is my config

Please help need this done by the end of the week


$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::HTTPBasicAuth';
$Self->{'AuthModule::HTTPBasicAuth::ReplaceRegExp'} = '@xxxx.com\\';
# If you use this module, you should use as fallback
# the following configuration settings if the user is not authorized
# apache ($ENV{REMOTE_USER})
$Self->{LoginURL} = 'http://example.com/Im_sorry_youre_not_authenticated';
# or a youtube vid of Rick Astley?
$Self->{LogoutURL} = 'http://example.com/portal';

# LDAP auth. backend.

$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = 'xxx.xxx.xx.xxx';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'DC=xx,DC=xxx,DC=com';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';

$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=OTRS LDAP,CN=Users,DC=xxxx,DC=xxxxx,DC=com';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'xxxxxx';
$Self->{'Customer::AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};


# (customer user ldap backend and settings)
$Self->{CustomerUser} = {
Name => 'LDAP Backend',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => '119.206.79.216',
BaseDN => 'DC=xxxx,DC=xxxx,DC=com',
SSCOPE => 'sub',
UserDN => 'CN=OTRS LDAP,CN=Users,DC=xxxx,DC=xxxx,DC=com',
UserPw => 'xxxx',
AlwaysFilter => '',
},
CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName','cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
Map => [
[ 'UserTitle', 'Title', 'title', 1, 0, 'var', '', 0 ],
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var', '', 0 ],
[ 'UserLogin', 'Username', 'sAMAccountName', 1, 1, 'var', '', 0 ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var', '', 0 ],
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var', '', 0 ],
[ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1, 0, 'var', '', 0 ],
[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var', '', 0 ],
[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var', '', 0 ],
[ 'UserComment', 'Comment', 'description', 1, 0, 'var', '', 0 ],
],
};
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customer SSO not loging in

Post by crythias »

zipzoom wrote:When i go to customer.pl is not loging me in with my AD accout it just show the login screen
Makes sense to me:
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';

This would mean it's going to query LDAP for password. (It means it expects the user to connect with login and password, and it will check it against LDAP/AD, once the user has put it in the login box.)

If you want SSO, you'll have to use that as a Customer::AuthModule (however you choose to secondarily authenticate).
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
zipzoom
Znuny newbie
Posts: 26
Joined: 15 Aug 2012, 22:09
Znuny Version: 3.1.4

Re: Customer SSO not loging in

Post by zipzoom »

crythias wrote:
zipzoom wrote:If you want SSO, you'll have to use that as a Customer::AuthModule (however you choose to secondarily authenticate).

So how would i do this with my config what do i need to change to get SSO
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customer SSO not loging in

Post by crythias »

http://wiki.otterhub.org/index.php?titl ... ith_Apache
viewtopic.php?f=81&t=15422
http://doc.otrs.org/3.1/en/html/auth-ba ... -httpbasic

I have not implemented it. There are people who have, and if you need this in a time critical method, you might hire some assistance.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
zipzoom
Znuny newbie
Posts: 26
Joined: 15 Aug 2012, 22:09
Znuny Version: 3.1.4

Re: Customer SSO not loging in

Post by zipzoom »

i just need it for customer login not agents
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customer SSO not loging in

Post by crythias »

Right. I didn't post links for Agent single signon.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked