#5687 ipa-adtrust-install: check for existence of smb.conf
Closed: Fixed None Opened 5 years ago by mbasti.

ipa-adtrust-install should check existence of smb.conf, and if smb.conf does not exists it should create the empty smb.conf.

Without smb.conf file, command called by installer

/usr/bin/net conf import /tmp/tmpvuLoXb

failed with

2016-02-17T18:03:29Z DEBUG Process finished, return code=1
2016-02-17T18:03:29Z DEBUG stdout=
2016-02-17T18:03:29Z DEBUG stderr=Can't load /etc/samba/smb.conf - run testparm to debug it

and ipa-adtrust-install fails.

create_instance creates/overwrites smb.conf file in 4th step:

  self.step("writing samba config file", self.__write_smb_conf)

but net is called in 3rd step:

self.step("creating samba config registry", self.__write_smb_registry)

the workaround should contain a link to respected samba bug(todo: find the bug)


  • 24a39de adtrustinstance: Make sure smb.conf exists


  • c1323f6 adtrustinstance: Make sure smb.conf exists

Metadata Update from @mbasti:
- Issue assigned to tbabej
- Issue set to the milestone: FreeIPA 4.3.1

4 years ago

Login to comment on this ticket.