#7118 Fix CA-less installation due to incorrect with statement
Closed: fixed Opened by ftweedal.

When performing CA-less installation i.e.

% sudo ipa-server-install --ca-cert-file ca1.crt \
    --dirsrv-cert-file ca1/server-altname.crt --dirsrv-cert-file ca1/server-altname.key --dirsrv-pin password \
    --http-cert-file ca1/server-altname.key --http-cert-file ca1/server-altname.crt --http-pin password --no-pkinit                                                                                    

Installation fails with:

Please provide a realm name [IPA.LOCAL]:                                                           
ipapython.admintool: ERROR    not enough values to unpack (expected 2, got 0)                      
ipapython.admintool: ERROR    The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information                                                                          

This appears to be a problem with a with statement introduced in
b5732efda6d27f588adbc3f41259bc4511716f43.


PR: https://github.com/freeipa/freeipa/pull/1000

Metadata Update from @ftweedal:
- Issue assigned to ftweedal

Metadata Update from @pvomacka:
- Issue set to the milestone: FreeIPA 4.6

master:

  • 477b3dca802349ac4e8d60cfcabc7fe31d0ab9ef Fix incorrect 'with' statement in CA-less installation
  • 7a86ff5d9bf5d9bf0f5970298addcd5b0f21d728 Fix cert file creation during CA-less installation

Metadata Update from @pvomacka:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata