Skip to content
Snippets Groups Projects
Select Git revision
20 results

ipaservice.py

Blame
    • 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.