Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v1.14.7
  • 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
21 results

ipaservice.py

  • Rafael Guterres Jeffman's avatar
    f4383140
    ipaservice: Fix idempotent behavior for principal aliases. · f4383140
    Rafael Guterres Jeffman authored
    When creating the lists to add/remove principal aliases, if the realm
    was not specified, the alias would be used as it did not matched the
    existing one, which has the realm part.
    
    This patch fixes the add/del list creation by adding the current API
    realm to each alias that does not have the realm part and then use
    this modified list to be compared against the existing principal list.
    
    This change also allows the use of the whole list in a single call to
    the IPA API to add/remove the principals, instead of a call for every
    one item in the list.
    f4383140
    History
    ipaservice: Fix idempotent behavior for principal aliases.
    Rafael Guterres Jeffman authored
    When creating the lists to add/remove principal aliases, if the realm
    was not specified, the alias would be used as it did not matched the
    existing one, which has the realm part.
    
    This patch fixes the add/del list creation by adding the current API
    realm to each alias that does not have the realm part and then use
    this modified list to be compared against the existing principal list.
    
    This change also allows the use of the whole list in a single call to
    the IPA API to add/remove the principals, instead of a call for every
    one item in the list.