Created attachment 734658 [details] SPEC file patch Description of problem: The current spec file has a mechanism to rebuild the package enabling the Domain Controller functionality by sacrificing the MIT Kerberos implementation in favour of the bundled one. The spec file is missing some packaging information for a succesful build of the Domain Controller functionality. Version-Release number of selected component (if applicable): samba-4.0.5-1.fc20 How reproducible: Always Steps to Reproduce: 1. Download the samba source rpm 2. Enable with_dc and disable with_mitkrb5 3. Rebuild the rpm with koji or mock Actual results: The rpm does not build, some information is wrong that is preventing a succesful rebuild. Expected results: The package rebuilds fine. Additional info: Attached is a spec file patch that contains the following: - Missing %files directives for the DC part (with sorting) - Missing requires on the DC for tbd-tools, required for DC first provision - Enablement of a systemd service file for samba(8). - Removal of deprecated tags required for RHEL 5, such as %defattr and Groups. The spec file is Fedora 18+ only. Attached as well is the systemd service file. We are using samba in production as a DC with the signed ntp requests and Bind dlz backend. With the eventual release of RHEL 7 rebuilding the package and enabling this functionality will be a breeze! Please apply. Thanks, --Simone
Created attachment 734659 [details] SAMBA systemd service file
Created attachment 734675 [details] SPEC file patch Pasted wrong file..
Updated for the latest 4.0.6-2.fc19. Building with DC enabled still fails in current rpm.
Created attachment 757752 [details] SPEC file patch
Created attachment 861726 [details] DC components optional enablement Patch that adds the missing components to rebuild the package with DC enabled and MIT Kerberos disabled
Created attachment 861728 [details] SPEC file cleanup SPEC file patch that removes all %{buildroot} removals, %defattr and Group tags (required for RHEL 5).
The bug is not being updated, but by updateing the package I see that some part of the patch has been incorporated. I've updated the attached files with the following, based on package 4.1.4: 1) SPEC file patch for DC enablement - Addition of systemd service file for samba(8). - Addition of tbd-tools dependency, required for first DC provision 2) SPEC file patch for obsolete RPM tags - Removal of deprecated tags required for RHEL 5, such as %defattr, Groups. 3) Samba systemd unit file Regards, --Simone
Updated patch, based on samba-4.1.17-1.fc21, as this is what I'm using in production. The patch makes sure that the samba.service unit is installed only in case of a DC build and changes the startup options to make the main daemon not forking in the background.
Created attachment 997395 [details] Fix Samba DC build
Setup case: http://negativo17.org/samba-4-active-directory-with-bind-dlz-zones-dynamic-dns-updates-windows-static-rpc-2/
Created attachment 997397 [details] Fix Samba DC build
Created attachment 997411 [details] Fix Samba DC build
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
Created attachment 1105572 [details] Patch for samba 4.2.3-10
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.