diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-05-04 02:48:11 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-05-04 02:48:11 +0000 |
commit | 00e08efb5cd21bf42be9125d3188efbf9d13b8b7 (patch) | |
tree | 323ea3d0a4968b374ea1569ad78e78e152de9418 /source/libads | |
parent | ec025c353b6ba974bc73a31fd920cfb395f54abf (diff) | |
download | samba-00e08efb5cd21bf42be9125d3188efbf9d13b8b7.tar.gz samba-00e08efb5cd21bf42be9125d3188efbf9d13b8b7.tar.xz samba-00e08efb5cd21bf42be9125d3188efbf9d13b8b7.zip |
Patch from Ken Cross to allow an ADS domain join with a username of the form
user@realm, where realm might not be the realm we are joining.
Andrew Bartlett
Diffstat (limited to 'source/libads')
-rw-r--r-- | source/libads/krb5_setpw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libads/krb5_setpw.c b/source/libads/krb5_setpw.c index 214871b3fb5..856809decca 100644 --- a/source/libads/krb5_setpw.c +++ b/source/libads/krb5_setpw.c @@ -677,7 +677,7 @@ ADS_STATUS ads_set_machine_password(ADS_STRUCT *ads, we need to use the '$' form of the name here, as otherwise the server might end up setting the password for a user instead */ - asprintf(&principal, "%s$@%s", host, ads->auth.realm); + asprintf(&principal, "%s$@%s", host, ads->config.realm); status = krb5_set_password(ads->auth.kdc_server, principal, password, ads->auth.time_offset); |