diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-04 10:21:45 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-04 10:24:35 +0200 |
commit | 0f97f4101fef2831a869b88f75ca844b327fe032 (patch) | |
tree | 0cb34bf2f116be5b2657fe7e00c257ebe2e8ffc0 | |
parent | becf54c7307485548ff7b7f12954b3e9d1364ed1 (diff) | |
download | cifs_idmap_sss-0f97f4101fef2831a869b88f75ca844b327fe032.tar.gz cifs_idmap_sss-0f97f4101fef2831a869b88f75ca844b327fe032.tar.bz2 cifs_idmap_sss-0f97f4101fef2831a869b88f75ca844b327fe032.zip |
Add test example and fixme
-rw-r--r-- | cifs_idmap_sss.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cifs_idmap_sss.c b/cifs_idmap_sss.c index 58f62c2..fb66af6 100644 --- a/cifs_idmap_sss.c +++ b/cifs_idmap_sss.c @@ -134,6 +134,8 @@ int cifs_idmap_sid_to_str(void *handle, const struct cifs_sid *sid, return -err; } + /* FIXME: Map Samba Unix SIDs? (sid->id and use getpwuid)? */ + debug("name: %s", *name); return 0; @@ -247,7 +249,11 @@ sss_sid_to_id(struct sssd_ctx *ctx, const char *sid, struct cifs_uxid *cuxid) return 0; } - +/** + * cifs_idmap_sids_to_ids - convert struct cifs_sids to struct cifs_uxids + * usecase: mount.cifs -o sec=krb5,multiuser,cifsacl,nounix + * test: ls -n on mounted share + */ int cifs_idmap_sids_to_ids(void *handle, const struct cifs_sid *sid, const size_t num, struct cifs_uxid *cuxid) { @@ -315,6 +321,8 @@ int cifs_idmap_ids_to_sids(void *handle, const struct cifs_uxid *cuxid, if (err != 0) { ctx_set_error(ctx, strerror(err)); sid[i].revision = 0; + /* FIXME: would it be safe to map *any* uid/gids unknown by sssd to + SAMBA's UNIX SIDs? */ continue; } |