Line
Link Here
|
0 |
-- system-auth-old 2023-05-05 08:52:31.376390938 +0500 |
0 |
++ system-auth 2023-05-05 10:44:35.093112123 +0500 |
Lines 716-723
Link Here
|
716 |
# Set correct FQDN |
716 |
# Set correct FQDN |
717 |
set_hostname "$host_name.$ldomain" |
717 |
set_hostname "$host_name.$ldomain" |
|
|
718 |
# Set correct OS name and version |
719 |
OS=$(hostnamectl | grep "Operating System" | sed 's/.*Operating System: //' | sed 's/ (.*//'| sed 's/[ \t]*$//') |
720 |
OS_NAME=${OS% *} |
721 |
OS_VERSION=${OS##* } |
722 |
|
718 |
# Join to domain |
723 |
# Join to domain |
719 |
$net_cmd ads join --use-kerberos=required --no-dns-updates --use-krb5-ccache="$krb_ccache_name" $OU |
724 |
$net_cmd ads join --use-kerberos=required --no-dns-updates --use-krb5-ccache="$krb_ccache_name" $OU osName="$OS_NAME" osVer="$OS_VERSION" |
720 |
[ "$?" -ne 0 ] && return 1 |
725 |
[ "$?" -ne 0 ] && return 1 |