-diff -ur cyrus-sasl-2.1.19.orig/Makefile.in cyrus-sasl-2.1.19/Makefile.in
---- cyrus-sasl-2.1.19.orig/Makefile.in 2005-07-04 23:59:31.000000000 +0200
-+++ cyrus-sasl-2.1.19/Makefile.in 2005-07-05 00:04:27.000000000 +0200
-@@ -134,7 +134,7 @@
- JAVA_TRUE = @JAVA_TRUE@
+diff -urNp -x '*.orig' cyrus-sasl-2.1.27.org/Makefile.in cyrus-sasl-2.1.27/Makefile.in
+--- cyrus-sasl-2.1.27.org/Makefile.in 2018-10-09 16:58:13.000000000 +0200
++++ cyrus-sasl-2.1.27/Makefile.in 2021-09-28 23:58:30.012662863 +0200
+@@ -308,7 +308,7 @@ LDAP_LIBS = @LDAP_LIBS@
LDFLAGS = @LDFLAGS@
+ LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS = -lcrypt @LIBS@
LIBTOOL = @LIBTOOL@
LIB_CRYPT = @LIB_CRYPT@
LIB_DES = @LIB_DES@
---- cyrus-sasl-2.1.27-orig/doc/legacy/options.html 2004-05-27 18:02:58.000000000 +0200
-+++ cyrus-sasl-2.1.27/doc/legacy/options.html 2005-07-10 17:17:38.000000000 +0200
-@@ -103,6 +103,14 @@
- <TD>sasldb_path</TD><TD>sasldb plugin</TD>
- <TD>Path to sasldb file</TD><TD><tt>/etc/sasldb2</tt> (system dependant)</TD>
+diff -urNp -x '*.orig' cyrus-sasl-2.1.27.org/doc/legacy/options.html cyrus-sasl-2.1.27/doc/legacy/options.html
+--- cyrus-sasl-2.1.27.org/doc/legacy/options.html 2017-07-24 14:53:03.000000000 +0200
++++ cyrus-sasl-2.1.27/doc/legacy/options.html 2021-09-28 23:58:30.012662863 +0200
+@@ -163,6 +163,14 @@ database.</TD>
+ <TD>126</TD>
+ </TR>
<TR>
+<TD>password_format</TD><TD></TD>
+<TD>Method of password storage (possible values: 'plain', 'crypt', 'crypt_trad').
+</TR>
+<TR>
<TD>sql_engine</TD><TD>SQL plugin</TD>
- <TD>Name of SQL engine to use (possible values: 'mysql', 'pgsql', 'sqlite').</TD>
+ <TD>Name of SQL engine to use (possible values: 'mysql', 'pgsql', 'sqlite', 'sqlite3').</TD>
<TD><tt>mysql</tt></TD>
---- cyrus-sasl-2.1.25/lib/checkpw.c.orig 2009-12-03 20:07:01.000000000 +0100
-+++ cyrus-sasl-2.1.25/lib/checkpw.c 2011-09-16 21:27:43.302773195 +0200
+diff -urNp -x '*.orig' cyrus-sasl-2.1.27.org/lib/checkpw.c cyrus-sasl-2.1.27/lib/checkpw.c
+--- cyrus-sasl-2.1.27.org/lib/checkpw.c 2018-11-08 18:29:57.000000000 +0100
++++ cyrus-sasl-2.1.27/lib/checkpw.c 2021-09-28 23:58:30.012662863 +0200
@@ -95,6 +95,23 @@
# endif
#endif
/* we store the following secret to check plaintext passwords:
*
-@@ -142,7 +159,51 @@
+@@ -142,7 +159,51 @@ static int auxprop_verify_password(sasl_
"*cmusaslsecretPLAIN",
NULL };
struct propval auxprop_values[3];
if (!conn || !userstr)
return SASL_BADPARAM;
-@@ -188,14 +249,31 @@
+@@ -188,14 +249,31 @@ static int auxprop_verify_password(sasl_
return SASL_NOUSER;
}
} else if(auxprop_values[1].name
&& auxprop_values[1].values
&& auxprop_values[1].values[0]) {
-@@ -1095,3 +1173,37 @@
+@@ -1105,3 +1183,37 @@ struct sasl_verify_password_s _sasl_veri
#endif
{ NULL, NULL }
};
---- cyrus-sasl-2.1.22-nagios/saslauthd/Makefile.am 2009-01-30 18:09:01.984198032 +0200
-+++ cyrus-sasl-2.1.22/saslauthd/Makefile.am 2009-01-30 18:43:20.796560455 +0200
+diff -urNp -x '*.orig' cyrus-sasl-2.1.27.org/saslauthd/Makefile.am cyrus-sasl-2.1.27/saslauthd/Makefile.am
+--- cyrus-sasl-2.1.27.org/saslauthd/Makefile.am 2018-09-20 17:44:51.000000000 +0200
++++ cyrus-sasl-2.1.27/saslauthd/Makefile.am 2021-09-28 23:58:31.072659837 +0200
@@ -1,5 +1,7 @@
AUTOMAKE_OPTIONS = 1.7
sbin_PROGRAMS = saslauthd testsaslauthd
+nagiosdir = @libdir@/nagios/plugins
EXTRA_PROGRAMS = saslcache
- saslauthd_SOURCES = mechanisms.c globals.h \
-@@ -21,6 +23,10 @@
+ LTLIBOBJS = @LTLIBOBJS@
+@@ -30,6 +32,10 @@ saslauthd_LDADD = @SASL_KRB_LIB@ \
testsaslauthd_SOURCES = testsaslauthd.c utils.c
testsaslauthd_LDADD = @LIB_SOCKET@
+
saslcache_SOURCES = saslcache.c
- EXTRA_DIST = saslauthd.8 saslauthd.mdoc config include \
---- cyrus-sasl-2.1.22/saslauthd/testsaslauthd.c 2004-01-21 21:54:53.000000000 +0200
-+++ cyrus-sasl-2.1.22-nagios/saslauthd/testsaslauthd.c 2009-01-30 18:36:26.070737112 +0200
-@@ -57,6 +57,13 @@
+ EXTRA_DIST = saslauthd.8 saslauthd.mdoc include \
+diff -urNp -x '*.orig' cyrus-sasl-2.1.27.org/saslauthd/testsaslauthd.c cyrus-sasl-2.1.27/saslauthd/testsaslauthd.c
+--- cyrus-sasl-2.1.27.org/saslauthd/testsaslauthd.c 2018-11-08 18:29:57.000000000 +0100
++++ cyrus-sasl-2.1.27/saslauthd/testsaslauthd.c 2021-09-28 23:58:31.072659837 +0200
+@@ -58,6 +58,13 @@
#endif
#include <assert.h>
#include "globals.h"
#include "utils.h"
-@@ -243,7 +250,11 @@
+@@ -244,7 +251,11 @@ static int saslauthd_verify_password(con
}
printf("NO \"authentication failed\"\n");
}
int
-@@ -293,7 +304,11 @@
+@@ -291,7 +302,11 @@ main(int argc, char *argv[])
" [-r realm] [-s servicename]\n"
" [-f socket path] [-R repeatnum]\n",
argv[0], argv[0]);
}
if (!repeat) repeat = 1;
-@@ -302,7 +317,23 @@
+@@ -300,7 +315,23 @@ main(int argc, char *argv[])
printf("%d: ", c);
result = saslauthd_verify_password(path, user, password, service, realm);
}
---- saslauthd/auth_httpform.c~ 2009-02-16 22:59:05.000000000 +0200
-+++ saslauthd/auth_httpform.c 2009-02-16 23:00:16.765691380 +0200
-@@ -176,7 +176,7 @@
+diff -urNp -x '*.orig' cyrus-sasl-2.1.27.org/saslauthd/auth_httpform.c cyrus-sasl-2.1.27/saslauthd/auth_httpform.c
+--- cyrus-sasl-2.1.27.org/saslauthd/auth_httpform.c 2018-11-08 18:29:57.000000000 +0100
++++ cyrus-sasl-2.1.27/saslauthd/auth_httpform.c 2021-09-28 23:58:31.612658295 +0200
+@@ -180,7 +180,7 @@ static char *url_escape(
return NULL;
while (inidx < length) {
+ unsigned char in = string[inidx];
if (!(in >= 'a' && in <= 'z') &&
!(in >= 'A' && in <= 'Z') &&
- !(in >= '0' && in <= '9') &&
+ !(in >= '0' && in <= '9')) {
---- cyrus-sasl-2.1.27/configure.ac.orig 2012-11-23 18:23:10.112077685 +0100
-+++ cyrus-sasl-2.1.27/configure.ac 2012-11-23 18:29:29.238736454 +0100
-@@ -691,10 +691,7 @@
+diff -urNp -x '*.orig' cyrus-sasl-2.1.27.org/configure.ac cyrus-sasl-2.1.27/configure.ac
+--- cyrus-sasl-2.1.27.org/configure.ac 2021-09-28 23:58:29.385997985 +0200
++++ cyrus-sasl-2.1.27/configure.ac 2021-09-28 23:58:29.489331023 +0200
+@@ -752,10 +752,7 @@ AC_ARG_ENABLE(sql, [ --enable-sql
AC_MSG_CHECKING(SQL)
if test "$sql" != no; then
AC_MSG_RESULT(enabled)
AC_DEFINE(STATIC_SQL,[],[Link SQL plugin statically])
fi
else
-@@ -741,6 +738,8 @@
+@@ -813,6 +810,8 @@ case "$with_mysql" in
CMU_ADD_LIBPATH_TO(${with_mysql}, LIB_MYSQL)
fi
LIB_MYSQL_DIR=$LIB_MYSQL
LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
-@@ -805,6 +804,8 @@
+@@ -889,6 +888,8 @@ case "$with_pgsql" in
CMU_ADD_LIBPATH_TO(${with_pgsql}, LIB_PGSQL)
fi
LIB_PGSQL_DIR=$LIB_PGSQL
LIB_PGSQL="$LIB_PGSQL -lpq"
-@@ -866,6 +867,8 @@
- LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
+@@ -952,6 +953,8 @@ case "$with_sqlite" in
+ CMU_ADD_LIBPATH_TO(${with_sqlite}, LIB_SQLITE)
fi
+ SASL_MECHS="$SASL_MECHS libsqlite.la"
LIB_SQLITE_DIR=$LIB_SQLITE
LIB_SQLITE="$LIB_SQLITE -lsqlite"
-@@ -918,6 +921,8 @@
- LIB_SQLITE3="-L${with_sqlite3} -R${with_sqlite3}"
+@@ -1004,6 +1007,8 @@ case "$with_sqlite3" in
+ CMU_ADD_LIBPATH_TO(${with_sqlite3}, LIB_SQLITE3)
fi
+ SASL_MECHS="$SASL_MECHS libsqlite3.la"
LIB_SQLITE3_DIR=$LIB_SQLITE3
LIB_SQLITE3="$LIB_SQLITE3 -lsqlite3"
---- cyrus-sasl-2.1.27/plugins/Makefile.am.orig 2018-10-05 16:40:16.000000000 +0200
-+++ cyrus-sasl-2.1.27/plugins/Makefile.am 2018-11-24 10:25:07.244949119 +0100
-@@ -68,7 +68,7 @@
+diff -urNp -x '*.orig' cyrus-sasl-2.1.27.org/plugins/Makefile.am cyrus-sasl-2.1.27/plugins/Makefile.am
+--- cyrus-sasl-2.1.27.org/plugins/Makefile.am 2018-10-05 16:40:16.000000000 +0200
++++ cyrus-sasl-2.1.27/plugins/Makefile.am 2021-09-28 23:58:29.489331023 +0200
+@@ -68,7 +68,7 @@ plugin_LTLIBRARIES = @SASL_MECHS@
EXTRA_LTLIBRARIES = libplain.la libanonymous.la libkerberos4.la libcrammd5.la \
libgs2.la libgssapiv2.la libdigestmd5.la liblogin.la libsrp.la libotp.la \
libplain_la_SOURCES = plain.c plain_init.c
libplain_la_DEPENDENCIES = $(COMPAT_OBJS) $(PLUGIN_COMMON_OBJS)
-@@ -131,18 +131,51 @@
+@@ -131,18 +131,51 @@ libldapdb_la_SOURCES = ldapdb.c ldapdb_i
libldapdb_la_DEPENDENCIES = $(COMPAT_OBJS) $(PLUGIN_COMMON_OBJS)
libldapdb_la_LIBADD = $(LIB_LDAP) $(COMPAT_OBJS) $(PLUGIN_COMMON_OBJS)
CLEANFILES=$(init_src)
---- cyrus-sasl-2.1.27/plugins/makeinit.sh.orig 2018-11-24 09:27:31.358321911 +0100
-+++ cyrus-sasl-2.1.27/plugins/makeinit.sh 2018-11-24 10:25:38.331615427 +0100
-@@ -51,7 +51,7 @@
+diff -urNp -x '*.orig' cyrus-sasl-2.1.27.org/plugins/makeinit.sh cyrus-sasl-2.1.27/plugins/makeinit.sh
+--- cyrus-sasl-2.1.27.org/plugins/makeinit.sh 2018-09-20 17:44:51.000000000 +0200
++++ cyrus-sasl-2.1.27/plugins/makeinit.sh 2021-09-28 23:58:29.489331023 +0200
+@@ -51,7 +51,7 @@ SASL_SERVER_PLUG_INIT( $mech )
done
# auxprop plugins
Patch14: %{name}-ac-libs.patch
Patch20: %{name}-auxprop.patch
Patch21: 0030-dont_use_la_files_for_opening_plugins.patch
+Patch22: sphinx.patch
URL: https://www.cyrusimap.org/sasl/
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1:1.11
BuildRequires: pam-devel
%{?with_pgsql:BuildRequires: postgresql-devel}
BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: sphinx-pdg-2
%{?with_sqlite:BuildRequires: sqlite-devel}
%{?with_sqlite3:BuildRequires: sqlite3-devel >= 3}
Requires: pam >= 0.79.0
%patch9 -p1
%patch10 -p1
%patch12 -p1
-%patch13 -p0
+%patch13 -p1
%patch14 -p1
%patch20 -p1
%patch21 -p1
+%patch22 -p1
# update to our paths
sed -i -e '
%{__autoheader}
%{__automake}
%configure \
+ SPHINX_BUILD=/usr/bin/sphinx-build-2 \
%{?with_cryptedpw: LDFLAGS=-lcrypt} \
%{!?with_gssapi:--disable-gssapi} \
%{?with_gssapi:--enable-gssapi --with-gss_impl=heimdal} \
--- /dev/null
+--- cyrus-sasl-2.1.27/docsrc/exts/sphinxlocal/writers/manpage.py~ 2016-11-07 14:52:12.000000000 +0100
++++ cyrus-sasl-2.1.27/docsrc/exts/sphinxlocal/writers/manpage.py 2021-09-29 00:15:02.216786169 +0200
+@@ -23,7 +23,6 @@
+ from sphinx import addnodes
+ from sphinx.locale import admonitionlabels, _
+ from sphinx.util.osutil import ustrftime
+-from sphinx.util.compat import docutils_version
+
+ class CyrusManualPageWriter(ManualPageWriter):
+