Bug 48817 - Не показывается constucted атрибут
Summary: Не показывается constucted атрибут
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: admc (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Valery Sinelnikov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-15 14:09 MSK by Anton Shevtsov
Modified: 2024-02-26 15:56 MSK (History)
5 users (show)

See Also:


Attachments
msDS-KeyVersionNumber is empty (wrong) (190.48 KB, image/png)
2023-12-15 14:09 MSK, Anton Shevtsov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Shevtsov 2023-12-15 14:09:06 MSK
Created attachment 15218 [details]
msDS-KeyVersionNumber is empty (wrong)

Не показывается constucted поле, в частности msDS-KeyVersionNumber (см. скриншот)

А вот прямой запрос к базе показывает:
 ldbsearch -H /var/lib/samba/private/sam.ldb  '(&(cn=WKS-K2)(objectclass=computer))' pwdLastSet msDS-KeyVersionNumber

# record 1
dn: CN=WKS-K2,CN=Computers,DC=test,DC=alt
pwdLastSet: 133471111425790130
msDS-KeyVersionNumber: 3
Comment 1 Tatyana Gagina 2023-12-15 17:46:03 MSK
Ошибка воспроизводится на Sisyphus.
Версия: admc-0.15.0-alt1

Стенды, обновлённые до Sisyphus:
Workstation K x86-64/Workstation x86-64 (клиенты Samba)
Server x86-64 (сервер Samba).
Сервер и клиенты настроены по инструкции https://www.altlinux.org/ActiveDirectory/DC
Имя домена: samba.testdomain

Шаги:
1) Получить ключ Kerberos для администратора домена
$ kinit administrator
Запустить из консоли
$ admc
2) ПКМ на <domainname> -> Создать -> Компьютер -> задать имя WKS-K2;
3) ПКМ по компьютеру WKS-K2 -> Свойства -> Атрибуты -> ЛКМ по значению "msDS-KeyVersionNumber".

Результат: значение msDS-KeyVersionNumber пустое, не показывается constucted поле, <без значения>. См. вложение msDS-KeyVersionNumber is empty (wrong).

Хотя при запросе к базе на сервере:
# ldbsearch -H /var/lib/samba/private/sam.ldb  '(&(cn=WKS-K2)(objectclass=computer))' pwdLastSet msDS-KeyVersionNumber

# record 1
dn: CN=WKS-K2,DC=samba,DC=testdomain
pwdLastSet: 0
msDS-KeyVersionNumber: 1

Проверялось на p10, ошибка воспроизводится.
Версия: admc-0.15.0-alt1 (также на предыдущей версии admc-0.14.0-alt1).
Comment 2 Tatyana Gagina 2023-12-18 14:43:35 MSK
Примечание: открыть Атрибуты представляется возможным, только если 
создать компьютер на одном клиенте, а атрибуты по данному компьютеру просмотреть с другого клиента.

Пример: 
1) на первом клиенте: <domainname> -> ПКМ на Computer -> Создать -> Компьютер -> задать имя WKS-K2 -> ОК;
2) на втором клиенте: ПКМ по компьютеру WKS-K2 -> Свойства -> Атрибуты -> ЛКМ по значению "msDS-KeyVersionNumber".

Также проверялось на системах, обновлённых до Sisyphus:
Education x86-64 XFCE/KDE   

Аналогично на p10 (версия на p10 и Sisyphus admc-0.15.0-alt1).
Comment 3 Tatyana Gagina 2023-12-19 16:01:56 MSK
В случае использования сценария №1 https://bugzilla.altlinux.org/show_bug.cgi?id=48817#c1 следует принять к сведению, что для отображения вкладки "Атрибуты" важно, чтобы был выставлен чек-бокс "Дополнительные возможности" (Настройки -> "Дополнительные возможности"). Без данной преднастройки атрибуты не будут отображаться.
Comment 4 Repository Robot 2024-02-26 15:56:59 MSK
admc-0.16.0-alt1 -> sisyphus:

 Tue Feb 20 2024 Semyon Knyazev <samael@altlinux> 0.16.0-alt1
 - Add drag&drop policy link order changing to links tab in the policy OU
   widget.
 - Domain info widget: "Servers" items are removed from the tree and
   domain controller version is added.
 - Add link state icons (enforced/disabled) to the links tab from the
   policy OU widget.
 - Domain policy link broken deletion is fixed (the same links in other
   OUs were deleted instead of domain's link). (closes: 49385)
 - Fix broken domain policy link icon changing: enforcing/disabling
   from policy widget changed another OU's the same policy link icon.
 - Fix links duplication in policy OU widget's inheritance tab.
 - Fixed user properties window resize.
 - Add optional attributes loading. It can be performed via "Load
   optional attribute values" option checking (in the preferences menu)
   or with corresponding button in the attributes tab. (closes: 48817)
 - Fixed not selected of any theme after ADMC start.