freeipa/ipaserver
Fraser Tweedale 5136cd6e4b Avoid race condition caused by profile delete and recreate
When importing IPA-managed certificate profiles into Dogtag,
profiles with the same name (usually caIPAserviceCert) are removed,
then immediately recreated with the new profile data.  This causes a
race condition - Dogtag's LDAPProfileSystem profileChangeMonitor
thread could observe and process the deletion after the profile was
recreated, disappearing it again.

Update the profile instead of deleting and recreating it to avoid
this race condition.

Fixes: https://fedorahosted.org/freeipa/ticket/5269
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
2015-11-23 11:05:49 +01:00
..
advise Use the print function 2015-09-01 11:42:01 +02:00
install Avoid race condition caused by profile delete and recreate 2015-11-23 11:05:49 +01:00
plugins fix caching in get_ipa_config 2015-11-19 16:43:52 +01:00
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
dcerpc.py Alias long to int under Python 3 2015-10-13 14:16:32 +02:00
rpcserver.py Use six.moves.xmlrpc.client instead of xmlrpclib 2015-10-07 10:27:20 +02:00