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

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

    <bug>
          <bug_id>55670</bug_id>
          
          <creation_ts>2025-08-20 16:11:15 +0300</creation_ts>
          <short_desc>alterator-auth: Некорректная работа при введении в домен Samba клиента с точкой в hostname (не в имени NetBIOS)</short_desc>
          <delta_ts>2025-08-21 19:00:39 +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>alterator-auth</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="Anton V. Boyarshinov">boyarsh</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>liannnix</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>271143</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-08-20 16:11:15 +0300</bug_when>
    <thetext>Шаги
====

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

2. Ввести клиентов (например, ALT Workstation K 11.0 x86_64) с помощью Winbind (`--winbind`) с длинным hostname с точкой (например, &quot;p11-nw-edu-kde-12.34&quot;) и коротким именем NetBIOS (`--netbiosname`).


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

Клиент вводится в домен успешно и в целом работает.

Но возникают проблемы:
* https://bugzilla.altlinux.org/55530
* В acc &gt; Ethernet-интерфейсы &gt; Домены поиска: `samba.testdomain 34.samba.testdomain` (последнего не должно быть)
* В bash в prompt (PS1) по умолчанию отображается только часть hostname до первой точки

и, вероятно, аналогичные другие.


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

Правильное разделение hostname на имя хоста и realm во всех частях системы, или же запрет в `system-auth` ввода в домен с hostname, который содержит точку.


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

[sisyphus]
alterator-auth-0.48-alt1.x86_64
samba-4.21.7-alt4.x86_64

[p11+387440.10]
alterator-auth-0.48-alt1.x86_64
samba-4.21.7-alt4.x86_64

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

    </bug>

</bugzilla>