Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Problem Changing Password - Security Group

  1. #1
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Problem Changing Password - Security Group

    Hi all

    I have a problem when an user needs to reset his password.

    We have sugarCRM CE 5.5.1 running in a Windows 2003 Server with MySQL5.1 and with Security Suites for CE module installed.

    We are now creating a set of users and assigning it to a Security Group already present in the system. We assign a password that is the same than the Identifier of the user, so the user once he gets the set up mail he can change his password from "My Account" link.

    Problem is that if a non-admin user like this one is trying to change his password, he can see the three fields:
    Old Password - New Password - Confirm Password. If he introduces the right values and presses the "Save" button, nothing happens. I have done it running SugarCRM on Firefox and this is what I got in the error console:

    document.getElementById("default_locale_name_forma t") is null
    display_td is null
    Error: display_td is null
    File: https://ip: port/sugarcrm/index.php
    Líne: 643
    If then I press Cancell, I get a popup window asking me which user is the new password for, and shows me three names

    Creator of the Record - Admin User
    Last Modify User (Me) - Admin User
    Name of the Security Group of the Record

    If I choose third option, password modification works fine, but I dont want this pop up window to appear to the users.

    Is there any configuration I am doing wrong?

    Cheers

  2. #2
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Re: Problem Changing Password - Security Group

    Hi there

    None else got a similar problem like this with Security Suites?

    Thanks a lot

  3. #3
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Problem Changing Password - Security Group

    Does it work fine if SecuritySuite is not installed?

  4. #4
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Re: Problem Changing Password - Security Group

    Hi there

    Thanks a lot for the reply, yes we used to work with this functionality before installing SecuritySuites, and now it is acting like this.... even I am not saying it has to be due to Security Suites, but the way is behaiving seems to be that it is related.

    Anything I can pass you for you to check?

    Thanks once more

  5. #5
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Problem Changing Password - Security Group

    There's a decent chance there may be a conflict with the way the user assigning works. If you go to Security Suite Settings and uncheck New User Group Popup does everything work correctly?

  6. #6
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Re: Problem Changing Password - Security Group

    Hi again

    I have checked your suggestion disabling the option "New User Group popup" and then also tried disabling also "Use popup select", and still have the same problem.

    Here I pass you a screenshot of what we get when we want to change the password of an user, The users shown are the creator (which is an admin user), the last modifier (again admin user) and another third user that we do not know whys appearing as it is not an admin user.

    Appart from the erros that found in the Firefox Error Console that I explained before, nothing else appears in php logs or in sugarcrm logs......

    Any idea about what could it be?

    Thanks a lotName:  screenshot.png
Views: 87
Size:  172.0 KB

  7. #7
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Problem Changing Password - Security Group

    Just verified that changing the password works just fine for a non-admin in 5.5.1. With the error you are getting in Firefox it looks like a locale/language pack issue. Does it work if you switch languages?

  8. #8
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Re: Problem Changing Password - Security Group

    Hi

    Thanks for checking this, yes, I have tried this situation in different scenarios. Launching SugarCRM in default English Language, with an user that is not assigned to any Security Group, with an user assigned to a security group.... It is quite strange, we have been using Security Suites for a year almost now, and never realized about this problem, so I would not be able to tell you how and when it started.

    Anything I can check or modify in order to provide more information?

    Thanks a lot once more!

  9. #9
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Problem Changing Password - Security Group

    What other modules do you have installed? Seems like that could be a behavior by-design of some sort of password module add-on.

  10. #10
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Re: Problem Changing Password - Security Group

    Hi

    I have developed a custom module with Studio, but did not include anything special rather than using logic hooks sometimes for this custom module. Apart from this one, no other module is installed.

    I have taken a look into this problem again and focused in the code the "Save" button is calling when we try to change the password of the user. It calls to a JS function called "set_Chooser" which has this code:

    PHP Code:
    <!--  to hide script contents from old browsers

    function set_chooser()
    {



    var 
    display_tabs_def '';
    var 
    hide_tabs_def '';
    var 
    remove_tabs_def '';

    var 
    display_td document.getElementById('display_tabs_td');
    var 
    hide_td    document.getElementById('hide_tabs_td');
    var 
    remove_td  document.getElementById('remove_tabs_td');

    var 
    display_ref display_td.getElementsByTagName('select')[0];

    for(
    i=0display_ref.options.length ;i++)
    {
             
    display_tabs_def += "display_tabs[]="+display_ref.options[i].value+"&";
    }

    if(
    hide_td != null)
    {
        var 
    hide_ref hide_td.getElementsByTagName('select')[0];
        
        for(
    i=0hide_ref.options.length ;i++)
        {
             
    hide_tabs_def += "hide_tabs[]="+hide_ref.options[i].value+"&";
        }
    }

    if(
    remove_td != null)
    {
        var 
    remove_ref remove_td.getElementsByTagName('select')[0];
        
        for(
    i=0remove_ref.options.length ;i++)
        {
             
    remove_tabs_def += "remove_tabs[]="+remove_ref.options[i].value+"&";
        }
        
    }

    document.EditView.display_tabs_def.value display_tabs_def;
    document.EditView.hide_tabs_def.value hide_tabs_def;
    document.EditView.remove_tabs_def.value remove_tabs_def;



    }
    // end hiding contents from old browsers  --> 
    The error I am getting when I try to change an user password is:

    display_td is null... and it is because Save calls this code:

    PHP Code:
    <input    id="Save" title="Guardar [Alt+S]" accessKey="S" 
                        
    class="button" onclick="if (!set_password(form,newrules('','',''))) return false; if (!Admin_check()) return false; this.form.action.value='Save'; set_chooser();  if(verify_data(EditView)) this.form.submit();"
                        
    type="button" name="save" value="  Guardar  " 
    But do not understand why the display_td is null, if in the set_chooser function it is defined:

    PHP Code:
    var display_td document.getElementById('display_tabs_td'); 
    Does this give you an idea of what could be happening?

    Thanks again!!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Changing User Password
    By Lisanic in forum Help
    Replies: 1
    Last Post: 2010-05-03, 12:16 PM
  2. Password security, two-factor authentication
    By KenHughes in forum General Discussion
    Replies: 9
    Last Post: 2009-05-18, 02:56 PM
  3. Security thread, password sent to browser
    By SugarDev.net in forum Developer Help
    Replies: 0
    Last Post: 2009-01-16, 01:45 PM
  4. Security problem for the group user
    By rasha in forum Help
    Replies: 1
    Last Post: 2008-03-04, 02:43 PM
  5. Changing the Database Password
    By blfarris in forum General Discussion
    Replies: 1
    Last Post: 2006-01-13, 03:38 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
  •