summaryrefslogtreecommitdiffstats
path: root/src/lib/idmap
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-04-21 10:32:13 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-05-03 14:09:14 -0400
commit45f75fc8e98092fa48faa3d180fd42f7efd51486 (patch)
treefdfde37f2236c5a3be39e9f49963a2a8423177ea /src/lib/idmap
parent4f3fd1fb264a7eaf3a9d062d49e071b0d17e4deb (diff)
downloadsssd-45f75fc8e98092fa48faa3d180fd42f7efd51486.tar.gz
sssd-45f75fc8e98092fa48faa3d180fd42f7efd51486.tar.xz
sssd-45f75fc8e98092fa48faa3d180fd42f7efd51486.zip
LDAP: Add routine to extract domain SID from an object SID
Also makes the domain prefix macros from sss_idmap public.
Diffstat (limited to 'src/lib/idmap')
-rw-r--r--src/lib/idmap/sss_idmap.c2
-rw-r--r--src/lib/idmap/sss_idmap.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/idmap/sss_idmap.c b/src/lib/idmap/sss_idmap.c
index b00d61501..c970293bc 100644
--- a/src/lib/idmap/sss_idmap.c
+++ b/src/lib/idmap/sss_idmap.c
@@ -29,8 +29,6 @@
#include "lib/idmap/sss_idmap.h"
#include "lib/idmap/sss_idmap_private.h"
-#define DOM_SID_PREFIX "S-1-5-21-"
-#define DOM_SID_PREFIX_LEN (sizeof(DOM_SID_PREFIX) - 1)
#define SID_FMT "%s-%d"
#define SID_STR_MAX_LEN 1024
diff --git a/src/lib/idmap/sss_idmap.h b/src/lib/idmap/sss_idmap.h
index 146f831e9..78e786afe 100644
--- a/src/lib/idmap/sss_idmap.h
+++ b/src/lib/idmap/sss_idmap.h
@@ -29,6 +29,9 @@
#include <stdint.h>
#include <stdbool.h>
+#define DOM_SID_PREFIX "S-1-5-21-"
+#define DOM_SID_PREFIX_LEN (sizeof(DOM_SID_PREFIX) - 1)
+
/**
* @defgroup sss_idmap Map Unix UIDs and GIDs to SIDs and back
* Libsss_idmap provides a mechanism to translate a SID to a UNIX UID or GID