Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v1.14.6
  • v1.14.5
  • v1.14.4
  • v1.14.3
  • v1.14.2
  • v1.14.1
  • v1.14.0
  • v1.13.2
  • v1.13.1
  • v1.13.0
  • v1.12.1
  • v1.12.0
  • v1.11.1
  • v1.11.0
  • v1.10.0
  • v1.9.2
  • v1.9.1
  • v1.9.0
  • v1.8.4
  • v1.8.3
21 results

ipauser.py

  • Thomas Woerner's avatar
    61caa578
    ipauser: Make return value depending on users parameter · 61caa578
    Thomas Woerner authored
    The way how randompasswords are returned by the ipauser module depends
    so far on the number of users that are handled by the module.
    
    This is unexpected if for example a json file is provided with the users
    parameter. As it might be unknown how many users are in the json file,
    this behaviour is unexpected. The return should not vary in this case.
    
    This chamge makes the return simply depend on the use of the users
    paramater. As soon as this parameter is used, the return will always be:
    
    "user": { "<the user>": { "randompassword": "<the user random password>" } }
    
    In the simply case with one user it will be still
    
    "user": { "randompassword": "<the user random password>" }
    
    Fixes: #1052 (ipauser should consitently return randompasswords when
                  used with users)
    61caa578
    History
    ipauser: Make return value depending on users parameter
    Thomas Woerner authored
    The way how randompasswords are returned by the ipauser module depends
    so far on the number of users that are handled by the module.
    
    This is unexpected if for example a json file is provided with the users
    parameter. As it might be unknown how many users are in the json file,
    this behaviour is unexpected. The return should not vary in this case.
    
    This chamge makes the return simply depend on the use of the users
    paramater. As soon as this parameter is used, the return will always be:
    
    "user": { "<the user>": { "randompassword": "<the user random password>" } }
    
    In the simply case with one user it will be still
    
    "user": { "randompassword": "<the user random password>" }
    
    Fixes: #1052 (ipauser should consitently return randompasswords when
                  used with users)