s3:utils: Make sure we authenticate against our SAM name in smbpasswd
authorAndreas Schneider <asn@samba.org>
Fri, 18 Aug 2017 14:17:08 +0000 (16:17 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 23 Aug 2017 11:16:20 +0000 (13:16 +0200)
commitdc129a968afdac8be70f9756bd18a7bf1f4c3b02
tree8f34cc5e393e4660db66c179d30c2da4d1adf06b
parentb483340639157fe95777672f5723455c48c3c616
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>
source3/utils/smbpasswd.c