You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-08-16 11:29:36

Passero
Member
From: Rome
Registered: 2007-10-12
Posts: 22

Bug in GLPI 0.72.1 - User password field missing

Hi,

I noticed that if you add a new user you can't insert the password because the field is missing.
Previous version of GLPI (0.72) correctly showed this field.

Passero

Offline

#2 2009-08-16 12:10:29

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Bug in GLPI 0.72.1 - User password field missing

Yes...

For security goal, a user cannot change the password of another user if it have less right.

Rights are not know during creation (because, mostly affected by rules) so password is not editable.

You need to modifiy the user after its creation.

I have try a change which allow password input for a user which have more rights than everybody (super-admin).

SVN change : https://forge.indepnet.net/repositories … i?rev=8736   (can't be applied on 0.72)

Can you test it with 0.72 ?
You only have to change (file inc/profile.class.php, ligne 195)
From

      if (count($IDs)==0) {
         return false;
      }

To :

      if (count($IDs)==0) {
         // Check all profiles (means more right than all possible profiles) 
         return (countElementsInTable($this->table)
            == countElementsInTable($this->table, $this->getUnderProfileRetrictRequest('')));
         // return false;
      }

Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2009-08-17 08:06:42

Passero
Member
From: Rome
Registered: 2007-10-12
Posts: 22

Re: Bug in GLPI 0.72.1 - User password field missing

Tested on 0.72.1 and it works perfectly!
Thank you.

Passero

Offline

#4 2009-08-18 16:57:51

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Bug in GLPI 0.72.1 - User password field missing

Also applied on 0.72 (for next 0.72.2)

https://forge.indepnet.net/repositories/revision/5/8743

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

Board footer

Powered by FluxBB