From 8be5e4497e5008f7807178acdfcbf97365ec4e73 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 23 Apr 2012 08:05:07 -0400 Subject: LDAP: Add helper function to map IDs This function will also auto-create a new ID map if the domain has not been seen previously. --- src/providers/ldap/sdap_idmap.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/providers/ldap/sdap_idmap.h') diff --git a/src/providers/ldap/sdap_idmap.h b/src/providers/ldap/sdap_idmap.h index ee71da28..99f2ad9e 100644 --- a/src/providers/ldap/sdap_idmap.h +++ b/src/providers/ldap/sdap_idmap.h @@ -54,4 +54,10 @@ errno_t sdap_idmap_get_dom_sid_from_object(TALLOC_CTX *mem_ctx, const char *object_sid, char **dom_sid_str); + +errno_t +sdap_idmap_sid_to_unix(struct sdap_idmap_ctx *idmap_ctx, + const char *sid_str, + id_t *id); + #endif /* SDAP_IDMAP_H_ */ -- cgit