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

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

    <bug>
          <bug_id>48489</bug_id>
          
          <creation_ts>2023-11-17 18:17:09 +0300</creation_ts>
          <short_desc>Не создаёт сетевой диск на Windows 7/10</short_desc>
          <delta_ts>2023-11-20 07:01:58 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p10</product>
          <component>gpui</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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="Evgeny Shesteperov">alimektor</reporter>
          <assigned_to name="august@altlinux.org">august</assigned_to>
          <cc>shevtsov.anton</cc>
          
          <qa_contact name="qa-p10@altlinux.org">qa-p10</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>237426</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Shesteperov">alimektor</who>
    <bug_when>2023-11-17 18:17:09 +0300</bug_when>
    <thetext>Версия

-   gpui-0.2.34-alt1
-   samba-4.16.11-alt2

Дистрибутивы

-   ALT Education 10.2 XFCE / KDE
-   ALT KWorkstation 10.2.1
-   ALT Workstation 10.1
-   ALT Server 10.1

Предусловия

На сервере Samba настроить сетевую папку:

    # mkdir -p /var/share &amp;&amp; chmod 777 /var/share &amp;&amp; echo &quot;Hello World!&quot; &gt;&gt;/var/share/testfile.txt

    # cat &gt;&gt; /etc/samba/smb.conf &lt;&lt;EOF

    [SHARE]
           comment = Folder 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

    EOF

Шаги воспроизведения

1.  Открыть GPUI → политика Default Domain Policy
2.  Открыть раздел Пользователь - Настройки - Настройки системы -
    Сетевые диски
3.  ПКМ на пустом поле справа - Новый - Сетевой диск
4.  Настроить диск:
    -   Действие: Создать
    -   Путь: \\dc\share
    -   Включить чекбокс Переподключиться
    -   Название: user-share
    -   Включить чекбокс Первый доступный, начиная с А
    -   Нажать OK
5.  Перезагрузить клиент с Windows 7 / 10 Pro.

Ожидаемый результат: в проводнике подключён сетевой диск.

Фактический результат: в проводнике не подключён сетевой диск.

XML при настройке через GPUI:

    # cat /var/lib/samba/sysvol/samba.testdomain/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/USER/Preferences/Drives/Drives.xml
    &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot; ?&gt;
    &lt;Drives clsid=&quot;{8FDDCC1A-0C3C-43cd-A6B4-71A6DF20DA8C}&quot;&gt;
      &lt;Drive bypassErrors=&quot;0&quot; changed=&quot;2023-11-17 18:03:28&quot; clsid=&quot;{935D1B74-9CB8-4e3c-9914-7DD559B7A417}&quot; desc=&quot;&quot; image=&quot;0&quot; name=&quot;\\dc\share&quot; removePolicy=&quot;0&quot; status=&quot;&quot; uid=&quot;{6230ea17-8a28-4e32-81d5-b8cbf30223ef}&quot; userContext=&quot;1&quot;&gt;
        &lt;Properties action=&quot;C&quot; allDrives=&quot;NOCHANGE&quot; cpassword=&quot;&quot; label=&quot;user-share&quot; letter=&quot;A&quot; path=&quot;\\dc\share&quot; persistent=&quot;1&quot; thisDrive=&quot;NOCHANGE&quot; useLetter=&quot;0&quot; userName=&quot;&quot;/&gt;
      &lt;/Drive&gt;
    &lt;/Drives&gt;

XML при настройке через RSAT:

    # cat /var/lib/samba/sysvol/samba.testdomain/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/USER/Preferences/Drives/Drives.xml
    &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
    &lt;Drives clsid=&quot;{8FDDCC1A-0C3C-43cd-A6B4-71A6DF20DA8C}&quot;&gt;&lt;Drive clsid=&quot;{935D1B74-9CB8-4e3c-9914-7DD559B7A417}&quot; name=&quot;A:&quot; status=&quot;A:&quot; image=&quot;0&quot; userContext=&quot;1&quot; bypassErrors=&quot;1&quot; changed=&quot;2023-11-17 11:05:12&quot; uid=&quot;{9F2D4ED6-3E64-4C7A-A1D5-A70C19683A47}&quot;&gt;&lt;Properties action=&quot;C&quot; thisDrive=&quot;NOCHANGE&quot; allDrives=&quot;NOCHANGE&quot; userName=&quot;&quot; path=&quot;\\dc\share&quot; label=&quot;user-share&quot; persistent=&quot;1&quot; useLetter=&quot;0&quot; letter=&quot;A&quot;/&gt;&lt;/Drive&gt;
    &lt;/Drives&gt;

Примечание 1: если сначала добавить диск с помощью GPUI (1), а потом
через RSAT (2), то label первого (1label) перезаписывается вторым
(2label), получается отображаться будет вот так:

-   A: label2
-   B: label2

Примечание 2: увидел разницу в name=&quot;\\dc\share&quot; вместо
name=&quot;A:&quot; status=&quot;A:&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>