LDAP認証のシステムロールマッピングの動作について

Re: LDAP認証のシステムロールマッピングの動作について

- Katsunori Mizuno の投稿
返信数: 0
'memberattribute_isdn' という設定項目が以前は「空」だったものが,新しいものでは「0」「1」の数字になったことが原因で,auth.php 内の
is_role 関数が正しく動作しなくなっていたようです。以下のパッチで動作するようになりました。

--- auth.php.orig       2020-09-22 10:57:42.000000000 +0900
+++ auth.php    2020-09-22 10:58:11.000000000 +0900
@@ -1094,7 +1094,7 @@

         $ldapconnection = $this->ldap_connect();

-        if ($this->config->memberattribute_isdn) {
+        if ($this->config->memberattribute_isdn == 0) {
             if (!($userid = $this->ldap_find_userdn($ldapconnection, $extusername))) {
                 return false;
             }
評点平均: お役立ち度: ★★★★★★★ (1)