ebb3a9f2b4
- https://fedorahosted.org/sssd/ticket/{id} - Regressions: #2471, #2475, #2483, #2487, #2529, #2535 - Bugs: #2287, #2445
89 lines
4.4 KiB
Diff
89 lines
4.4 KiB
Diff
From 395daba605dd4fb4134db1a2e6883125a3d83f29 Mon Sep 17 00:00:00 2001
|
|
From: Lukas Slebodnik <lslebodn@redhat.com>
|
|
Date: Fri, 7 Nov 2014 13:27:53 +0100
|
|
Subject: [PATCH 13/26] Revert "LDAP: Change defaults for
|
|
ldap_user/group_objectsid"
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
This reverts commit f834f712548db811695ea0fd6d6b31d3bd03e2a3.
|
|
|
|
OpenLDAP server cannot dereference unknown attributes. The attribute objectSID
|
|
isn't in any standard objectclass on OpenLDAP server. This is a reason why
|
|
objectSID cannot be set by default in rfc2307 map and rfc2307bis map.
|
|
It is the same problem as using non standard attribute "nsUniqueId"
|
|
in ticket https://fedorahosted.org/sssd/ticket/2383
|
|
|
|
Reviewed-by: Michal Židek <mzidek@redhat.com>
|
|
---
|
|
src/man/sssd-ldap.5.xml | 4 ++--
|
|
src/providers/ldap/ldap_opts.h | 8 ++++----
|
|
2 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/src/man/sssd-ldap.5.xml b/src/man/sssd-ldap.5.xml
|
|
index aa47ed7a6dd41f7f82ea80e1deb34f9ccc894dc9..815b06250e826a36ef023e8a43a8925df89d2bbf 100644
|
|
--- a/src/man/sssd-ldap.5.xml
|
|
+++ b/src/man/sssd-ldap.5.xml
|
|
@@ -360,7 +360,7 @@
|
|
necessary for ActiveDirectory servers.
|
|
</para>
|
|
<para>
|
|
- Default: ipaNTSecurityIdentifier for IPA, objectSID
|
|
+ Default: objectSid for ActiveDirectory, not set
|
|
for other servers.
|
|
</para>
|
|
</listitem>
|
|
@@ -882,7 +882,7 @@
|
|
necessary for ActiveDirectory servers.
|
|
</para>
|
|
<para>
|
|
- Default: ipaNTSecurityIdentifier for IPA, objectSID
|
|
+ Default: objectSid for ActiveDirectory, not set
|
|
for other servers.
|
|
</para>
|
|
</listitem>
|
|
diff --git a/src/providers/ldap/ldap_opts.h b/src/providers/ldap/ldap_opts.h
|
|
index 29d9faf99784bfc3526398488be837a2716ee11d..dedbdac0bcf647337d4c00b1fbb82d6b46be5b54 100644
|
|
--- a/src/providers/ldap/ldap_opts.h
|
|
+++ b/src/providers/ldap/ldap_opts.h
|
|
@@ -156,7 +156,7 @@ struct sdap_attr_map rfc2307_user_map[] = {
|
|
{ "ldap_user_fullname", "cn", SYSDB_FULLNAME, NULL },
|
|
{ "ldap_user_member_of", NULL, SYSDB_MEMBEROF, NULL },
|
|
{ "ldap_user_uuid", NULL, SYSDB_UUID, NULL },
|
|
- { "ldap_user_objectsid", "objectSID", SYSDB_SID, NULL },
|
|
+ { "ldap_user_objectsid", NULL, SYSDB_SID, NULL },
|
|
{ "ldap_user_primary_group", NULL, SYSDB_PRIMARY_GROUP, NULL },
|
|
{ "ldap_user_modify_timestamp", "modifyTimestamp", SYSDB_ORIG_MODSTAMP, NULL },
|
|
{ "ldap_user_entry_usn", NULL, SYSDB_USN, NULL },
|
|
@@ -190,7 +190,7 @@ struct sdap_attr_map rfc2307_group_map[] = {
|
|
{ "ldap_group_gid_number", "gidNumber", SYSDB_GIDNUM, NULL },
|
|
{ "ldap_group_member", "memberuid", SYSDB_MEMBER, NULL },
|
|
{ "ldap_group_uuid", NULL, SYSDB_UUID, NULL },
|
|
- { "ldap_group_objectsid", "objectSID", SYSDB_SID, NULL },
|
|
+ { "ldap_group_objectsid", NULL, SYSDB_SID, NULL },
|
|
{ "ldap_group_modify_timestamp", "modifyTimestamp", SYSDB_ORIG_MODSTAMP, NULL },
|
|
{ "ldap_group_entry_usn", NULL, SYSDB_USN, NULL },
|
|
{ "ldap_group_type", NULL, SYSDB_GROUP_TYPE, NULL },
|
|
@@ -210,7 +210,7 @@ struct sdap_attr_map rfc2307bis_user_map[] = {
|
|
{ "ldap_user_fullname", "cn", SYSDB_FULLNAME, NULL },
|
|
{ "ldap_user_member_of", "memberOf", SYSDB_MEMBEROF, NULL },
|
|
{ "ldap_user_uuid", NULL, SYSDB_UUID, NULL },
|
|
- { "ldap_user_objectsid", "objectSID", SYSDB_SID, NULL },
|
|
+ { "ldap_user_objectsid", NULL, SYSDB_SID, NULL },
|
|
{ "ldap_user_primary_group", NULL, SYSDB_PRIMARY_GROUP, NULL },
|
|
{ "ldap_user_modify_timestamp", "modifyTimestamp", SYSDB_ORIG_MODSTAMP, NULL },
|
|
{ "ldap_user_entry_usn", NULL, SYSDB_USN, NULL },
|
|
@@ -244,7 +244,7 @@ struct sdap_attr_map rfc2307bis_group_map[] = {
|
|
{ "ldap_group_gid_number", "gidNumber", SYSDB_GIDNUM, NULL },
|
|
{ "ldap_group_member", "member", SYSDB_MEMBER, NULL },
|
|
{ "ldap_group_uuid", NULL, SYSDB_UUID, NULL },
|
|
- { "ldap_group_objectsid", "objectSID", SYSDB_SID, NULL },
|
|
+ { "ldap_group_objectsid", NULL, SYSDB_SID, NULL },
|
|
{ "ldap_group_modify_timestamp", "modifyTimestamp", SYSDB_ORIG_MODSTAMP, NULL },
|
|
{ "ldap_group_entry_usn", NULL, SYSDB_USN, NULL },
|
|
{ "ldap_group_type", NULL, SYSDB_GROUP_TYPE, NULL },
|
|
--
|
|
2.1.0
|
|
|