- Add patch for RH bug #296671 (GC servers may not support NTLM).
This commit is contained in:
parent
55c1991355
commit
3bfb902842
36
evolution-data-server-2.22.0-e2k-global-catalog.patch
Normal file
36
evolution-data-server-2.22.0-e2k-global-catalog.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
diff -up evolution-data-server-2.22.0/servers/exchange/lib/e2k-global-catalog.c.e2k-global-catalog evolution-data-server-2.22.0/servers/exchange/lib/e2k-global-catalog.c
|
||||||
|
--- evolution-data-server-2.22.0/servers/exchange/lib/e2k-global-catalog.c.e2k-global-catalog 2007-11-29 07:53:45.000000000 -0500
|
||||||
|
+++ evolution-data-server-2.22.0/servers/exchange/lib/e2k-global-catalog.c 2008-03-11 23:41:22.000000000 -0400
|
||||||
|
@@ -307,17 +307,19 @@ static int
|
||||||
|
connect_ldap (E2kGlobalCatalog *gc, E2kOperation *op, LDAP *ldap)
|
||||||
|
{
|
||||||
|
int ldap_error;
|
||||||
|
-#ifndef HAVE_LDAP_NTLM_BIND
|
||||||
|
char *nt_name;
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
SEC_WINNT_AUTH_IDENTITY_W auth;
|
||||||
|
#endif
|
||||||
|
-#endif
|
||||||
|
|
||||||
|
/* authenticate */
|
||||||
|
#ifdef HAVE_LDAP_NTLM_BIND
|
||||||
|
- ldap_error = ntlm_bind (gc, op, ldap);
|
||||||
|
-#else
|
||||||
|
+ if (ntlm_bind (gc, op, ldap) == LDAP_SUCCESS) {
|
||||||
|
+ E2K_GC_DEBUG_MSG(("GC: connected via NTLM\n\n"));
|
||||||
|
+ return LDAP_SUCCESS;
|
||||||
|
+ }
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
nt_name = gc->priv->nt_domain ?
|
||||||
|
g_strdup_printf ("%s\\%s", gc->priv->nt_domain, gc->priv->user) :
|
||||||
|
g_strdup (gc->priv->user);
|
||||||
|
@@ -339,7 +341,7 @@ connect_ldap (E2kGlobalCatalog *gc, E2kO
|
||||||
|
g_free (auth.User);
|
||||||
|
#endif
|
||||||
|
g_free (nt_name);
|
||||||
|
-#endif
|
||||||
|
+
|
||||||
|
if (ldap_error != LDAP_SUCCESS)
|
||||||
|
g_warning ("LDAP authentication failed (0x%02x)", ldap_error);
|
||||||
|
else
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
Name: evolution-data-server
|
Name: evolution-data-server
|
||||||
Version: 2.22.0
|
Version: 2.22.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Summary: Backend data server for Evolution
|
Summary: Backend data server for Evolution
|
||||||
@ -55,6 +55,9 @@ Patch14: evolution-data-server-1.11.5-fix-64bit-acinclude.patch
|
|||||||
|
|
||||||
Patch15: evolution-data-server-2.22.0-implicit-function-declaration.patch
|
Patch15: evolution-data-server-2.22.0-implicit-function-declaration.patch
|
||||||
|
|
||||||
|
# RH bug #296671 / GNOME bug #500389
|
||||||
|
Patch16: evolution-data-server-2.22.0-e2k-global-catalog.patch
|
||||||
|
|
||||||
### Build Dependencies ###
|
### Build Dependencies ###
|
||||||
|
|
||||||
BuildRequires: GConf2-devel
|
BuildRequires: GConf2-devel
|
||||||
@ -134,6 +137,7 @@ This package contains developer documentation for %{name}.
|
|||||||
%patch13 -p1 -b .camel-folder-summary-crash
|
%patch13 -p1 -b .camel-folder-summary-crash
|
||||||
%patch14 -p1 -b .fix-64bit-acinclude
|
%patch14 -p1 -b .fix-64bit-acinclude
|
||||||
%patch15 -p1 -b .implicit-function-declaration
|
%patch15 -p1 -b .implicit-function-declaration
|
||||||
|
%patch16 -p1 -b .e2k-global-catalog
|
||||||
|
|
||||||
mkdir -p krb5-fakeprefix/include
|
mkdir -p krb5-fakeprefix/include
|
||||||
mkdir -p krb5-fakeprefix/lib
|
mkdir -p krb5-fakeprefix/lib
|
||||||
@ -376,6 +380,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/gtk-doc/html/libedataserverui
|
%{_datadir}/gtk-doc/html/libedataserverui
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 11 2008 Matthew Barnes <mbarnes@redhat.com> - 2.22.0-2.fc9
|
||||||
|
- Add patch for RH bug #296671 (GC servers may not support NTLM).
|
||||||
|
|
||||||
* Mon Mar 10 2008 Matthew Barnes <mbarnes@redhat.com> - 2.22.0-1.fc9
|
* Mon Mar 10 2008 Matthew Barnes <mbarnes@redhat.com> - 2.22.0-1.fc9
|
||||||
- Update to 2.22.0
|
- Update to 2.22.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user