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

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

    <bug>
          <bug_id>40569</bug_id>
          
          <creation_ts>2021-07-23 19:04:05 +0300</creation_ts>
          <short_desc>Не выводит список namingContexts у ldap</short_desc>
          <delta_ts>2021-07-27 14:49:40 +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>alterator-auth</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</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="Lenar Shakirov">snejok</reporter>
          <assigned_to name="Anton V. Boyarshinov">boyarsh</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>cas</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>200867</commentid>
    <comment_count>0</comment_count>
    <who name="Lenar Shakirov">snejok</who>
    <bug_when>2021-07-23 19:04:05 +0300</bug_when>
    <thetext>Ошибка затесалась тут http://git.altlinux.org/gears/a/alterator-auth.git?p=alterator-auth.git;a=commitdiff;h=71a2f4f00326fc5bb5cfcf41bceba6f1f84481cc


@@ -138,42 +146,42 @@ on_message()
            type)
                write_type_item domain_name hostname
                write_type_item domain hostname
-               ;;
+                   ;;
            list)
-               [ &quot;$in__objects&quot; = &quot;avail_domain&quot; ] &amp;&amp; list_domain
-               [ &quot;$in__objects&quot; = &quot;local_bases&quot; ] &amp;&amp; local_bases
-               ;;
+                   [ &quot;$in__objects&quot; = &quot;avail_domain&quot; ] &amp;&amp; list_domain || return
+               [ &quot;$in__objects&quot; = &quot;local_bases&quot; ] &amp;&amp; local_bases
+               ;;


Функция &quot;local_bases&quot; никогда не выполнится, ибо выше есть &quot;|| return&quot;

Видимо return должен был ловить ошибки внутри list_domain.

По своему разумению исправил так, но по ощущениям &quot;return&quot; не нужен:

http://git.altlinux.org/people/snejok/packages/?p=alterator-auth.git;a=blobdiff;f=alterator-auth/backend3/auth;h=2c49b7092f1cb2c8a3915354141e91a42611e0be;hp=2b000af2e6293807cc12a3332f5437d91b0b9e04;hb=d9244d826dd9a7c0f6ca6324fd3f5b2a4cb6f6d0;hpb=83e15627152c5583426ea1ed9a697d75f4953117


@@ -197,7 +197,7 @@ on_message()
                write_type_item domain hostname
                    ;;
            list)
-                   [ &quot;$in__objects&quot; = &quot;avail_domain&quot; ] &amp;&amp; list_domain || return
+               if [ &quot;$in__objects&quot; = &quot;avail_domain&quot; ];then list_domain || return ;fi
                [ &quot;$in__objects&quot; = &quot;local_bases&quot; ] &amp;&amp; local_bases
                ;;
            read)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200935</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-07-27 14:49:40 +0300</bug_when>
    <thetext>alterator-auth-0.43.9-alt5 -&gt; sisyphus:

 Tue Jul 27 2021 Lenar Shakirov &lt;snejok@altlinux&gt; 0.43.9-alt5
 - backend: fix list ldap local_bases (namingContexts) (ALT #40569)
 - sbin/system-auth: fix sssd package check, old LDAP auth scheme
   work again (ALT #40570)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>