[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/samba/devel samba-3.0.25a-pam_smbpass.patch, NONE, 1.1 .cvsignore, 1.39, 1.40 samba.spec, 1.119, 1.120 sources, 1.42, 1.43



Author: simo

Update of /cvs/pkgs/rpms/samba/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20009

Modified Files:
	.cvsignore samba.spec sources 
Added Files:
	samba-3.0.25a-pam_smbpass.patch 
Log Message:

Add patch to build pam_smbpass correctly.
This missed the 3.0.25a deadline but it is important enough to put it in.



samba-3.0.25a-pam_smbpass.patch:

--- NEW FILE samba-3.0.25a-pam_smbpass.patch ---
Author: gd
Revision: r23121
Modified: source/Makefile.in source/pam_smbpass/general.h source/pam_smbpass/pam_smb_acct.c source/pam_smbpass/pam_smb_auth.c source/pam_smbpass/pam_smb_passwd.c /branches/SAMBA_3_0_25/source/Makefile.in /branches/SAMBA_3_0_25/source/pam_smbpass/general.h /branches/SAMBA_3_0_26/source/Makefile.in /branches/SAMBA_3_0_26/source/pam_smbpass/general.h
Added: 
Removed: 


Fix Bug #2727 and let pam_smbpass at least link and dlopen correctly again.

Thanks to Bartlomiej Solarz-Niesluchowski <Bartlomiej Solarz-Niesluchowski wit edu pl>.

Guenther


Index: source/Makefile.in
===================================================================
--- source/Makefile.in	(revision 23120)
+++ source/Makefile.in	(revision 23121)
@@ -751,9 +751,9 @@
 
 PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
 		pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \
-		$(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
+PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
 		$(SECRETS_OBJ) $(SMBLDAP_OBJ) $(LIBSAMBA_OBJ) \
-		$(RPC_PARSE_OBJ1) $(DOSERR_OBJ)
+		$(RPC_PARSE_OBJ1) $(DOSERR_OBJ) $(ERRORMAP_OBJ)
 
 IDMAP_OBJ     = nsswitch/idmap.o nsswitch/idmap_cache.o nsswitch/idmap_util.o @IDMAP_STATIC@ 

Index: source/pam_smbpass/pam_smb_auth.c
===================================================================
--- source/pam_smbpass/pam_smb_auth.c	(revision 23120)
+++ source/pam_smbpass/pam_smb_auth.c	(revision 23121)
@@ -109,7 +109,7 @@
 		_log_err( LOG_DEBUG, "username [%s] obtained", name );
 	}
 
-	if (!initialize_password_db(True)) {
+	if (!initialize_password_db(True, NULL)) {
 		_log_err( LOG_ALERT, "Cannot access samba password database" );
 		retval = PAM_AUTHINFO_UNAVAIL;
 		AUTH_RETURN;
Index: source/pam_smbpass/pam_smb_passwd.c
===================================================================
--- source/pam_smbpass/pam_smb_passwd.c	(revision 23120)
+++ source/pam_smbpass/pam_smb_passwd.c	(revision 23121)
@@ -137,7 +137,7 @@
        from a SIGPIPE it's not expecting */
     oldsig_handler = CatchSignal(SIGPIPE, SIGNAL_CAST SIG_IGN);
 
-    if (!initialize_password_db(False)) {
+    if (!initialize_password_db(False, NULL)) {
         _log_err( LOG_ALERT, "Cannot access samba password database" );
         CatchSignal(SIGPIPE, SIGNAL_CAST oldsig_handler);
         return PAM_AUTHINFO_UNAVAIL;
Index: source/pam_smbpass/general.h
===================================================================
--- source/pam_smbpass/general.h	(revision 23120)
+++ source/pam_smbpass/general.h	(revision 23121)
@@ -121,7 +121,7 @@
 
 struct _pam_failed_auth {
     char *user;                 /* user that's failed to be authenticated */
-    int id;                     /* uid of requested user */
+    uid_t id;                   /* uid of requested user */
     char *agent;                /* attempt from user with name */
     int count;                  /* number of failures so far */
 };
Index: source/pam_smbpass/pam_smb_acct.c
===================================================================
--- source/pam_smbpass/pam_smb_acct.c	(revision 23120)
+++ source/pam_smbpass/pam_smb_acct.c	(revision 23121)
@@ -81,7 +81,7 @@
 	/* Getting into places that might use LDAP -- protect the app
 		from a SIGPIPE it's not expecting */
 	oldsig_handler = CatchSignal(SIGPIPE, SIGNAL_CAST SIG_IGN);
-	if (!initialize_password_db(True)) {
+	if (!initialize_password_db(True, NULL)) {
 		_log_err( LOG_ALERT, "Cannot access samba password database" );
 		CatchSignal(SIGPIPE, SIGNAL_CAST oldsig_handler);
 		return PAM_AUTHINFO_UNAVAIL;



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/samba/devel/.cvsignore,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- .cvsignore	14 May 2007 14:20:34 -0000	1.39
+++ .cvsignore	25 May 2007 17:28:40 -0000	1.40
@@ -1 +1,2 @@
 samba-3.0.25.tar.gz
+samba-3.0.25a.tar.gz


Index: samba.spec
===================================================================
RCS file: /cvs/pkgs/rpms/samba/devel/samba.spec,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -r1.119 -r1.120
--- samba.spec	14 May 2007 14:46:28 -0000	1.119
+++ samba.spec	25 May 2007 17:28:40 -0000	1.120
@@ -1,8 +1,8 @@
 Summary: The Samba Suite of programs
 Name: samba
 Epoch: 0
-Version: 3.0.25
-Release: 2%{?dist}
+Version: 3.0.25a
+Release: 1%{?dist}
 License: GPL
 Group: System Environment/Daemons
 URL: http://www.samba.org/
@@ -46,6 +46,7 @@
 #Patch112: samba-3.0.15pre2-bug106483.patch
 #Patch113: samba-3.0.21-warnings.patch
 Patch200: samba-3.0.25rc1-inotifiy.patch
+Patch201: samba-3.0.25a-pam_smbpass.patch
 
 
 Requires(pre): samba-common = %{epoch}:%{version}-%{release}
@@ -168,6 +169,7 @@
 #%patch112 -p1 -b .bug106483
 #%patch113 -p1 -b .warnings
 %patch200 -p0 -b .inotify
+%patch201 -p0 -b .pam_smbpass
 
 # crap
 rm -f examples/VFS/.cvsignore
@@ -629,11 +631,15 @@
 #%{_includedir}/libmsrpc.h
 
 %changelog
+* Fri May 25 2007 Simo Sorce <ssorce redhat com>
+- update to 3.0.25a as it contains many fixes
+- add a fix for pam_smbpass made by Günther but committed upstream after 3.0.25a was cut.
+
 * Mon May 14 2007 Simo Sorce <ssorce redhat com>
 - final 3.0.25
 - includes security fixes for CVE-2007-2444,CVE-2007-2446,CVE-2007-2447
 
-* Mon Apr 30 2007 Guenther Deschner <gdeschner redhat com>
+* Mon Apr 30 2007 Günther Deschner <gdeschner redhat com>
 - move to 3.0.25rc3
 
 * Thu Apr 19 2007 Simo Sorce <ssorce redhat com>


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/samba/devel/sources,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- sources	14 May 2007 14:20:34 -0000	1.42
+++ sources	25 May 2007 17:28:40 -0000	1.43
@@ -1 +1 @@
-267bd56b178a1b1285a41ec4cc1b75f0  samba-3.0.25.tar.gz
+cbd33bb5d904ccd8a294a4019743745d  samba-3.0.25a.tar.gz


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]