s3:libads: Fix changing passwords with Kerberos
authorAndreas Schneider <asn@samba.org>
Wed, 9 Aug 2017 16:14:23 +0000 (18:14 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 11 Aug 2017 16:21:22 +0000 (18:21 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12956

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
source3/libads/krb5_setpw.c

index 630c2e4663143348e277deeb3b7489e037209b9e..bc96ac603b111dd1c5fe7a9b4f54287cee4b9813 100644 (file)
@@ -251,7 +251,7 @@ static ADS_STATUS ads_krb5_chg_password(const char *kdc_host,
        ret = krb5_set_password(context,
                                &creds,
                                discard_const_p(char, newpw),
-                               princ,
+                               NULL,
                                &result_code,
                                &result_code_string,
                                &result_string);