diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-10-25 04:16:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:04:38 -0500 |
commit | f7c6a9438dba17032aea102d18b44c6d96ae470b (patch) | |
tree | d9a62d7f1e102c4fd494784670b7c04a0dbff662 /source4 | |
parent | 6b280c130002f8b24b2e6ff7edeaa52629e5388a (diff) | |
download | samba-f7c6a9438dba17032aea102d18b44c6d96ae470b.tar.gz samba-f7c6a9438dba17032aea102d18b44c6d96ae470b.tar.xz samba-f7c6a9438dba17032aea102d18b44c6d96ae470b.zip |
r3185: Machines can login with krb5, so we need to allow them to map to a unix account.
Andrew Bartlett
(This used to be commit fbe932ddd4282c3d8af8a28fdd0cee83d0c8f4f3)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/ntvfs/unixuid/vfs_unixuid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntvfs/unixuid/vfs_unixuid.c b/source4/ntvfs/unixuid/vfs_unixuid.c index d0060bf11d..440ebd21c8 100644 --- a/source4/ntvfs/unixuid/vfs_unixuid.c +++ b/source4/ntvfs/unixuid/vfs_unixuid.c @@ -57,8 +57,8 @@ static NTSTATUS sid_to_unixuid(struct ntvfs_module_context *ntvfs, /* make sure its a user, not a group */ atype = samdb_result_uint(res[0], "sAMAccountType", 0); - if (atype && atype != ATYPE_NORMAL_ACCOUNT) { - DEBUG(0,("sid_to_unixuid: sid %s is not ATYPE_NORMAL_ACCOUNT\n", sidstr)); + if (!atype || (!(atype & ATYPE_ACCOUNT))) { + DEBUG(0,("sid_to_unixuid: sid %s is not an account!\n", sidstr)); talloc_free(ctx); return NT_STATUS_ACCESS_DENIED; } |