mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
testprogs: Fix kerberos_kinit with additional options
The additional options need to come before we specify the principal Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andreas Schneider
parent
b39176f795
commit
4d0ea9e3b0
@ -98,11 +98,11 @@ kerberos_kinit() {
|
||||
if [ "${kbase}" = "samba4kinit" ]; then
|
||||
kpassfile=$(mktemp)
|
||||
echo $password > ${kpassfile}
|
||||
$kinit_tool -c ${KRB5CCNAME} --password-file=${kpassfile} $principal $@
|
||||
$kinit_tool -c ${KRB5CCNAME} --password-file=${kpassfile} $@ $principal
|
||||
status=$?
|
||||
rm -f ${kpassfile}
|
||||
else
|
||||
echo $password | $kinit_tool $principal $@
|
||||
echo $password | $kinit_tool $@ $principal
|
||||
status=$?
|
||||
fi
|
||||
return $status
|
||||
|
Reference in New Issue
Block a user