From d9dd2ee29fd5430e73ce12d62291ae75abdcedca Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 8 Aug 2013 13:37:36 -0400 Subject: Only add extensibleObject if we have an SID Make the addition of extensibleObject to the list of objectclasses conditional on there being a ipaNTSecurityIdentifier value in the source entry. --- src/back-sch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/back-sch.c b/src/back-sch.c index a2ea291..2dd8b10 100644 --- a/src/back-sch.c +++ b/src/back-sch.c @@ -240,7 +240,7 @@ backend_set_config_read_config(struct plugin_state *state, Slapi_Entry *e, * sure that we copy the schema-compat-origin and SID * attributes, so that we can read the former during the BIND * callback. */ - backend_shr_add_strlist(&ret.attribute_format, "objectClass=extensibleObject"); + backend_shr_add_strlist(&ret.attribute_format, "objectClass=%ifeq(\"%{ipaNTSecurityIdentifier}\",\"\",\"\",\"extensibleObject\")"); backend_shr_add_strlist(&ret.attribute_format, "ipaNTSecurityIdentifier=%{ipaNTSecurityIdentifier}"); } -- cgit