s3:utils: Make sure we authenticate against our SAM name in smbpasswd
commitc308ad1149969e0663893ca663c544cea31e5d34
authorAndreas Schneider <asn@samba.org>
Fri, 18 Aug 2017 14:17:08 +0000 (18 16:17 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 28 Aug 2017 09:04:15 +0000 (28 11:04 +0200)
tree35f1c9b2042fee24405ff46ac3b8b73e8aee0f45
parent2fcedfb29285ee875099afa5fd590f23ebc9b720
s3:utils: Make sure we authenticate against our SAM name in smbpasswd

If a local user wants to change his password using smbpasswd and the
machine is a domain member, we need to make sure we authenticate against
our SAM and not ask winbind.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12975

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
(cherry picked from commit dc129a968afdac8be70f9756bd18a7bf1f4c3b02)
source3/utils/smbpasswd.c