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

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

    <bug>
          <bug_id>56556</bug_id>
          
          <creation_ts>2025-10-22 13:42:17 +0300</creation_ts>
          <short_desc>Предложения по юзабилити</short_desc>
          <delta_ts>2025-10-22 14:41:22 +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-extension-laps-v2-schema</component>
          <version>unstable</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="Anton Shevtsov">shevtsov.anton</reporter>
          <assigned_to name="august@altlinux.org">august</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>august</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>275233</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Shevtsov">shevtsov.anton</who>
    <bug_when>2025-10-22 13:42:17 +0300</bug_when>
    <thetext>1. Запуск без параметров приводит к ошибке

[root@dc apt]# /usr/bin/install-laps-v2-schema.py
Traceback (most recent call last):
  File &quot;/usr/bin/install-laps-v2-schema.py&quot;, line 58, in &lt;module&gt;
    main()
  File &quot;/usr/bin/install-laps-v2-schema.py&quot;, line 53, in main
    update_files(srcdir, tempdir, args.domain)
  File &quot;/usr/bin/install-laps-v2-schema.py&quot;, line 21, in update_files
    content = content.replace(&quot;dc=mydomain,dc=lan&quot;, 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 &apos;CN=ms-LAPS-Encrypted-Password-Attributes,CN=Extended-Rights,cn=configuration,test.alt&apos;
Added 0 records successfully
Error: Unable to parse dn &apos;CN=ms-LAPS-PasswordExpirationTime,CN=Schema,cn=configuration,test.alt&apos;
Failed to parse ldif
Add failed after processing 0 records
Error: Unable to parse dn &apos;CN=computer,CN=Schema,cn=configuration,test.alt&apos;
Modified 0 records successfully

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

4. Повторный запуск порождает кучу ошибок, вместо лаконичного - like as &quot;изменения же применены&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>