Bug 56556 - Предложения по юзабилити
Summary: Предложения по юзабилити
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: samba-extension-laps-v2-schema (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: august@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-22 13:42 MSK by Anton Shevtsov
Modified: 2025-10-22 14:41 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Shevtsov 2025-10-22 13:42:17 MSK
1. Запуск без параметров приводит к ошибке

[root@dc apt]# /usr/bin/install-laps-v2-schema.py
Traceback (most recent call last):
  File "/usr/bin/install-laps-v2-schema.py", line 58, in <module>
    main()
  File "/usr/bin/install-laps-v2-schema.py", line 53, in main
    update_files(srcdir, tempdir, args.domain)
  File "/usr/bin/install-laps-v2-schema.py", line 21, in update_files
    content = content.replace("dc=mydomain,dc=lan", domain_name)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: replace() argument 2 must be str, not None

2. --help не содержит той информации, какая есть в README, в частности о форме указания опции --domain. Указав привычную форму - получил ошибку

[root@dc apt]# /usr/bin/install-laps-v2-schema.py --domain test.alt --samfile /var/lib/samba/private/sam.ldb
Error: Unable to parse dn 'CN=ms-LAPS-Encrypted-Password-Attributes,CN=Extended-Rights,cn=configuration,test.alt'
Added 0 records successfully
Error: Unable to parse dn 'CN=ms-LAPS-PasswordExpirationTime,CN=Schema,cn=configuration,test.alt'
Failed to parse ldif
Add failed after processing 0 records
Error: Unable to parse dn 'CN=computer,CN=Schema,cn=configuration,test.alt'
Modified 0 records successfully

3. Зачем вообще просить пользователя указывать корень, если мы указываем ldb. Корень можно и нужно взять оттуда

4. Повторный запуск порождает кучу ошибок, вместо лаконичного - like as "изменения же применены"