freeipa

FreeIPA is an integrated Identity and Authentication solution for Linux/UNIX networked environments.  |  http://www.freeipa.org/

#5687 ipa-adtrust-install: check for existence of smb.conf

Created 2 years ago by mbasti
Modified a year ago

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)

master:

  • 24a39de adtrustinstance: Make sure smb.conf exists

ipa-4-3:

  • c1323f6 adtrustinstance: Make sure smb.conf exists
a year ago

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

Login to comment on this ticket.

defect

Installation

1

mbasti

0

cancel