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

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

    <bug>
          <bug_id>55530</bug_id>
          
          <creation_ts>2025-08-06 18:46:53 +0300</creation_ts>
          <short_desc>samba-winbind-dnsupdate: Считает, что первая точка в hostname разделяет имя клиента и realm</short_desc>
          <delta_ts>2025-08-20 16:11:15 +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=55529</see_also>
    
    <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=55670</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>270554</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-08-06 18:46:53 +0300</bug_when>
    <thetext>Тесно связано с https://bugzilla.altlinux.org/55529.


Шаги
====

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 с точкой (например, &quot;p11-nw-edu-kde-12.34&quot;) и коротким именем NetBIOS (аргумент `--netbiosname` в `system-auth`).

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


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

&gt; + host_kinit P11-NW-EDU-KDE-10 52.SAMBA.TESTDOMAIN
&gt; + local upper_host_name=
&gt; + local domain_realm=52.SAMBA.TESTDOMAIN
&gt; ++ upper P11-NW-EDU-KDE-10
&gt; ++ echo -n P11-NW-EDU-KDE-10
&gt; ++ tr &apos;[:lower:]&apos; &apos;[:upper:]&apos;
&gt; + upper_host_name=P11-NW-EDU-KDE-10
&gt; ++ kinit -k &apos;P11-NW-EDU-KDE-10$@52.SAMBA.TESTDOMAIN&apos;


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

upper_host_name=P11-NW-EDU-KDE-10.52
domain_realm=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>271138</commentid>
    <comment_count>1</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-08-20 15:49:25 +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>