summaryrefslogtreecommitdiffstats
path: root/src/sss_client/sss_cli.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-02-27 13:38:57 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-05-03 20:06:29 +0200
commit2a9af1f71887f02935e2fb6ad5023afba5b6d43e (patch)
treea3040dcbaa5c999113caddf0858311d613775f20 /src/sss_client/sss_cli.h
parent6eadbf9dab2ad9a9463dc23e91c9e2fc804c1e9b (diff)
downloadsssd-2a9af1f71887f02935e2fb6ad5023afba5b6d43e.tar.gz
sssd-2a9af1f71887f02935e2fb6ad5023afba5b6d43e.tar.xz
sssd-2a9af1f71887f02935e2fb6ad5023afba5b6d43e.zip
Add client library for SID related lookups
This patch add a library for client side lookups for a SID or with a SID through the calls: - sss_nss_getsidbyname - sss_nss_getsidbyid - sss_nss_getnamebysid - sss_nss_getidbysid The library is called libsss_nss_idmap and the contributed spec file will create two new packages libsss_nss_idmap and libsss_nss_idmap-devel.
Diffstat (limited to 'src/sss_client/sss_cli.h')
-rw-r--r--src/sss_client/sss_cli.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/sss_client/sss_cli.h b/src/sss_client/sss_cli.h
index b0d7b8212..a7d99b43f 100644
--- a/src/sss_client/sss_cli.h
+++ b/src/sss_client/sss_cli.h
@@ -222,6 +222,26 @@ enum sss_cli_command {
/* PAC responder calls */
SSS_PAC_ADD_PAC_USER = 0x0101,
+/* ID-SID mapping calls */
+SSS_NSS_GETSIDBYNAME = 0x0111, /**< Takes a zero terminated fully qualified
+ name and returns the zero terminated
+ string representation of the SID of the
+ object with the given name. */
+SSS_NSS_GETSIDBYID = 0x0112, /**< Takes an unsigned 32bit integer (POSIX ID)
+ and returns the zero terminated string
+ representation of the SID of the object
+ with the given ID. */
+SSS_NSS_GETNAMEBYSID = 0x0113, /**< Takes the zero terminated string
+ representation of a SID and returns the
+ zero terminated fully qualified name of
+ the related object. */
+SSS_NSS_GETIDBYSID = 0x0114, /**< Takes the zero terminated string
+ representation of a SID and returns and
+ returns the POSIX ID of the related object
+ as unsigned 32bit integer value and
+ another unsigned 32bit integer value
+ indicating the type (unknown, user, group,
+ both) of the object. */
};
/**