diff --git a/0501-FEDORA-Switch-the-default-ccache-location.patch b/0501-FEDORA-Switch-the-default-ccache-location.patch
new file mode 100644
index 0000000..0da1bf0
--- /dev/null
+++ b/0501-FEDORA-Switch-the-default-ccache-location.patch
@@ -0,0 +1,21 @@
+diff -up sssd-1.8.96/src/man/sssd-krb5.5.xml.ccache sssd-1.8.96/src/man/sssd-krb5.5.xml
+--- sssd-1.8.96/src/man/sssd-krb5.5.xml.ccache 2012-08-24 17:08:01.619610422 +0200
++++ sssd-1.8.96/src/man/sssd-krb5.5.xml 2012-08-24 17:09:15.447826123 +0200
+@@ -148,7 +148,7 @@
+ for details) is created.
+
+
+- Default: /tmp
++ Default: /run/user/%U
+
+
+
+@@ -208,7 +208,7 @@
+ used to create a unique filename in a safe way.
+
+
+- Default: FILE:%d/krb5cc_%U_XXXXXX
++ Default: DIR:%d/krb5cc
+
+
+
diff --git a/sssd.spec b/sssd.spec
index dd9f0f7..f72ee66 100644
--- a/sssd.spec
+++ b/sssd.spec
@@ -16,7 +16,7 @@
Name: sssd
Version: 1.9.0
-Release: 17%{?dist}.beta6
+Release: 18%{?dist}.beta6
Group: Applications/System
Summary: System Security Services Daemon
License: GPLv3+
@@ -28,7 +28,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Patch0001: 0001-Abort-PAM-access-phase-if-HBAC-does-not-return-PAM_S.patch
Patch0002: 0002-Do-not-try-to-remove-the-temp-login-file-if-already-.patch
Patch0003: 0003-Only-create-the-SELinux-login-file-if-there-are-mapp.patch
-
+Patch0501: 0501-FEDORA-Switch-the-default-ccache-location.patch
### Dependencies ###
@@ -228,7 +228,7 @@ autoreconf -ivf
--with-init-dir=%{_initrddir} \
--with-krb5-rcache-dir=%{_localstatedir}/cache/krb5rcache \
--with-default-ccache-dir=/run/user/%U \
- --with-default-ccname-template=DIR:%d/ccdir \
+ --with-default-ccname-template=DIR:%d/krb5cc \
--enable-nsslibdir=/%{_lib} \
--enable-pammoddir=/%{_lib}/security \
--disable-static \
@@ -517,6 +517,11 @@ fi
%postun -n libsss_sudo -p /sbin/ldconfig
%changelog
+* Fri Aug 24 2012 Jakub Hrozek - 1.9.0-18.beta6
+- Change the default ccache location to DIR:/run/user/${UID}/krb5cc
+ and patch man page accordingly
+- Resolves: rhbz#851304
+
* Mon Aug 20 2012 Jakub Hrozek - 1.9.0-17.beta6
- Rebuild against libldb 1.10