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

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

    <bug>
          <bug_id>48221</bug_id>
          
          <creation_ts>2023-10-27 14:29:16 +0300</creation_ts>
          <short_desc>unsupported parameter value: bind = sasl</short_desc>
          <delta_ts>2023-12-15 14:14:06 +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>postfix-ldap</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</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="Дмитрий">sa</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>alimektor</cc>
    
    <cc>glebfm</cc>
    
    <cc>sa</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>235824</commentid>
    <comment_count>0</comment_count>
    <who name="Дмитрий">sa</who>
    <bug_when>2023-10-27 14:29:16 +0300</bug_when>
    <thetext>Прикручиваю ldap к postfix. При указании bind = sasl возникает ошибка:
postfix/postmap[14127]: fatal: /etc/postfix/postfix-files.d/ldap_mailboxes: unsupported parameter value: bind = sasl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237606</commentid>
    <comment_count>1</comment_count>
    <who name="Evgeny Shesteperov">alimektor</who>
    <bug_when>2023-11-21 21:37:19 +0300</bug_when>
    <thetext>Здравствуйте!

Укажите, пожалуйста, стенд подробнее:

1. Название дистрибутива, версия, вывод $ cat /etc/os-release
2. Шаги воспроизведения или инструкция, которой Вы руководствуетесь.
3. Ожидаемый результат.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238277</commentid>
    <comment_count>2</comment_count>
    <who name="Дмитрий">sa</who>
    <bug_when>2023-12-04 09:51:22 +0300</bug_when>
    <thetext>1) cat /etc/os-release
NAME=&quot;ALT Server&quot;
VERSION=&quot;10.2&quot;
ID=altlinux
VERSION_ID=10.2
PRETTY_NAME=&quot;ALT Server 10.2 (Mendelevium)&quot;
ANSI_COLOR=&quot;1;33&quot;
CPE_NAME=&quot;cpe:/o:alt:server:10.2&quot;
BUILD_ID=&quot;ALT Server 10.1&quot;
HOME_URL=&quot;https://basealt.ru/&quot;
BUG_REPORT_URL=&quot;https://bugs.altlinux.org/&quot;

2) https://www.postfix.org/ldap_table.5.html
bind (default: yes)
              Whether or how to bind to the LDAP server. Newer LDAP  implemen-
              tations  don&apos;t  require clients to bind, which saves time. Exam-
              ple:

                  # Don&apos;t bind
                  bind = no
                  # Use SIMPLE bind
                  bind = yes
                  # Use SASL bind
                  bind = sasl
При установке значения bind = sasl возникает ошибка unsupported parameter value: bind = sasl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238875</commentid>
    <comment_count>3</comment_count>
    <who name="Evgeny Shesteperov">alimektor</who>
    <bug_when>2023-12-12 16:33:07 +0300</bug_when>
    <thetext>Не воспроизвелось с данным стендом, добавьте, пожалуйста шаги воспроизведения или инструкцию, по которой вы руководствуйтесь.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>239011</commentid>
    <comment_count>4</comment_count>
    <who name="Дмитрий">sa</who>
    <bug_when>2023-12-14 14:52:35 +0300</bug_when>
    <thetext>Например, создаём таблицу поиска в ldap, как сказано в документации (https://www.postfix.org/ldap_table.5.html):

bind = sasl
sasl_mechs = GSSAPI
version = 3

server_host = server
search_base = dc=base
query_filter = (&amp;(objectCategory=person)(objectClass=user)(sAMAccountName=%u)(wWWHomePage=1)(!(useraccountcontrol:1.2.840.113556.1.4.803:=2)))
result_attribute = sAMAccountName

Проверяем и получаем ошибку:
postmap -q test ldap:/etc/postfix/postfix-files.d/ldap_test
postmap: fatal: /etc/postfix/postfix-files.d/ldap_test: unsupported parameter value: bind = sasl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>239053</commentid>
    <comment_count>5</comment_count>
    <who name="Evgeny Shesteperov">alimektor</who>
    <bug_when>2023-12-15 14:14:06 +0300</bug_when>
    <thetext>Воспроизвёл через:

# postmap -q test ldap:/etc/postfix/postfix-files.d/ldap_test
. . . . .
postmap: fatal: /etc/postfix/postfix-files.d/ldap_test: unsupported parameter value: bind = sasl

Версия:

- postfix-ldap-3.8.3-alt1

Воспроизводится в P10.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>