Bug 1172047

Summary: [httpd] wrong auth_kerb.conf symlink
Product: [Retired] JBoss Web Server 3 Reporter: Michal Haško <mhasko>
Component: unspecifiedAssignee: Weinan Li <weli>
Status: CLOSED EOL QA Contact: Pavel Slavicek <pslavice>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.0.0CC: lfuka, pslavice
Target Milestone: DR01   
Target Release: 3.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 18:36:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1178630    

Description Michal Haško 2014-12-09 09:59:21 UTC
Description of problem:
The latest mod_auth_kerb-eap6 doesn't satisfy the auth_kerb.conf symlink in httpd/conf.d/auth_kerb.conf

# readlink -f jws-3.0/httpd/conf.d/auth_kerb.conf
/etc/httpd24/conf.d/auth_kerb.conf

$ rpm -ql mod_auth_kerb-eap6-5.4-30.ep7.el6.x86_64
/etc/httpd24/conf.modules.d/10-auth_kerb.conf
...

Version-Release number of selected component (if applicable):
jws-httpd-3.0.0-DR0-RHEL*.zip
mod_auth_kerb-eap6-5.4-30.ep7.el6.x86_64.rpm

Comment 1 Weinan Li 2014-12-13 16:56:22 UTC
From JWS3 we will ship auth_kerb directly:

 # mod_auth_kerb
-ln -s %{_libdir}/%{httpd}/modules/mod_auth_kerb.so httpd/modules/
-ln -s %{_sysconfdir}/%{httpd}/conf.d/auth_kerb.conf httpd/conf.d/
+cp %{_libdir}/%{httpd}/modules/mod_auth_kerb.so httpd/modules/

Comment 2 Weinan Li 2014-12-22 12:25:37 UTC
Fix part 2:

[weli@dhcp-66-78-87 jws-compose]$ git diff
diff --git a/jws-compose.spec b/jws-compose.spec
index 9a34fcf..9403f42 100644
--- a/jws-compose.spec
+++ b/jws-compose.spec
@@ -282,6 +282,7 @@ sed -i -e "s:^LoadModule proxy_balancer_module:#LoadModule proxy_balancer_module

 # mod_auth_kerb
 cp %{_libdir}/%{httpd}/modules/mod_auth_kerb.so httpd/modules/
+cp %{_sysconfdir}/%{httpd}/conf.modules.d/10-auth_kerb.conf httpd/conf.modules.d/

 # mod_rt
 cp -pr %{_libdir}/%{httpd}/modules/mod_rt.so httpd/modules/

---
Local verification:

[weli@dhcp-66-78-87 jbossas-fordev]$ unzip -l jws-httpd-3.0.0-RHEL6-x86_64.zip | grep kerb
    43016  12-22-2014 20:21   jws-3.0/httpd/modules/mod_auth_kerb.so
       53  12-22-2014 20:21   jws-3.0/httpd/conf.modules.d/10-auth_kerb.conf

Comment 3 Weinan Li 2015-01-23 04:23:30 UTC
This is a zip only problem. RPM packages are fine. So the fix seems complete.

Comment 4 Libor Fuka 2015-02-03 12:06:03 UTC
Verified with DR2 RHEL6 RHEL7 zips.