Kayako logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  (#1) Old
abailey Offline
New Member
 
Posts: 9
Join Date: Oct 2008
Lightbulb Single Sign-on with Active Directory Intergration (Working Solution) - 23-10-2008, 05:23 PM

After searching around for a while and not finding a solution I started digging into the code and figured out how to make it so that windows authentication will log a user into the site automatically. If you use the trusted sites feature of Internet Explorer your users won't need to login at all.

I attached the LoginShare script that I modified to make this happen. Basically what happens with this script is that it uses the current AUTH_USER from IIS and creates an account in SupportSuite if they don't exist already and then logs them in. It does no password validation because IIS has already done this previously.

This script also makes it so that only one Email address is pulled in to SupportSuite when you have multiple domain names registered within Exchange.


Installation Procedure

1. Backup your current /includes/LoginShare/ActiveDirectory.login.php file

2. Copy the attached ActiveDirectory.login.php LoginShare Script into your /includes/LoginShare folder

3. There are two variables that need to be modified for your specific domain information.
Line 23: replace with the primary email domain address for your users
Code:
$_emaildomain = "@yourdomain.com";
Line 252: replace with your unqualified / logon domain name. If your FQDN is CORP.DOMAIN.COM use CORP.

Code:
$DomainName = 'YourLogonDomainName';
4. Change the authentication method on the /index.php file to require Windows Authentication and disable Anonymous Authentication in IIS.

5. Change the permissions on the /index.php file to allow the user group that you want to give access to the SupportSuite site. You can add DomainName\Users if you wanted.

This is working great for us right now.

The only caveat with this is if someone sends an email to SupportSuite before they actually login for the first time it will cause a problem. I do have a fix for this but it is a hack to the mail parser script. I have seen some scripts on the forum that will import your AD into SupportSuite which would fix some of this. We just don't allow people to submit tickets via e-mail. Basically when the users sends the email to the system it will create a user account for them but it is invalid for domain login and causes issues when this user visits the site to follow up on their ticket. This thread "Active Directory User Import Script" explains how to import your users from AD.

Enjoy this little gem! We sure are!
Attached Files
File Type: php activedirectory.login.php (7.6 KB, 77 views)

Last edited by abailey; 23-10-2008 at 09:07 PM.
   
Reply With Quote
  (#2) Old
maguilj Offline
New Member
 
Posts: 9
Join Date: Dec 2008
10-12-2008, 05:57 PM

I have tried this and when i try to log in with an ID from my active directory it goes to a blank page? Well in Firefox it is blank in IE it is Error 500? I put it back to the Kayako lgoin and it works fine.
   
Reply With Quote
  (#3) Old
abailey Offline
New Member
 
Posts: 9
Join Date: Oct 2008
10-12-2008, 06:00 PM

Quote:
Originally Posted by maguilj View Post
I have tried this and when i try to log in with an ID from my active directory it goes to a blank page? Well in Firefox it is blank in IE it is Error 500? I put it back to the Kayako lgoin and it works fine.

Maguilj, Can you turn off custom errors and browse the site from the local server to give me the full error message? It should report what line the error message is in.

Last edited by abailey; 10-12-2008 at 06:01 PM.
   
Reply With Quote
  (#4) Old
maguilj Offline
New Member
 
Posts: 9
Join Date: Dec 2008
10-12-2008, 06:22 PM

bare with me I am new to this. I had someone setup my webserver for me. I Do not know how to turn off the custom errors. When I go to IIS properties and I see the customer error page but no way to turn it off.

EDIT I am running windows 2003 R2 SP2 PHP 5.26 Zend Opt 3.3 Kayako 3.30.02 SQL5

Last edited by maguilj; 10-12-2008 at 06:24 PM.
   
Reply With Quote
  (#5) Old
abailey Offline
New Member
 
Posts: 9
Join Date: Oct 2008
10-12-2008, 09:58 PM

maguilj, can you private message your modified activedirectory.login.phpfile to me?
   
Reply With Quote
Reply

Tags
active directory, single signon

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Active directory integration c-wex Installation & Upgrading 157 19-05-2009 03:45 PM
Active Directory Integration and enabling SSL for HTTPS ClaudioV How do I? 2 09-09-2008 09:15 AM
Separate Template Groups and MS Active Directory cglenn How do I? 0 24-06-2008 06:08 PM
Active Directory authentication/registration mdorn Technical Chat 1 20-09-2007 07:39 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71