<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>55529</bug_id>
          
          <creation_ts>2025-08-06 18:46:31 +0300</creation_ts>
          <short_desc>samba-winbind-dnsupdate: Использует hostname в верхнем регистре как имя NetBIOS, хотя они могут не совпадать</short_desc>
          <delta_ts>2025-08-20 15:49:23 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>samba-winbind-dnsupdate</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=55530</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Evgenii Sozonov">arzdez</assigned_to>
          <cc>liannnix</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>270553</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-08-06 18:46:31 +0300</bug_when>
    <thetext>Шаги
====

1. Развернуть Samba DC (ALT Server 11.0 x86_64 minimal).

2. Ввести клиентов (ALT Workstation, Workstation K, Education (KDE), Education (XFCE) 11.0 x86_64) с помощью Winbind с длинным hostname и коротким именем NetBIOS (аргумент `--netbiosname` в `system-auth`).

3. На клиенте: # winbind-dnsupdate


Фактический результат
=====================

&gt; [INFO]: Hostname: p11-nw-edu-kde-12.34.samba.testdomain.
&gt; [INFO]: Check winbind status.
&gt; [INFO]: Winbind is running. Continue.
&gt; [INFO]: Trying to get the site name.
&gt; [INFO]: Site: Default-First-Site-Name.
&gt; [INFO]: Get host credentials.
&gt; [ERROR]: kinit error. You should check the availability of the KDC and whether the host is a member of the domain
&gt; [ERROR]: kinit: Keytab contains no suitable keys for P11-NW-EDU-KDE-12$@34.SAMBA.TESTDOMAIN while getting initial credentials


Ожидаемый результат
===================

Поиск ключа либо для NetBIOS-имени, либо для hostname без изменений, оба из которых в keytab присутствуют:

&gt; # net ads keytab list
&gt; Vno  Type                                        Principal
&gt;   1  AES-256 CTS mode with 96-bit SHA-1 HMAC     host/p11-nw-edu-kde-12.34.samba.testdomain@SAMBA.TESTDOMAIN
&gt;   1  AES-256 CTS mode with 96-bit SHA-1 HMAC     host/P11-NW-EDU-KDE@SAMBA.TESTDOMAIN
&gt;   ...
&gt;   1  AES-256 CTS mode with 96-bit SHA-1 HMAC     restrictedkrbhost/p11-nw-edu-kde-12.34.samba.testdomain@SAMBA.TESTDOMAIN
&gt;   1  AES-256 CTS mode with 96-bit SHA-1 HMAC     restrictedkrbhost/P11-NW-EDU-KDE@SAMBA.TESTDOMAIN


Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[p11]
samba-4.20.8-alt2.x86_64
bind-utils-9.18.37-alt1.x86_64
samba-winbind-dnsupdate-0.7.1-alt1.noarch

Невозможно проверить на следующих виртуальных машинах из-за https://bugzilla.altlinux.org/55376:

[sisyphus]
samba-4.21.7-alt3.x86_64
bind-utils-9.18.38-alt1.x86_64
samba-winbind-dnsupdate-0.7.1-alt1.noarch

[p11+387440.6]
samba-4.21.7-alt3.x86_64
bind-utils-9.18.37-alt1.x86_64
samba-winbind-dnsupdate-0.7.1-alt1.noarch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271137</commentid>
    <comment_count>1</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-08-20 15:49:23 +0300</bug_when>
    <thetext>&gt; Невозможно проверить на следующих виртуальных машинах из-за https://bugzilla.altlinux.org/55376:

Ошибка 55376 была исправлена с alterator-auth-0.46-alt1+, проверка теперь возможна; воспроизводится и на них.

[sisyphus]
samba-4.21.7-alt4.x86_64
alterator-auth-0.48-alt1.x86_64
samba-winbind-dnsupdate-0.7.1-alt1.noarch

[p11+387440.10]
samba-4.21.7-alt4.x86_64
alterator-auth-0.48-alt1.x86_64
samba-winbind-dnsupdate-0.7.1-alt1.noarch

[p11]
samba-4.20.8-alt2.x86_64
alterator-auth-0.45-alt1.x86_64
samba-winbind-dnsupdate-0.7.1-alt1.noarch</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>