- drop reload from initscript help (#448154)
- fix hang in rimap auth method (#438533) - build the krb4 plugin (#154675)
This commit is contained in:
parent
6779c4ca10
commit
efba92060d
14
cyrus-sasl-2.1.22-kerberos4.patch
Normal file
14
cyrus-sasl-2.1.22-kerberos4.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
--- cyrus-sasl-2.1.22/plugins/kerberos4.c~ 2005-01-10 02:08:53.000000000 -0500
|
||||||
|
+++ cyrus-sasl-2.1.22/plugins/kerberos4.c 2007-05-14 13:02:16.000000000 -0400
|
||||||
|
@@ -49,11 +49,7 @@
|
||||||
|
#include <krb.h>
|
||||||
|
|
||||||
|
#ifdef WITH_DES
|
||||||
|
-# ifdef WITH_SSL_DES
|
||||||
|
-# include <openssl/des.h>
|
||||||
|
-# else
|
||||||
|
# include <des.h>
|
||||||
|
-# endif /* WITH_SSL_DES */
|
||||||
|
#endif /* WITH_DES */
|
||||||
|
|
||||||
|
#ifdef WIN32
|
38
cyrus-sasl-2.1.22-rimap.patch
Normal file
38
cyrus-sasl-2.1.22-rimap.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
diff -up cyrus-sasl-2.1.22/saslauthd/auth_rimap.c.rimap cyrus-sasl-2.1.22/saslauthd/auth_rimap.c
|
||||||
|
--- cyrus-sasl-2.1.22/saslauthd/auth_rimap.c.rimap 2006-04-06 22:19:54.000000000 +0200
|
||||||
|
+++ cyrus-sasl-2.1.22/saslauthd/auth_rimap.c 2008-07-01 22:48:09.000000000 +0200
|
||||||
|
@@ -163,6 +163,7 @@ qstring (
|
||||||
|
p1 = s;
|
||||||
|
while ((p1 = strchr(p1, '"')) != NULL) {
|
||||||
|
num_quotes++;
|
||||||
|
+ ++p1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!num_quotes) {
|
||||||
|
@@ -198,7 +199,7 @@ qstring (
|
||||||
|
}
|
||||||
|
*p2++ = *p1++;
|
||||||
|
}
|
||||||
|
- strcat(p2, "\"");
|
||||||
|
+ strcpy(p2, "\"");
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -438,7 +439,7 @@ auth_rimap (
|
||||||
|
syslog(LOG_WARNING, "auth_rimap: writev: %m");
|
||||||
|
memset(qlogin, 0, strlen(qlogin));
|
||||||
|
free(qlogin);
|
||||||
|
- memset(qpass, 0, strlen(qlogin));
|
||||||
|
+ memset(qpass, 0, strlen(qpass));
|
||||||
|
free(qpass);
|
||||||
|
(void)close(s);
|
||||||
|
return strdup(RESP_IERROR);
|
||||||
|
@@ -447,7 +448,7 @@ auth_rimap (
|
||||||
|
/* don't need these any longer */
|
||||||
|
memset(qlogin, 0, strlen(qlogin));
|
||||||
|
free(qlogin);
|
||||||
|
- memset(qpass, 0, strlen(qlogin));
|
||||||
|
+ memset(qpass, 0, strlen(qpass));
|
||||||
|
free(qpass);
|
||||||
|
|
||||||
|
/* read and parse the LOGIN response */
|
@ -5,7 +5,7 @@
|
|||||||
Summary: The Cyrus SASL library
|
Summary: The Cyrus SASL library
|
||||||
Name: cyrus-sasl
|
Name: cyrus-sasl
|
||||||
Version: 2.1.22
|
Version: 2.1.22
|
||||||
Release: 14%{?dist}
|
Release: 15%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
# Source0 originally comes from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/;
|
# Source0 originally comes from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/;
|
||||||
@ -29,6 +29,8 @@ Patch26: cyrus-sasl-2.1.22-digest-commas.patch
|
|||||||
Patch27: cyrus-sasl-2.1.22-automake-1.10.patch
|
Patch27: cyrus-sasl-2.1.22-automake-1.10.patch
|
||||||
Patch28: cyrus-sasl-2.1.21-keytab.patch
|
Patch28: cyrus-sasl-2.1.21-keytab.patch
|
||||||
Patch29: cyrus-sasl-db-4.6.18-glibc.patch
|
Patch29: cyrus-sasl-db-4.6.18-glibc.patch
|
||||||
|
Patch30: cyrus-sasl-2.1.22-rimap.patch
|
||||||
|
Patch31: cyrus-sasl-2.1.22-kerberos4.patch
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: autoconf, automake, libtool, gdbm-devel, groff
|
BuildRequires: autoconf, automake, libtool, gdbm-devel, groff
|
||||||
BuildRequires: krb5-devel >= 1.2.2, openssl-devel, pam-devel, pkgconfig
|
BuildRequires: krb5-devel >= 1.2.2, openssl-devel, pam-devel, pkgconfig
|
||||||
@ -120,6 +122,15 @@ The %{name}-ldap package contains the Cyrus SASL plugin which supports using
|
|||||||
a directory server, accessed using LDAP, for storing shared secrets.
|
a directory server, accessed using LDAP, for storing shared secrets.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%package krb4
|
||||||
|
Requires: %{name}-lib = %{version}-%{release}
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
Summary: Kerberos 4 authentication support for Cyrus SASL
|
||||||
|
|
||||||
|
%description krb4
|
||||||
|
The %{name}-krb4 package contains the Cyrus SASL plugins which
|
||||||
|
support Kerberos 4 authentication.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a 6
|
%setup -q -a 6
|
||||||
chmod -x doc/*.html
|
chmod -x doc/*.html
|
||||||
@ -132,6 +143,8 @@ chmod -x include/*.h
|
|||||||
%patch26 -p2 -b .digest-commas
|
%patch26 -p2 -b .digest-commas
|
||||||
%patch27 -p1 -b .automake-1.10
|
%patch27 -p1 -b .automake-1.10
|
||||||
%patch28 -p1 -b .keytab
|
%patch28 -p1 -b .keytab
|
||||||
|
%patch30 -p1 -b .rimap
|
||||||
|
%patch31 -p1 -b .krb4
|
||||||
|
|
||||||
pushd db-%{db_version}
|
pushd db-%{db_version}
|
||||||
%patch29 -p1 -b .glibc27
|
%patch29 -p1 -b .glibc27
|
||||||
@ -221,7 +234,7 @@ LDFLAGS=`echo $LDFLAGS $SQL_LDFLAGS | cleanup_flags`; export LDFLAGS
|
|||||||
--disable-java \
|
--disable-java \
|
||||||
--with-plugindir=%{_plugindir2} \
|
--with-plugindir=%{_plugindir2} \
|
||||||
--with-configdir=%{_plugindir2}:%{_sysconfdir}/sasl2 \
|
--with-configdir=%{_plugindir2}:%{_sysconfdir}/sasl2 \
|
||||||
--disable-krb4 \
|
--enable-krb4=/usr \
|
||||||
--enable-gssapi${krb5_prefix:+=${krb5_prefix}} \
|
--enable-gssapi${krb5_prefix:+=${krb5_prefix}} \
|
||||||
--with-gss_impl=mit \
|
--with-gss_impl=mit \
|
||||||
--with-rc4 \
|
--with-rc4 \
|
||||||
@ -370,6 +383,10 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_plugindir2}/*gssapi*.so*
|
%{_plugindir2}/*gssapi*.so*
|
||||||
|
|
||||||
|
%files krb4
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_plugindir2}/*kerberos4*.so*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc doc/*.txt
|
%doc doc/*.txt
|
||||||
@ -381,6 +398,11 @@ fi
|
|||||||
%{_sbindir}/sasl2-shared-mechlist
|
%{_sbindir}/sasl2-shared-mechlist
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 1 2008 Tomas Mraz <tmraz@redhat.com> - 2.1.22-15
|
||||||
|
- drop reload from initscript help (#448154)
|
||||||
|
- fix hang in rimap auth method (#438533)
|
||||||
|
- build the krb4 plugin (#154675)
|
||||||
|
|
||||||
* Fri May 23 2008 Dennis Gilmore <dennis@ausil.us> - 2.1.22-14
|
* Fri May 23 2008 Dennis Gilmore <dennis@ausil.us> - 2.1.22-14
|
||||||
- make it so that bootstrap actually works
|
- make it so that bootstrap actually works
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ case "$1" in
|
|||||||
[ -f /var/lock/subsys/$prog ] && restart || :
|
[ -f /var/lock/subsys/$prog ] && restart || :
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
|
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user