This is more correct than the original one:
It also hands the wellknown and "Unix Users" and "Unix Groups" sids to passdb
for id mapping.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
#include "includes.h"
#include "winbindd.h"
#include "idmap.h"
-#include "passdb/machine_sid.h"
+#include "lib/util_sid_passdb.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_IDMAP
{
idmap_init();
- if (sid_check_is_in_builtin(sid) ||
- sid_check_is_builtin(sid) ||
- sid_check_is_in_our_sam(sid) ||
- sid_check_is_our_sam(sid))
- {
+ if (sid_check_is_for_passdb(sid)) {
return idmap_passdb_domain(NULL);
}