Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  (#1) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
SERM (Supportsuite Enhanced Right Management) - 19-07-2007, 04:24 PM

SERM (Supportsuite Enhanced Right Management)
SERM is a module for Kayako Supportsuite 3.10.02 and 3.11.0 that allows you to use enhanced permissions on resources (dl, kb, ts) using group of rights.

Project started here:
[WIP] new module: SERM (Supportsuite Enhanced Right Management) - Kayako Community Forums

Updates
31/07/07 - Updated for SupportSuite 3.11.0 (SERM v1.1)
the Bug fix is included in the install guide
30/07/07 - Bug found
20/07/07 – Description redone
19/07/07 – SERM v1 released

Features altered
IRS
Search
Modules: Downloads/Knowledgebase/Troubleshooters
Client index (popular/latest)

Requirement
Kayako Supportsuite (or eSupport) 3.10.02 or 3.11.0 Owned License
This “fix” http://forums.kayako.com/showpost.php?p=56514&postcount=7
If you're runing 3.10.02 use SERM v1.0!

Installation Guide
Download the archive (see attachment)
Extract all files in the module folder (you should get folders like this: modules/serm/*.php - 5 files)
Follow the guide in setup.php (comments at the beginning)
Go to http://mysite.domain/support/setup/
Click on modify
Go to the last step and click on Install (in the SERM line)

First time guide
Go the staff panel
Go to the “rights” tab > Manage rights
Create a subgroup (from the root) called guest
Create a subgroup (from guest) called registered
Go to Manage Usergroups
Click on Guest
Click on the RightGroups tab
Check the Guest mark
Submit
Go to Manage Usergroups
Click on Registered
Click on the RightGroups tab
Check the Registered mark
* for each other usergroup check the registered rightgroup
You have now a basic setting. You can now create new rightgroups and handle permissions.

Conditions terms
There’s no real license behind this but here are the main lines:
- You CANNOT sell this module without my agreement (but I don’t think I’ll give it)
- Kayako Infotech Ltd. is allowed to do what they want with this module.
- You can modify it as you want/need (but please share your modifications on the forum!)
- This module is provided “as it”. No support/guarantee. Use it at your own risks (but I don’t know what risks there could be… maybe security?)

Improvements
What can be done :
- Externalise language phrases (atm they’re hard codded)
- Improve type check on queries (not done atm, this can be a security issue)
- Handle file per file permissions (atm it’s only categories)
- Handle user per user permissions (atm it’s only usergroups)
- Extend SERM to other features (SERM is well modulable because the right table can be used like a data warehouse with changeable values for the targettype (atm only DL/KB/TS)

What / Who / Why?
This module has been done for SPECIFIC needs of EONA (French company) for a project of support platform. This module has been coded by a trainee-student (Antoine BERMON).
Cost for EONA would have been roughly 1400€ (analysis, code, workflow analysis, tests, documentation) but in fact only 350€ because I’m a trainee, but it’s given FREE to the kayako community because EONA doesn’t have time to improve it (and I’m going to leave as my training period is getting over) and I hope someone will continue it.
If you’re motivated you can make a donation

Thanks and Greetings to
Jamie (kayako), Varun (kayako), Julien (EONA), Craig Brass (Community), Mehul “SIORA” (Community), Mark Dahl “gmg” (Community), and to all the forgotten people.

Contact
You can contact me using my MSN/eMail (remove the spaces, add a @ and dots) sheepux - live -com

Bugs
Bug1 (v1.0) - the RSS doesn't work anymore when SERM is installed
Fix: [MODULE] SERM (Supportsuite Enhanced Right Management) - Kayako Community Forums
Attached Files
File Type: zip serm-v1.0-.zip (14.4 KB, 30 views)
File Type: zip serm-v1.1-.zip (14.5 KB, 101 views)


Antoine "Sheep" BERMON
-- Lurking around there --

Last edited by Sheep; 19-06-2008 at 10:24 PM. Reason: Description redone
   
Reply With Quote
  (#2) Old
craigbrass Offline
Senior Member
 
Posts: 5,762
Join Date: Jun 2005
Location: Cumbria, UK
19-07-2007, 05:28 PM

Nice job Antoine. Thanks for sharing. Will give this a whirl tomorrow.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#3) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
20-07-2007, 08:59 AM

Description redone, what do you think of it?


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#4) Old
Inaba Offline
New Member
 
Posts: 5
Join Date: Feb 2006
20-07-2007, 09:51 PM

This doesn't appear to work for Downloads and Troubleshooters. Those fields/tabs are blank when I select them. There is also no way to save the check marks under the Knowledgebase tab.

Don't think I screwed anything up...
   
Reply With Quote
  (#5) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
20-07-2007, 09:59 PM

did you applied the "fix" ?


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#6) Old
Inaba Offline
New Member
 
Posts: 5
Join Date: Feb 2006
25-07-2007, 09:52 PM

I missed the fix ... I just applied it. Seems to be working now I think.

Last edited by Inaba; 25-07-2007 at 10:08 PM.
   
Reply With Quote
  (#7) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
25-07-2007, 10:46 PM

that's good to know that it was the issue!
I know i've not done a guide, but tell me what you understand of it without having one. That will help me to create a good guide


Antoine "Sheep" BERMON
-- Lurking around there --

Last edited by Sheep; 25-07-2007 at 10:56 PM.
   
Reply With Quote
  (#8) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
30-07-2007, 08:35 AM

Bug found!

Symptoms
the RSS doesn't work anymore when SERM is installed

Reasons
The RSS doesn't use a user identification, so the swift variable that helps SERM to identify the group of the current user (yes "guest" is also a user) isn't defined, generating an SQL error.

Fix
in modules/downloads/function_clientdl.php
and modules/knowledgebase/function_clientkb.php
look for the function
PHP Code:
function getSubCategories
look for the SERM part
(you can find it with)
PHP Code:
    //---SERM---// 
wrap the whole SERM part with
PHP Code:
    if (isset($_SWIFT["user"]["usergroupid"]))
    {
        
//REMOVE THIS COMMENT AND LET THE SERM CODE HERE
    
}
    else {
        
//COPY BACK THE ORIGINAL QUERY (look for it in setup.php)
    

That's it.

Limits
There's no longer right checks on RSS, meaning that any user that access to the category RSS can view what's in the category (but can't access the articles as there's a second check).


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#9) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
31-07-2007, 01:22 PM

version 1.1 is out for compatibility purpose with 3.11.0
(only 3 queries changed)
The bug fix is included in the install guide.

Greetings,
Antoine


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#10) Old
jptimone Offline
New Member
 
Posts: 18
Join Date: Mar 2006
Location: Kuopio, Finland
02-08-2007, 11:30 AM

This module looks promising but the zip-files seems to be corrupted? Could someone upload them again?
   
Reply With Quote
  (#11) Old
craigbrass Offline
Senior Member
 
Posts: 5,762
Join Date: Jun 2005
Location: Cumbria, UK
02-08-2007, 11:44 AM

Both open fine for me. What are you using to unzip?


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#12) Old
jptimone Offline
New Member
 
Posts: 18
Join Date: Mar 2006
Location: Kuopio, Finland
02-08-2007, 01:09 PM

Quote:
Originally Posted by craigbrass View Post
Both open fine for me. What are you using to unzip?
Very strange, I use 7-zip and it worked in other computer but not in web server I was working on. But got it in my computer so now testing...
   
Reply With Quote
  (#13) Old
Sarah_User Offline
Member
 
Posts: 52
Join Date: Jul 2007
08-08-2007, 10:42 PM

I'm having trouble with the downloads section in serm. I have a download in a category, and then i gave the user rights to the category...and then I get a blank page when I click on the downloads link.....


Any ideas?

Thanks!
Sarah
   
Reply With Quote
  (#14) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
11-08-2007, 01:37 PM

Hi sarah, sorry for being late:

in modules/serm/functions_serm.php
find
PHP Code:
function sermCheck
uncomment (remove the //) the following line:
PHP Code:
//echo "$usergroupid - $ressourcetype - $ressourceid - $isallowed[count]"; 
Please, let me know what is displays now.


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#15) Old
mopa Offline
Member
 
mopa's Avatar
 
Posts: 146
Join Date: May 2007
Location: Denmark
24-09-2007, 01:13 PM

Is it only me or are those files corrupt?
Could someone please send me a v1.1 of the abowe or better yet (replace the file if it is not working)


Kayako: 3.11.01 | PHP: 5.2.3 | MySQL: 5.0.41 | Windows 2003 Server
   
Reply With Quote
Reply

Tags
enhanced, management, serm, supportsuite

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
Kayako SupportSuite < 3.30.00 Multiple Vulnerabilities nwilkens SupportSuite, eSupport and LiveResponse 1 11-08-2008 04:43 PM
Sessions management in SupportSuite danielmr44 Developers & Code 1 03-07-2008 07:01 PM
[WIP] new module: SERM (Supportsuite Enhanced Right Management) Sheep Developers & Code 22 03-08-2007 03:53 PM
SupportSuite Owned License Inquiries bmc2010 Presales Questions 3 27-08-2006 08:58 PM
Showcase: SoftAir & DemoWolf partner for complete SupportSuite customizations demowolf Marketplace 0 21-03-2006 02:09 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.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