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

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

    <bug>
          <bug_id>55238</bug_id>
          
          <creation_ts>2025-07-16 12:43:38 +0300</creation_ts>
          <short_desc>samba+dolphin: Стал запрашиваться пароль для открытия share, даже если выполнен вход доменным пользователем</short_desc>
          <delta_ts>2025-07-23 15:54:00 +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</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=55324</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>
          
          <blocked>55239</blocked>
    
    <blocked>55240</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Evgeny Sinelnikov">sin</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>sin</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>269219</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-07-16 12:43:38 +0300</bug_when>
    <thetext>Шаги
====

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

2. Создать сетевую папку (из /etc/samba/smb.conf на DC):

[SHARE]
   comment = Share directory for AD users
   path = /var/share
   public = no
   writable = yes
   read only = no
   guest ok = no
   valid users = &quot;@SAMBA\Domain Users&quot; &quot;@SAMBA\Domain Admins&quot;
   create mask = 0666
   directory mask = 0777
   force create mode = 0666
   force directory mode = 0777
   inherit owner = yes

3. Ввести в домен клиентов ALT Workstation K, Education (KDE), Education (XFCE), Workstation 11.0 x86_64.

4. На клиентах войти доменным пользователем и открыть файловый менеджер (dolphin, thunar, nautilus).

5. В поле пути/адреса ввести smb://dc/share, нажать Enter.


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

thunar, nautilus: Папка открывается без запроса пароля.


dolphin: Для открытия папки запрашивается пароль. При этом, пока отображается диалог ввода пароля, с интервалом в несколько секунд в journalctl появляются сообщения:

&gt; kded6[21399]: kf.kio.workers.smb: -- Failed to smbc_opendir: Отказано в доступе

с разными PID. Других связанных с проблемой сообщений в выводе терминала или journalctl нет.


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

Папка должна открываться без запроса пароля в dolphin (как в thunar и nautilus).


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

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

[sisyphus]
samba-4.21.7-alt1.x86_64
dolphin-25.04.2-alt1.x86_64
(thunar-4.20.3-alt1.x86_64)
(nautilus-48.3-alt1.x86_64)

[p11+387440]
samba-4.21.7-alt1.x86_64
dolphin-24.12.3-alt2.x86_64
(thunar-4.20.3-alt1.x86_64)
(nautilus-47.2-alt1.x86_64)


Не воспроизводится на виртуальных машинах (пароль не запрашивается и в dolphin):

[p11]
samba-4.20.8-alt2.x86_64
dolphin-24.12.3-alt2.x86_64
(thunar-4.20.3-alt1.x86_64)
(nautilus-47.2-alt1.x86_64)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>269434</commentid>
    <comment_count>1</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2025-07-18 23:08:19 +0300</bug_when>
    <thetext>Апстрим в курсе об этой проблеме:
https://bugs.kde.org/show_bug.cgi?id=494981

Samba Team - тоже.

Патч, про который пишет ab@, уже приложен:
https://bugzilla.samba.org/show_bug.cgi?id=15789#c1

&gt; This looks like a regression introduced by
&gt; fb7e19826afab4fce33769eb7aef16a1c650b23a &apos;s3:libsmb: explicitly use the default
&gt; krb5 ccache in cli_session_creds_init() without a password&apos;

В desired режиме оно не работает:

$ smbclient --use-kerberos=required //srv-sisyphus/share 
Try &quot;help&quot; to get a list of possible commands.
smb: \&gt; 

$ smbclient --use-kerberos=desired //srv-sisyphus/share 
Password for [adtest@DOMAIN.ALT]:
Try &quot;help&quot; to get a list of possible commands.
smb: \&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>269435</commentid>
    <comment_count>2</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2025-07-19 00:04:56 +0300</bug_when>
    <thetext>На сборку в сизиф отправлена новый релиз alt2.

Когда собирётся, просьба - протестировать:
#390164 BUILDING #1 [locked] [test-only] sisyphus samba.git=4.21.7-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>269507</commentid>
    <comment_count>3</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-07-21 10:47:38 +0300</bug_when>
    <thetext>Проверил sisyphus+390164, в существующем домене на sisyphus после обновления до задания (только) на клиенте проблема исправляется: пароль не запрашивается в dolphin. После обновления на DC также. 

В клиентах с заданием в thunar и nautilus пароль также не запрашивается, как и раньше.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>269554</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-07-21 17:46:21 +0300</bug_when>
    <thetext>samba-4.21.7-alt2 -&gt; sisyphus:

Sat Jul 19 2025 Evgeny Sinelnikov &lt;sin@altlinux&gt; 4.21.7-alt2
- Fix broken option &quot;use-kerberos=desired&quot; (Samba#15789) (closes: 55238).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>