summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
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));