diff --git a/ipaserver/install/adtrustinstance.py b/ipaserver/install/adtrustinstance.py index 8a6e31e5c..fb88e5596 100644 --- a/ipaserver/install/adtrustinstance.py +++ b/ipaserver/install/adtrustinstance.py @@ -520,6 +520,11 @@ class ADTRUSTInstance(service.Service): os.write(tmp_fd, conf) os.close(tmp_fd) + # Workaround for: https://fedorahosted.org/freeipa/ticket/5687 + # We make sure that paths.SMB_CONF file exists, hence touch it + with open(paths.SMB_CONF, 'a'): + os.utime(paths.SMB_CONF, None) + args = [paths.NET, "conf", "import", tmp_name] try: