summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_ldap.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-07-12 15:55:21 +0200
committerMichael Adam <obnox@samba.org>2012-07-12 16:43:51 +0200
commitc43505b621725c9a754f0ee98318d451b093f2ed (patch)
tree62ffe55074eecc8f46bdedb252ef5622a1625b8e /source3/passdb/pdb_ldap.c
parentac2644b7766e41858d53ead9d0c023a26265789a (diff)
downloadsamba-c43505b621725c9a754f0ee98318d451b093f2ed.tar.gz
samba-c43505b621725c9a754f0ee98318d451b093f2ed.tar.bz2
samba-c43505b621725c9a754f0ee98318d451b093f2ed.zip
s3: rename sid_check_is_domain() to sid_check_is_our_sam()
This does not check whether the given sid is the domain sid, but whether it is the sid of the local sam, which is different for a domain member server.
Diffstat (limited to 'source3/passdb/pdb_ldap.c')
-rw-r--r--source3/passdb/pdb_ldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 8c29612be3..23793bf726 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -3727,7 +3727,7 @@ static NTSTATUS ldapsam_alias_memberships(struct pdb_methods *methods,
type = SID_NAME_ALIAS;
}
- if (sid_check_is_domain(domain_sid)) {
+ if (sid_check_is_our_sam(domain_sid)) {
type = SID_NAME_ALIAS;
}
@@ -4032,7 +4032,7 @@ static NTSTATUS ldapsam_lookup_rids(struct pdb_methods *methods,
}
if (!sid_check_is_builtin(domain_sid) &&
- !sid_check_is_domain(domain_sid)) {
+ !sid_check_is_our_sam(domain_sid)) {
result = NT_STATUS_INVALID_PARAMETER;
goto done;
}