r23530: Fix bugs #4678 and #4697 which had the same root cause.
authorJeremy Allison <jra@samba.org>
Sun, 17 Jun 2007 19:23:32 +0000 (19:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:26 +0000 (12:23 -0500)
commit80d1da7e6cce451d3934751feaa6ad60a337e3db
tree39ff5739a1c1445399546fa0889b09d344efd694
parent009af0909944e0f303c5d496b56fb65ca40a41d5
r23530: Fix bugs #4678 and #4697 which had the same root cause.
In make_server_info_pw() we assign a user SID in our
authoritative SAM, even though this may be from a
pure "Unix User" that doesn't exist in the SAM.
This causes lookups on "[in]valid users" to fail as they
will lookup this name as a "Unix User" SID to check against
the user token. Fix this by adding the "Unix User"\unix_username
SID to the sid array. The correct fix should probably be
changing the server_info->sam_account user SID to be a
S-1-22 Unix SID, but this might break old configs where
plaintext passwords were used with no SAM backend.
Jeremy
source/auth/auth_util.c