Results 1 to 7 of 7

Thread: Password rules?

  1. #1
    jm_phila is offline Sugar Community Member
    Join Date
    May 2011
    Location
    Philadelphia, PA, USA
    Posts
    70

    Default Password rules?

    I was looking to set up password complexity rules for my users so that I can open my Sugar CE 6.2.3 instance up for use outside my network, but I can't seem to find the settings. I see them documented in the CE 5.5 guide, but nowhere after. There are also remnants of it in the Change Password code, but nowhere to adjust settings.

    It does look like this is available in the subscription versions. Is the feature (a pretty fundamentally necessary one) crippled in CE, or am I missing it?

  2. #2
    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: Password rules?

    I also don't know where to configure that (whether it is possible).
    But in cases LDAP autehtication is used, the password definition don't depends of sugar application, it is defined in external sources.

    To have it on sugar (in case this feature isn't available) you could try one fo follow solutions:
    - Update file /modules/Users/Save.php: In this file you could check the value was input for user's password, then you could make validations using PHP.
    - Update file /modules/Users/Editview.tpl, here you could add a js function to be called before submit user's form. Then you can validate password complexity using js.
    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

  3. #3
    jm_phila is offline Sugar Community Member
    Join Date
    May 2011
    Location
    Philadelphia, PA, USA
    Posts
    70

    Default Re: Password rules?

    Thanks Rafael. I've run with this a bit and found that I can accomplish what I need by adding some logic to the "change_password" function in /modules/Users/User.php. However, this is not upgrade-safe, and I'd very much like it to be. I have tried creating a CustomUser class to extend User, but it doesn't appear to be called unless I add a /custom/Extension/application/Ext/Include/include.ext.php with the following:
    PHP Code:
    <?php
    $beanList
    ['Users'] = 'CustomUser';
    $beanFiles['User'] = 'custom/modules/Users/CustomUser.php';
    ?>
    That, unfortunately, appears to cause issues with MVC, among other things.

    Any ideas for making this change upgrade-safe?

  4. #4
    jm_phila is offline Sugar Community Member
    Join Date
    May 2011
    Location
    Philadelphia, PA, USA
    Posts
    70

    Default Re: Password rules?

    It seems that several password management features, though covered in CE documentation, are missing. I can't seem to find the "maximum number of login attempts" setting either.

    Can anyone on the Sugar team let me know whether these settings are intentionally missing, or if there is something wrong with my Sugar instance?

  5. #5
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Password rules?

    The settings in question can be accessed via Admin > Password Management.

    Note that the features for Pro and other commercial versions are more robust than those in CE. I am guessing the documentation is referring to features from Pro, although they don't exist in CE, hence part of the confusion.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  6. #6
    jm_phila is offline Sugar Community Member
    Join Date
    May 2011
    Location
    Philadelphia, PA, USA
    Posts
    70

    Default Re: Password rules?

    Thanks Angel. I see the settings in Admin > Password Management. The "more robust" features are certainly missing.

    So am I correct in assuming that though they appear in the documentation for several versions of CE, they are indeed only present in Pro?

  7. #7
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Password rules?

    That would be a correct assumption.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2011-06-16, 09:18 PM
  2. Rules of Supression?
    By darada in forum Help
    Replies: 0
    Last Post: 2008-10-13, 12:16 PM
  3. Validation Rules
    By spencerm in forum Help
    Replies: 1
    Last Post: 2008-03-28, 11:32 PM
  4. Install DB password handling bug (mishandling of % in password string)
    By mansonthomas in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-12-25, 02:28 PM
  5. Rules and Rights
    By MRO in forum Help
    Replies: 2
    Last Post: 2004-08-30, 11:56 PM

Tags for this Thread

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
  •