[otrs] [Ticket #5488] CAS single sign on with perl authcas module

KIRAN IT kiran1432u at gmail.com
Sun Jul 3 19:11:38 GMT 2011


This is a notification from the Help Desk.




On Jul 04, 2011 @ 12:41 am, noreply at tamay-dogan.net wrote:
WARNING:  This is an automated message after you send out over
          100 unsolicited messages to my account and others.

Stop your customers spaming ME, my Mailinglists and my Mailservers,
and any other users of <otrs at otrs.org>. by your crap service!
We have nothing to do with YOUR Ticket-System!

========================================================================

>From root  Sun Jul  3 21:12:00 2011
Return-Path: <otrs-bounces at otrs.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.tamay-dogan.net
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,
	T_DKIM_INVALID,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT
	autolearn=ham version=3.3.1
Delivered-To: a-linux.ml4michelle at tamay-dogan.net
Received: from lusen.otrs.org (lusen.otrs.org [::ffff:80.190.216.66])
  by mail.tamay-dogan.net with esmtp; Sun, 03 Jul 2011 21:05:04 +0200
  id 00001F64.4E10BD60.00005E73
Received: from lusen.otrs.org (localhost [127.0.0.1])
	by lusen.otrs.org (Postfix) with ESMTP id 83C565653E;
	Sun,  3 Jul 2011 19:05:16 +0000 (GMT)
X-Original-To: otrs-otrs at lusen.otrs.org
Delivered-To: otrs-otrs at lusen.otrs.org
Received: from mail.otrs.com (osser.otrs.com [88.198.17.202])
	by lusen.otrs.org (Postfix) with ESMTP id 914AB56530
	for <otrs-otrs at lusen.otrs.org>; Sun,  3 Jul 2011 19:05:14 +0000 (GMT)
Received: from localhost (localhost [127.0.0.1])
	by mail.otrs.com (Postfix) with ESMTP id D8A4AEDC5E
	for <otrs-otrs at lusen.otrs.org>; Sun,  3 Jul 2011 21:04:55 +0200 (CEST)
Received: from mail.otrs.com ([127.0.0.1])
	by localhost (osser.otrs.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 04871-04 for <otrs-otrs at lusen.otrs.org>;
	Sun,  3 Jul 2011 21:04:52 +0200 (CEST)
Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com
	[74.125.83.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
	(No client certificate requested)
	by mail.otrs.com (Postfix) with ESMTP id 30FB0ECE99
	for <otrs at otrs.org>; Sun,  3 Jul 2011 21:04:52 +0200 (CEST)
Received: by pvg11 with SMTP id 11so5532695pvg.13
	for <otrs at otrs.org>; Sun, 03 Jul 2011 12:04:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=date:from:to:message-id:subject:mime-version:content-type
	:content-transfer-encoding;
	bh=JEpHQPWTuFl/4I3sBk5A/st42S2X3lZD9EM78fPwyi4=;
	b=VDT1AzpVahIMYLRwnkaGwrjNJ23ZWGu1Ba8FGnUcOEsUdojMGfwgIWW0Evn7cCPHV8
	bAV1cz0kZWRB9QdCDVNvJkyUR2XKUmJhRscUZfv/WGL4GdCLpLwCI4j23kq+l0aB56U2
	4PGSFmPQ42kJmm9wQ10GSCN2gsKgh/RHV4t6U=
Received: by 10.68.13.230 with SMTP id k6mr6430974pbc.341.1309719890454;
	Sun, 03 Jul 2011 12:04:50 -0700 (PDT)
Received: from  ([61.16.188.194])
	by mx.google.com with ESMTPS id u6sm3437912pbh.32.2011.07.03.12.04.47
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sun, 03 Jul 2011 12:04:49 -0700 (PDT)
Date: Mon, 04 Jul 2011 00:31:37 +0530
From: KIRAN IT <kiran1432u at gmail.com>
To: otrs at otrs.org
Message-ID: <4e10bc91aa781_1984d66dd07440420 at itsupport.mail>
Mime-Version: 1.0
Content-Type: multipart/mixed;
	boundary="--==_mimepart_4e10bc91a6a79_1984d66dd07440094";
	charset=utf-8
Content-Transfer-Encoding: 7bit
Subject: [otrs] [Ticket #5488] CAS single sign on with perl authcas module
X-BeenThere: otrs at otrs.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: "User questions and discussions about OTRS." <otrs at otrs.org>
List-Id: "User questions and discussions about OTRS." <otrs.otrs.org>
List-Unsubscribe: <http://lists.otrs.org/cgi-bin/options/otrs>,
	<mailto:otrs-request at otrs.org?subject=unsubscribe>
List-Archive: <http://lists.otrs.org/pipermail/otrs>
List-Post: <mailto:otrs at otrs.org>
List-Help: <mailto:otrs-request at otrs.org?subject=help>
List-Subscribe: <http://lists.otrs.org/cgi-bin/listinfo/otrs>,
	<mailto:otrs-request at otrs.org?subject=subscribe>
Sender: otrs-bounces at otrs.org
Errors-To: otrs-bounces at otrs.org
X-TDMailSerialnumber: 10752536



----==_mimepart_4e10bc91a6a79_1984d66dd07440094
Date: Mon, 04 Jul 2011 00:31:37 +0530
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="--==_mimepart_4e10bc91a2d70_1984d66dd074399c3";
	charset=utf-8
Content-Transfer-Encoding: 7bit
Content-ID: <4e10bc91aa781_1984d66dd07440390 at itsupport.mail>



----==_mimepart_4e10bc91a2d70_1984d66dd074399c3
Date: Mon, 04 Jul 2011 00:31:37 +0530
Mime-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: 7bit
Content-ID: <4e10bc91a6a79_1984d66dd0744012 at itsupport.mail>

This is a notification from the Help Desk.


==Ticket History==

On Jul 04, 2011 @ 12:31 am, noreply at tamay-dogan.net wrote:
WARNING:  This is an automated message after you send out over
          100 unsolicited messages to my account and others.

Stop your customers spaming ME, my Mailinglists and my Mailservers,
and any other users of <otrs at otrs.org>. by your crap service!
We have nothing to do with YOUR Ticket-System!

========================================================================

>From root  Sun Jul  3 21:01:36 2011
Return-Path: <otrs-bounces at otrs.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.tamay-dogan.net
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,
	T_DKIM_INVALID,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT
	autolearn=ham version=3.3.1
Delivered-To: a-linux.ml4michelle at tamay-dogan.net
Received: from lusen.otrs.org (lusen.otrs.org [::ffff:80.190.216.66])
  by mail.tamay-dogan.net with esmtp; Sun, 03 Jul 2011 20:55:05 +0200
  id 00001F45.4E10BB09.00005CA8
Received: from lusen.otrs.org (localhost [127.0.0.1])
	by lusen.otrs.org (Postfix) with ESMTP id 4AD4D56517;
	Sun,  3 Jul 2011 18:55:17 +0000 (GMT)
X-Original-To: otrs-otrs at lusen.otrs.org
Delivered-To: otrs-otrs at lusen.otrs.org
Received: from mail.otrs.com (osser.otrs.com [88.198.17.202])
	by lusen.otrs.org (Postfix) with ESMTP id DBCFA564DF
	for <otrs-otrs at lusen.otrs.org>; Sun,  3 Jul 2011 18:55:14 +0000 (GMT)
Received: from localhost (localhost [127.0.0.1])
	by mail.otrs.com (Postfix) with ESMTP id 13107EDC70
	for <otrs-otrs at lusen.otrs.org>; Sun,  3 Jul 2011 20:54:56 +0200 (CEST)
Received: from mail.otrs.com ([127.0.0.1])
	by localhost (osser.otrs.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 03014-08 for <otrs-otrs at lusen.otrs.org>;
	Sun,  3 Jul 2011 20:54:53 +0200 (CEST)
Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com
	[74.125.83.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
	(No client certificate requested)
	by mail.otrs.com (Postfix) with ESMTP id BF0F1EDC5E
	for <otrs at otrs.org>; Sun,  3 Jul 2011 20:54:52 +0200 (CEST)
Received: by pvg11 with SMTP id 11so5527994pvg.13
	for <otrs at otrs.org>; Sun, 03 Jul 2011 11:54:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=date:from:to:message-id:subject:mime-version:content-type
	:content-transfer-encoding;
	bh=zwlXLKRZfnqO3o9DykiHPRB2nV0zZTtRrnmiWRQ0mLw=;
	b=RA2R0rYgpNr0BqDZnJhXPqpFX6qnCVqKcO5C+IFhKNjrOyYyBv/Jm3iXE/fGU7PhPu
	bxH8MBZMr7VOK8yhVZ6852Cw66zSsbs/OhqAa8hyap1XnjCpySU/c11TQmrn2kHk+ZMp
	l2uC40GcKlEp6Al4TOg3vCa8lEWQP0GvIxWJ4=
Received: by 10.142.122.20 with SMTP id u20mr2571674wfc.388.1309719289937;
	Sun, 03 Jul 2011 11:54:49 -0700 (PDT)
Received: from  ([61.16.188.194])
	by mx.google.com with ESMTPS id l13sm1953771wfe.12.2011.07.03.11.54.47
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sun, 03 Jul 2011 11:54:49 -0700 (PDT)
Date: Mon, 04 Jul 2011 00:21:37 +0530
From: KIRAN IT <kiran1432u at gmail.com>
To: otrs at otrs.org
Message-ID: <4e10ba39fe20_1989389d127438684 at itsupport.mail>
Mime-Version: 1.0
Content-Type: multipart/mixed;
	boundary="--==_mimepart_4e10ba39c118_1989389d127438234";
	charset=utf-8
Content-Transfer-Encoding: 7bit
Subject: [otrs] [Ticket #5488] CAS single sign on with perl authcas module
X-BeenThere: otrs at otrs.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: "User questions and discussions about OTRS." <otrs at otrs.org>
List-Id: "User questions and discussions about OTRS." <otrs.otrs.org>
List-Unsubscribe: <http://lists.otrs.org/cgi-bin/options/otrs>,
	<mailto:otrs-request at otrs.org?subject=unsubscribe>
List-Archive: <http://lists.otrs.org/pipermail/otrs>
List-Post: <mailto:otrs at otrs.org>
List-Help: <mailto:otrs-request at otrs.org?subject=help>
List-Subscribe: <http://lists.otrs.org/cgi-bin/listinfo/otrs>,
	<mailto:otrs-request at otrs.org?subject=subscribe>
Sender: otrs-bounces at otrs.org
Errors-To: otrs-bounces at otrs.org
X-TDMailSerialnumber: 10752530



----==_mimepart_4e10ba39c118_1989389d127438234
Date: Mon, 04 Jul 2011 00:21:37 +0530
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="--==_mimepart_4e10ba39840f_1989389d1274381ed";
	charset=utf-8
Content-Transfer-Encoding: 7bit
Content-ID: <4e10ba39fe20_1989389d12743851f at itsupport.mail>



----==_mimepart_4e10ba39840f_1989389d1274381ed
Date: Mon, 04 Jul 2011 00:21:37 +0530
Mime-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: 7bit
Content-ID: <4e10ba39c118_1989389d1274383aa at itsupport.mail>

This is a notification from the Help Desk.

------
On Jul 04, 2011 @ 12:21 am, noreply at tamay-dogan.net wrote:
WARNING:  This is an automated message after you send out over
          100 unsolicited messages to my account and others.

Stop your customers spaming ME, my Mailinglists and my Mailservers,
and any other users of <otrs at otrs.org>. by your crap service!
We have nothing to do with YOUR Ticket-System!

========================================================================

>From root  Sun Jul  3 20:51:11 2011
Return-Path: <otrs-bounces at otrs.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.tamay-dogan.net
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,
	T_DKIM_INVALID,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT
	autolearn=ham version=3.3.1
Delivered-To: a-linux.ml4michelle at tamay-dogan.net
Received: from lusen.otrs.org (lusen.otrs.org [::ffff:80.190.216.66])
  by mail.tamay-dogan.net with esmtp; Sun, 03 Jul 2011 20:50:32 +0200
  id 00001F45.4E10B9F8.00005BA5
Received: from lusen.otrs.org (localhost [127.0.0.1])
	by lusen.otrs.org (Postfix) with ESMTP id 68312564DF;
	Sun,  3 Jul 2011 18:50:46 +0000 (GMT)
X-Original-To: otrs-otrs at lusen.otrs.org
Delivered-To: otrs-otrs at lusen.otrs.org
Received: from mail.otrs.com (osser.otrs.com [88.198.17.202])
	by lusen.otrs.org (Postfix) with ESMTP id C29FE564DA
	for <otrs-otrs at lusen.otrs.org>; Sun,  3 Jul 2011 18:50:45 +0000 (GMT)
Received: from localhost (localhost [127.0.0.1])
	by mail.otrs.com (Postfix) with ESMTP id 215B6EE095
	for <otrs-otrs at lusen.otrs.org>; Sun,  3 Jul 2011 20:50:27 +0200 (CEST)
Received: from mail.otrs.com ([127.0.0.1])
	by localhost (osser.otrs.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 03014-06 for <otrs-otrs at lusen.otrs.org>;
	Sun,  3 Jul 2011 20:50:24 +0200 (CEST)
Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com
	[74.125.83.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
	(No client certificate requested)
	by mail.otrs.com (Postfix) with ESMTP id 13E9CEBA39
	for <otrs at otrs.org>; Sun,  3 Jul 2011 20:50:22 +0200 (CEST)
Received: by pvg11 with SMTP id 11so5525714pvg.13
	for <otrs at otrs.org>; Sun, 03 Jul 2011 11:50:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=date:from:to:message-id:subject:mime-version:content-type
	:content-transfer-encoding;
	bh=gBoW0Ho1/mVZxSDZF5s8Nl+PrFlKiHpvUhFB5MiSWHg=;
	b=WwK+IpT3FDA21vX/y7++OXzL1lOhz3aYCoAlmsSpgYNvkaaeC4WAwpHn8avm7ygzOU
	wY+cyW35Adn77iOz+WZwQrkYgWwVaHdYA9mVyeo2/IEMFijh6MvDF3+GRXBL6Oqo4xhq
	EKJzsljgPhc9+Ush+WjAuKNP6sy4zJd7akTdM=
Received: by 10.142.122.27 with SMTP id u27mr2612811wfc.2.1309719019138;
	Sun, 03 Jul 2011 11:50:19 -0700 (PDT)
Received: from  ([61.16.188.194])
	by mx.google.com with ESMTPS id x1sm3432167pbb.18.2011.07.03.11.50.16
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sun, 03 Jul 2011 11:50:18 -0700 (PDT)
Date: Mon, 04 Jul 2011 00:17:06 +0530
From: KIRAN IT <kiran1432u at gmail.com>
To: otrs at otrs.org
Message-ID: <4e10b92aebda5_1984cae7b27436849 at itsupport.mail>
Mime-Version: 1.0
Content-Type: multipart/mixed;
	boundary="--==_mimepart_4e10b92ae809d_1984cae7b274364da";
	charset=utf-8
Content-Transfer-Encoding: 7bit
Subject: [otrs] [Ticket #5488] CAS single sign on with perl authcas module
X-BeenThere: otrs at otrs.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: "User questions and discussions about OTRS." <otrs at otrs.org>
List-Id: "User questions and discussions about OTRS." <otrs.otrs.org>
List-Unsubscribe: <http://lists.otrs.org/cgi-bin/options/otrs>,
	<mailto:otrs-request at otrs.org?subject=unsubscribe>
List-Archive: <http://lists.otrs.org/pipermail/otrs>
List-Post: <mailto:otrs at otrs.org>
List-Help: <mailto:otrs-request at otrs.org?subject=help>
List-Subscribe: <http://lists.otrs.org/cgi-bin/listinfo/otrs>,
	<mailto:otrs-request at otrs.org?subject=subscribe>
Sender: otrs-bounces at otrs.org
Errors-To: otrs-bounces at otrs.org
X-TDMailSerialnumber: 10752516



----==_mimepart_4e10b92ae809d_1984cae7b274364da
Date: Mon, 04 Jul 2011 00:17:06 +0530
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="--==_mimepart_4e10b92ae4395_1984cae7b274363d8";
	charset=utf-8
Content-Transfer-Encoding: 7bit
Content-ID: <4e10b92aebda5_1984cae7b274367b at itsupport.mail>



----==_mimepart_4e10b92ae4395_1984cae7b274363d8
Date: Mon, 04 Jul 2011 00:17:06 +0530
Mime-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: 7bit
Content-ID: <4e10b92ae809d_1984cae7b27436590 at itsupport.mail>

This is a notification from the Help Desk.

------
On Jul 04, 2011 @ 12:16 am, michiel.beijen at otrs.com wrote:
Hi Mikael,

If you want to authenticate with CAS you only need to configure Apache
to use mod_auth_cas (see
https://wiki.jasig.org/display/CASC/mod_auth_cas) .

When you have that set up you then can simply use the BasicAuth
authentication for OTRS. We have multiple customers that are using
this with good results. There's nothing that you should need to hack
in OTRS for this.

If you want you can contact us for commercial support.
-- 
Michiel Beijen
Senior Consultant

OTRS BV
Schipholweg 103
2316 XC  Leiden
The Netherlands

T: +31 71 8200 255
F: +31 71 8200 254
I:  http://www.otrs.com

Increase efficiency up to 30% - get OTRS Help Desk 3.0:
http://www.otrs.com/

------
On Jul 03, 2011 @ 03:31 am, mikael.kermorgant at gmail.com wrote:
Hello,

I have setup otrs 3.0.5 with single sign on based on apache and mod_cas.

As this could be a problem when having different authentication scenarios
for agents and customers, I have tried to setup a CAS auth module by
copy/pasting code snippets here and there (I don't know perl...). I think
I'm almost there but I have an annoying bug I'm asking help for now.

I have created a CAS.pm file in  /opt/otrs/Kernel/System/CustomerAuth

====
use CGI;
use AuthCAS;
use CGI;
use CGI::Carp qw( fatalsToBrowser );

...

sub Auth {
    my ( $Self, %Param ) = @_;

    my $cas = new AuthCAS(casUrl => 'https://sso.paris.iufm.fr/cas');
    my $app_url = 'http://support.paris.iufm.fr/otrs/customer.pl';

    unless ($ENV{QUERY_STRING} =~ /ticket=/) {
    ###
    ### Redirect the User for login at CAS
    ###
      my $login_url = $cas->getServerLoginURL($app_url);
      printf "Location: $login_url\n\n";
      exit 0;
    }

    $ENV{QUERY_STRING} =~ /ticket=([^&]+)/; my $ST = $1;
    my $User = $cas->validateST($app_url, $ST);
    # return user
    return $User;
}
============

The problem is with the line "unless ($ENV{QUERY_STRING} =~ /ticket=/) {".
It seems the $ENV{QUERY_STRING} is empty (not tested but I end in an
infinite loop, due to falling in this condition evrytime)

Would somebody have an idea about how to fix this check ?

Regards,

-- 
Mikael Kermorgant

------
This is an automated response.  Your issue has been noted.  We'll be in touch soon.

Please reply to this email or visit the URL below with any additional details.

http://itsupport:1111/portal/view-help-request/5488


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.otrs.org/pipermail/otrs/attachments/20110704/48fd7c11/attachment-0001.html>


More information about the otrs mailing list