diff options
author | Nalin Dahyabhai <nalin@dahyabhai.net> | 2013-08-08 13:37:36 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin@dahyabhai.net> | 2013-08-12 15:43:32 -0400 |
commit | d9dd2ee29fd5430e73ce12d62291ae75abdcedca (patch) | |
tree | 8d34db25db9c7be6a4cb456f55b23d0cbe1a0972 | |
parent | aae3cf62c079be7ca25e357f267836dead24b58e (diff) | |
download | slapi-nis-d9dd2ee29fd5430e73ce12d62291ae75abdcedca.tar.gz slapi-nis-d9dd2ee29fd5430e73ce12d62291ae75abdcedca.tar.xz slapi-nis-d9dd2ee29fd5430e73ce12d62291ae75abdcedca.zip |
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.
-rw-r--r-- | src/back-sch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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}"); } |