Bug 40570

Summary: system-auth: не работает настройка ldap "по старинке", только ldap+krb5 через sssd
Product: Sisyphus Reporter: Lenar Shakirov <snejok>
Component: alterator-authAssignee: Anton V. Boyarshinov <boyarsh>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: boyarsh, cas
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Lenar Shakirov 2021-07-23 20:55:28 MSK
system-auth: не работает настройка ldap "по старинке", только ldap+krb5 через sssd

Вызвано ошибкой затесавшейся тут:

http://git.altlinux.org/gears/a/alterator-auth.git?p=alterator-auth.git;a=commitdiff;h=017f5f442edb010cb015e7bce50ac2f0f4c7e851

@@ -40,6 +40,10 @@ admin_groups="/etc/alterator/auth/admin-groups"
 [ -f "$nssldapfile1" ] && nssldapfile="$nssldapfile1"
 [ -f "$nssldapfile2" ] && nssldapfile="$nssldapfile2"
 
+# Use old LDAP auth scheme (nss_ldap or nss-ldapd) or new one (sssd)
+ldap_auth_sssd="no"
+test rpm -q sssd &>/dev/null || ldap_auth_sssd="yes"
+
 . alterator-datetime-functions
 . shell-config
 . shell-ini-config


Исправление тут:
http://git.altlinux.org/people/snejok/packages/?p=alterator-auth.git;a=commitdiff;h=e54f42eb35c4b255dc8ad6e26b96b9129a68b93f


@@ -42,7 +42,7 @@ admin_groups="/etc/alterator/auth/admin-groups"
 
 # Use old LDAP auth scheme (nss_ldap or nss-ldapd) or new one (sssd)
 ldap_auth_sssd="no"
-test rpm -q sssd &>/dev/null || ldap_auth_sssd="yes"
+rpm -q sssd &>/dev/null && ldap_auth_sssd="yes"
 
 . alterator-datetime-functions
 . shell-config
Comment 1 Andrey Cherepanov 2021-07-24 13:55:47 MSK
Отправишь в Sisyphus?
Comment 2 Repository Robot 2021-07-27 14:49:40 MSK
alterator-auth-0.43.9-alt5 -> sisyphus:

 Tue Jul 27 2021 Lenar Shakirov <snejok@altlinux> 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)