mediawiki: LDAP 認証エラー

mediawiki: LDAP 認証エラー

php5+mysql+ldap を使用しています。mediawiki で php と mysql を設定しました。問題なく動作しています。ただし、LDAP ユーザーの認証ログインと一般ユーザーのログインを提供したいです。

私はldapauthenticationモジュールをインストールしました メディア ウィキ LDAP 認証ページ

現在の状況では、一般的には MediaWiki にアカウントを作成できますが、LDAP ユーザーは作成できません。

ここでは Localsettings.php を提供します。

      #########  edited by RAMKEE ################

   require_once( "$IP/extensions/Ldapauthentication/LdapAuthentication.php" );
     $wgAuth = new LdapAuthenticationPlugin();
   //require_once( "$IP/extensions/Ldapauthentication/LdapAutoAuthentication.php" );
    //AutoAuthSetup();
 # End of automatically generated settings.
 # Add more configuration options below.
  $wgLDAPDomainNames = array(
   'testADdomain',''
  );


  $wgLDAPServerNames = array(
  'testADdomain' => 'polyproxy.ramkee.local',''
  );


  $wgLDAPUseLocal = true;

  $wgLDAPEncryptionType = array(
  'testADdomain' => 'clear',''
  );


  $wgLDAPOptions = array(
  'testADdomain' => array( LDAP_OPT_DEREF, 1)
   );



  $wgLDAPPort = array(
  'testADdomain' => 389,''
  );



  $wgLDAPSearchStrings = array(
   'testADdomain' =>  'uid=USER-NAME,ou=people,dc=ramkee,dc=local'.''
  );

   $wgLDAPSearchAttributes = array(
   'testADdomain' => 'uid'
   );

   $wgLDAPBaseDNs = array(
  'testADdomain' => 'dc=LDAP,dc=ramkee,dc=local'
  );


   $wgLDAPGroupBaseDNs = array(
   'testADdomain' =>  'ou=group,dc=ramkee,dc=local'
  );


 $wgLDAPUserBaseDNs = array(
 'testADdomain' => 'ou=people,dc=ramkee,dc=local'
 );


  $wgLDAPWriterDN = array(
 'testADdomain' => 'ou=people,dc=ramkee,dc=local'
  );


 $wgLDAPWriterPassword = array(
 'testADdomain' => 'KnfMdMI0qiH9HZBQw7JkqLyEni/wp34x'
  );


 $wgLDAPWriteLocation = array(
  'testADdomain' => 'ou=people,dc=ramkee,dc=local'
   );



   $wgLDAPAddLDAPUsers = array(
   'testADdomain' => true
   );


  $wgLDAPUpdateLDAP = array(
  'testADdomain' => true
  );


 $wgLDAPRetrievePrefs = array(
 'testADdomain' => true
 );





$wgLDAPDisableAutoCreate = array(
'testADdomain' => false
);

$wgLDAPDebug = 10000;

$wgMinimalPasswordLength = 1;

$wgLDAPGroupUseFullDN = array( 'testADdomain' => false );

$wgLDAPLowerCaseUsername = array(
 'testADdomain' => true
);

 $wgLDAPGroupObjectclass = array(
 'testADdomain' => 'groupofuniquenames'
 );

$wgLDAPGroupUseRetrievedUsername = array( 'testADdomain' => false
);


$wgLDAPGroupNameAttribute = array(
'testADdomain' => 'cn'
);

$wgLDAPGroupsUseMemberOf = array(
'testADdomain' => false
);



$wgLDAPUseLDAPGroups = array(
 'testADdomain' => true
);


$wgLDAPGroupsPrevail = array(
'testADdomain' => true
);


    #wgLDAPRequiredGroups = array(
    # 'testADdomain' => array(
    #   'cn=admin,ou=groups,dc=ramkee,dc=local',
    #   'cn=chulbul,ou=people,dc=ramkee,dc=local'
    # )

    #;

LDAPのアカウントを作成しようとすると、データベースを更新する権限がないと表示されます。(私のデータベースはmysqlです) アカウント作成中に次のエラーが発生します

ここに画像の説明を入力してください

管理者としてログインしている間は受け入れられます (管理者は LDAP に存在しません)

私の ldap も動作しており、ポート 389 はオープンされており、ldapsearch -x も動作しています。しかし、どこでミスをしたのかわかりません。管理者の 1 人はログインできますが、一般ユーザーもログインできません。過去 3 日間苦労しています。誰か助けてくれませんか

答え1

どこでミスをしたのか自分で見つけたので、localsettings.php を提供します。必要な人がいたら、これに従ってください。成功するかもしれません。

mediawiki ページの作成が成功すると、新しい localsettings.php が取得されます。そこに次の行を追加するだけです。その後、LDAP データベースへの認証が行われます。

LDAP データベースに登録されているユーザーは、MediaWiki にアカウントを作成する必要はなく、Wiki アカウントを作成せずに直接ログインできます。

ramkee.local私のドメイン名です。ポリプロキシ.ramkee.local私のLDAPサーバー名

 require_once 'extensions/LdapAuthentication/LdapAuthentication.php';

 $wgAuth = new LdapAuthenticationPlugin();

 $wgLDAPDomainNames = array(
 'ramkee.local',
 );


 $wgLDAPServerNames = array(
'ramkee.local' => 'polyproxy.ramkee.local',
 );



 $wgLDAPEncryptionType = array(
 'ramkee.local' =>  'clear',
 );

 $wgAuthLDAPBindDN = array( 'ramkee.local' => 'cn=admin,dc=ramkee,dc=local');
 $wgAuthLDAPBindPassword = array( 'ramkee.local' => 'safesquid');

 $wgLDAPPort = array(
 'ramkee.local' => 389,
 );


 $wgLDAPSearchAttributes = array(
 'ramkee.local' => 'uid'
 );

 $wgLDAPBaseDNs = array(
 'ramkee.local' => 'dc=ramkee,dc=local',
 );

 $wgLDAPDebug = 3;

 $wgDebugLogGroups["ldap"] = "/tmp/wikildapdebug.log" ;

エラーが発生した場合はお知らせください。ありがとうございます!

関連情報