Users lose local group memberships due to length of active column

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

問題

Users that are sourced from an external LDAP directory lose local group memberships on synchronization.

atlassian-confluence.log に次のメッセージが表示される。 

2015-03-31 01:39:24,633 INFO [ajp-bio-127.0.0.1-8009-exec-2] [atlassian.crowd.directory.DelegatedAuthenticationDirectory] updateGroups Deleted user "myuser"'s imported membership of remote group "confluence-users" to directory "Delegated Authentication Directory".

診断

データベース

  • Check the length of the active and local columns in the cwd_group table. The column length for both should be one (1). 

原因

By default, the length of the active and local columns in the cwd_group table is one (1) character. If that column is increased to two characters, which can happen when changing the data type to one that supports Unicode (like nchar), that creates a situation where Confluence cannot determine the properties of groups; specifically the status and whether they are local. As a result, Confluence will remove the local group memberships from users, even though nothing has actually changed in that regard. 

ソリューション

  • Modify the affected table (cwd_group) by changing the length of the active and/or local columns back to one character:

    ALTER TABLE table_name
    ALTER COLUMN active nchar(1);

    データベースを変更する前には必ずデータをバックアップするようにします。

  • Restart Confluence or flush the Confluence caches
  • Manually restore the local group memberships that were removed

Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.