summaryrefslogtreecommitdiff
path: root/idmap_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'idmap_plugin.c')
-rw-r--r--idmap_plugin.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/idmap_plugin.c b/idmap_plugin.c
index 237c921..55c766b 100644
--- a/idmap_plugin.c
+++ b/idmap_plugin.c
@@ -101,3 +101,17 @@ sid_to_str(void *handle, const struct cifs_sid *sid, char **name)
return (*entry)(handle, sid, name);
}
+
+int
+str_to_sid(void *handle, const char *name, struct cifs_sid *sid)
+{
+ int (*entry)(void *, const char *, struct cifs_sid *);
+
+ *(void **)(&entry) = resolve_symbol("cifs_idmap_str_to_sid");
+ if (!entry) {
+ plugin_errmsg = "cifs_idmap_str_to_sid not implemented";
+ return -ENOSYS;
+ }
+
+ return (*entry)(handle, name, sid);
+}