Bug 56131 - pam_smb 2.0.0.r5 is broken
Summary: pam_smb 2.0.0.r5 is broken
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-29 13:40 UTC by René Scholz
Modified: 2003-08-29 21:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description René Scholz 2003-08-29 13:40:16 UTC
	The combination between pam_smb-2.0.0.r5 + mod_auth_pam-1.0a + apache+mod_ssl-1.3.28+2.8.15_1 is broken 
	after the recent upgrade of pam_smb. The /var/log/all.log shows these lines: 
	 Aug 29 14:20:19 tomcat httpd: unable to resolve symbol: pam_sm_authenticate
	 Aug 29 14:20:19 tomcat /kernel: Aug 29 14:20:19 tomcat httpd: unable to resolve symbol: pam_sm_authenticate
	 Aug 29 14:20:19 tomcat httpd: unable to resolve symbol: pam_sm_setcred
	 Aug 29 14:20:19 tomcat /kernel: Aug 29 14:20:19 tomcat httpd: unable to resolve symbol: pam_sm_setcred
	the apache log shows the following:
	[Fri Aug 29 14:21:14 2003] [error] (2)No such file or directory: access to /cgi-bin/ids/index.cgi failed for 192.168.16.20, r
	eason: Module is unknown

Fix: 

Don't know how to fix this.
How-To-Repeat: 	just upgrade your pam_smb port to the current release and set it up together with apache and mod_auth_pam
	to authenticate a service via mod_auth_pam
Comment 1 Oliver Braun freebsd_committer freebsd_triage 2003-08-29 14:59:51 UTC
State Changed
From-To: open->feedback

Does the following fix the problem? 

diff -ur orig/pam_smb-2.0.0-rc5/configure pam_smb-2.0.0-rc5/configure 
--- orig/pam_smb-2.0.0-rc5/configure    Mon Jun  9 18:16:11 2003 
+++ pam_smb-2.0.0-rc5/configure Sat Aug 30 00:00:26 2003 
@@ -1524,7 +1524,7 @@ 
fi 
;; 
FreeBSD*) 
-        SHLIB_CFLAGS="-fPIC" 
+        SHLIB_CFLAGS="-fPIC -DPIC" 
SHLIB_LD_LIBS="" 
SHLIB_SUFFIX=".so" 
SHLIB_LD="${CC} -shared" 
diff -ur orig/pam_smb-2.0.0-rc5/configure.in pam_smb-2.0.0-rc5/configure.in 
--- orig/pam_smb-2.0.0-rc5/configure.in Mon Jun 16 21:53:08 2003 
+++ pam_smb-2.0.0-rc5/configure.in      Sat Aug 30 00:00:04 2003 
@@ -191,7 +191,7 @@ 
fi 
;; 
FreeBSD*) 
-        SHLIB_CFLAGS="-fPIC" 
+        SHLIB_CFLAGS="-fPIC -DPIC" 
SHLIB_LD_LIBS="" 
SHLIB_SUFFIX=".so" 
SHLIB_LD="${CC} -shared"
Comment 2 rene 2003-08-29 19:56:57 UTC
The add of -DPIC has make it work. The patch is fine.

Thank you.
Comment 3 Oliver Braun freebsd_committer freebsd_triage 2003-08-29 21:38:56 UTC
State Changed
From-To: feedback->closed

Fix committed, thanks.