Results 1 to 4 of 4

Thread: connect database according to user

  1. #1
    nanduruchi is offline Sugar Community Member
    Join Date
    Jun 2010
    Posts
    139

    Smile connect database according to user

    Hi All,
    I am nandkishore and i have user sugarcrm 5.2 and 5.3 version.i have want connect user wise database.
    ,means suoppose two user i have create in the mysql 1.root1 and root2

    if i have login with admin user in the sugarcrm so it use root1 user for connect database.
    and when i have login with other user so it connect root2 user .
    so it is possible in the sugarcrm or not.if i have do this,what can i do.


    Thanks in advance.

  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: connect database according to user

    What is the goal of such requirement?

    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
    gauts is offline Sugar Community Member
    Join Date
    Aug 2007
    Location
    France
    Posts
    27

    Default Re: connect database according to user

    Maybe you can use config_override.php to check user and change config.
    Check first if user info ares avalaible when this file is required.

    But you shouldn t need to do this manipulation : acl roles must be enough for your security
    Gauthier GENEAU
    CIGO SAS
    10 grand rue 68280 Logelheim (France)
    http://www.cigo-developpement.fr

  4. #4
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: connect database according to user

    Normally is used just on database user per web application, it is the most recomended by security policies.
    As suggested you could try to use roles or teams (in case on sugar PRO) to define your security restrictions.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to connect to database?
    By raomm in forum Help
    Replies: 0
    Last Post: 2012-01-02, 09:53 AM
  2. Could not connect to the database
    By innovaremos in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2011-07-02, 05:57 PM
  3. Can Not Connect to Database
    By lcasey-va in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2009-08-22, 12:43 PM
  4. Can not connect to database
    By rus in forum Help
    Replies: 9
    Last Post: 2009-02-05, 03:15 PM
  5. Replies: 0
    Last Post: 2005-08-31, 05:05 PM

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
  •