summaryrefslogtreecommitdiffstats
path: root/source/passdb
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-03-20 00:13:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:43 -0500
commit86a70adb6a2d277f235857451bbee7d530d15310 (patch)
tree4d46a33523a3cacd7c6e924b657d93acd2127e86 /source/passdb
parentd3f3ced6c8a03d971143baf878158d671dfcbc3b (diff)
downloadsamba-86a70adb6a2d277f235857451bbee7d530d15310.tar.gz
samba-86a70adb6a2d277f235857451bbee7d530d15310.tar.xz
samba-86a70adb6a2d277f235857451bbee7d530d15310.zip
r21881: Make sure we are very specific when testing whether a backand can handle a
particular SID. Make sure that the passdb backend will accept the same set range of local SIDs that the idmap system sends it. Simo, Jerry - this is a 3_0_25 candidate. Can you please review?
Diffstat (limited to 'source/passdb')
-rw-r--r--source/passdb/pdb_interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/passdb/pdb_interface.c b/source/passdb/pdb_interface.c
index 976dfc1d081..e0b9086f9cc 100644
--- a/source/passdb/pdb_interface.c
+++ b/source/passdb/pdb_interface.c
@@ -1305,7 +1305,8 @@ static BOOL pdb_default_sid_to_id(struct pdb_methods *methods,
goto done;
}
- if (sid_peek_check_rid(&global_sid_Builtin, sid, &rid)) {
+ if (sid_check_is_in_builtin(sid) ||
+ sid_check_is_in_wellknown_domain(sid)) {
/* Here we only have aliases */
GROUP_MAP map;
if (!NT_STATUS_IS_OK(methods->getgrsid(methods, &map, *sid))) {