summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-11-13 13:06:37 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-11-15 20:38:08 +0100
commita25a3e56aaf53f2d96dc366eb57e32bed834e18c (patch)
tree28d238d2e0f0388683be9e9053d792d07ebc2ecf /src/lib
parent36c266d467e9105041b33e9b1cdcd9ff073d893e (diff)
downloadsssd-a25a3e56aaf53f2d96dc366eb57e32bed834e18c.tar.gz
sssd-a25a3e56aaf53f2d96dc366eb57e32bed834e18c.tar.xz
sssd-a25a3e56aaf53f2d96dc366eb57e32bed834e18c.zip
Update CIFS plugin for Well-Known SID support
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cifs_idmap_sss/cifs_idmap_sss.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/lib/cifs_idmap_sss/cifs_idmap_sss.c b/src/lib/cifs_idmap_sss/cifs_idmap_sss.c
index 7968877ed..fd8b194c5 100644
--- a/src/lib/cifs_idmap_sss/cifs_idmap_sss.c
+++ b/src/lib/cifs_idmap_sss/cifs_idmap_sss.c
@@ -18,11 +18,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-/* TODO: Support well known SIDs as in samba's
- * - librpc/idl/security.idl or
- * - source4/rpc_server/lsa/lsa_lookup.c?
- */
-
/* TODO: Support of [all] samba's Unix SIDs:
* Users: S-1-22-1-%UID
* Groups: S-1-22-2-%GID
@@ -40,8 +35,6 @@
#include "lib/idmap/sss_idmap.h"
#include "sss_client/idmap/sss_nss_idmap.h"
-#define WORLD_SID "S-1-1-0"
-
#ifdef DEBUG
#include <syslog.h>
#define debug(str, ...) \
@@ -124,15 +117,6 @@ int cifs_idmap_sid_to_str(void *handle, const struct cifs_sid *csid,
debug("sid: %s", sid);
- if (strcmp(sid, WORLD_SID) == 0) {
- *name = strdup("\\Everyone");
- if (!*name) {
- ctx_set_error(ctx, strerror(ENOMEM));
- return ENOMEM;
- }
- return 0;
- }
-
err = sss_nss_getnamebysid(sid, name, &id_type);
if (err != 0) {
ctx_set_error(ctx, strerror(err));