Results 1 to 7 of 7

Thread: Integration of Sugar CRM with an audit application

  1. #1
    lionelM is offline Member
    Join Date
    Jul 2008
    Posts
    5

    Default Integration of Sugar CRM with an audit application

    HEllo All,
    I'm not a Sugar CRM user but from another APP.
    I need to get some inorfmation to add few lines of codes at the login of Sugar
    Can someone help me on this
    My app is an audit system for DB
    I need to find where I can collect :
    - application username ( what is the name of the variable ? )
    - DB username ( if I'm not wrong, I found db_username)
    - Database name ( again, if not wrong db_name )
    - username prefix and postfix (if they exist )
    - session pattern
    -session prefix and postfix ( if they exist as well )

    - Session ID pattern
    - Session ID pattern postfix and prefix ( if they exist )

    Second step ... where am I supposed to add a line which will execute at user session start a query ( means , user enter login and pass, then click login. I want to run a specific query at this time )

    Thanks in advance for your help !!!
    Lionel

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Integration of Sugar CRM with an audit application

    - DB username ( if I'm not wrong, I found db_username)
    Correct

    - Database name ( again, if not wrong db_name )
    Correct

    - username prefix and postfix (if they exist )
    It does not exist

    - session pattern
    session on sugar can be retrieved through $_REQUEST['PHPSESSID']

    -session prefix and postfix ( if they exist as well )
    It does not exist

    - Session ID pattern
    - Session ID pattern postfix and prefix ( if they exist )
    ??????

    Second step ... where am I supposed to add a line which will execute at user session start a query ( means , user enter login and pass, then click login. I want to run a specific query at this time )

    The logic_hook after_login can accomplish that to you.

    Regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    lionelM is offline Member
    Join Date
    Jul 2008
    Posts
    5

    Default Re: Integration of Sugar CRM with an audit application

    Hello andré, sorry for this basic question ,but in which file ?
    I found the class in include/Utils/
    Is it entrypoint.php ?
    Thanks
    Lionel

  4. #4
    lionelM is offline Member
    Join Date
    Jul 2008
    Posts
    5

    Default Re: Integration of Sugar CRM with an audit application

    Hello
    I'm sorry, but I'm not very good in PHP and I don't see where I'm supposed to put the 3 code lines I need to add...
    Can you please indecate me which file I must edit ?
    Thanks
    L.
    Last edited by lionelM; 2009-10-26 at 01:23 PM.

  5. #5
    lionelM is offline Member
    Join Date
    Jul 2008
    Posts
    5

    Default Re: Integration of Sugar CRM with an audit application

    Hello,
    Can anyone else can help me on this ?
    In which file can I find the PHP code for login-in and login-out ?
    Thanks in advance
    Lionel

  6. #6
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Integration of Sugar CRM with an audit application

    Have a look at the Logic Hooks section(s) of the Dev manual in my sig.

    You need to create an after_login logic hook that does your magic on the other app...
    The editLogicHooks tool in my sig can also help you build some logic hooks (if only to start understanding them better). Unforyunately it does not cater for after_login.

    You can try to use my tool to create an after_retrieve logic hook on ALL modules and then just change everything in logic_hooks.php and mjvn-*** in custom/modules folder to after_login instead of after_retrieve.

    M
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  7. #7
    lionelM is offline Member
    Join Date
    Jul 2008
    Posts
    5

    Default Re: Integration of Sugar CRM with an audit application

    hello mvngti
    Thanks for your answer
    I will search with this

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 2008-03-28, 01:17 PM
  2. Replies: 0
    Last Post: 2008-01-28, 05:05 PM
  3. Using sugar crm in asp.net application
    By shyam in forum General Discussion
    Replies: 3
    Last Post: 2006-08-23, 09:43 PM
  4. Replies: 0
    Last Post: 2005-11-08, 02:56 PM
  5. Contact integration with another application
    By rdesalis in forum Feature Requests
    Replies: 1
    Last Post: 2004-11-22, 09:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •