dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0055-IPA-Change-the-default-of-ldap_user_certificate-to-u.patch

6cf099
From 4d400c7374e0ca6af7c8f990e27c1e58a18ad7d4 Mon Sep 17 00:00:00 2001
6cf099
From: Jakub Hrozek <jhrozek@redhat.com>
6cf099
Date: Mon, 10 Aug 2015 12:40:39 +0200
6cf099
Subject: [PATCH 55/57] IPA: Change the default of ldap_user_certificate to
6cf099
 userCertificate;binary
6cf099
MIME-Version: 1.0
6cf099
Content-Type: text/plain; charset=UTF-8
6cf099
Content-Transfer-Encoding: 8bit
6cf099
6cf099
This is safe from ldb point of view, because ldb gurantees the data is
6cf099
NULL-terminated. We must be careful before we save the data, though.
6cf099
6cf099
Resolves:
6cf099
https://fedorahosted.org/sssd/ticket/2742
6cf099
6cf099
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
6cf099
---
6cf099
 src/man/sssd-ldap.5.xml      | 2 +-
6cf099
 src/providers/ipa/ipa_opts.h | 2 +-
6cf099
 2 files changed, 2 insertions(+), 2 deletions(-)
6cf099
6cf099
diff --git a/src/man/sssd-ldap.5.xml b/src/man/sssd-ldap.5.xml
6cf099
index 9ac175f8d4a8aa01ca2434b800ebae1be88575f5..49e84560f825b1bff255c1ad131487ba3243300d 100644
6cf099
--- a/src/man/sssd-ldap.5.xml
6cf099
+++ b/src/man/sssd-ldap.5.xml
6cf099
@@ -821,7 +821,7 @@
6cf099
                             certificate of the user.
6cf099
                         </para>
6cf099
                         <para>
6cf099
-                            Default: no set in the general case, userCertificate
6cf099
+                            Default: no set in the general case, userCertificate;binary
6cf099
                             for IPA
6cf099
                         </para>
6cf099
                     </listitem>
6cf099
diff --git a/src/providers/ipa/ipa_opts.h b/src/providers/ipa/ipa_opts.h
6cf099
index 9576228d1bf3424c8867bda058b59c3ca6b2216b..f6c40dddbb58cd8af1079a351137422083e26cfe 100644
6cf099
--- a/src/providers/ipa/ipa_opts.h
6cf099
+++ b/src/providers/ipa/ipa_opts.h
6cf099
@@ -204,7 +204,7 @@ struct sdap_attr_map ipa_user_map[] = {
6cf099
     { "ldap_user_nds_login_allowed_time_map", "loginAllowedTimeMap", SYSDB_NDS_LOGIN_ALLOWED_TIME_MAP, NULL },
6cf099
     { "ldap_user_ssh_public_key", "ipaSshPubKey", SYSDB_SSH_PUBKEY, NULL },
6cf099
     { "ldap_user_auth_type", "ipaUserAuthType", SYSDB_AUTH_TYPE, NULL },
6cf099
-    { "ldap_user_certificate", "userCertificate", SYSDB_USER_CERT, NULL },
6cf099
+    { "ldap_user_certificate", "userCertificate;binary", SYSDB_USER_CERT, NULL },
6cf099
     SDAP_ATTR_MAP_TERMINATOR
6cf099
 };
6cf099
 
6cf099
-- 
6cf099
2.4.3
6cf099