svn commit: samba r3185 - in
branches/SAMBA_4_0/source/ntvfs/unixuid: .
abartlet at samba.org
abartlet at samba.org
Mon Oct 25 04:16:57 GMT 2004
Author: abartlet
Date: 2004-10-25 04:16:57 +0000 (Mon, 25 Oct 2004)
New Revision: 3185
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/ntvfs/unixuid&rev=3185&nolog=1
Log:
Machines can login with krb5, so we need to allow them to map to a unix account.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c 2004-10-25 03:36:00 UTC (rev 3184)
+++ branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c 2004-10-25 04:16:57 UTC (rev 3185)
@@ -57,8 +57,8 @@
/* 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;
}
More information about the samba-cvs
mailing list