aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/Mageia/Extension.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@netscape.net>2017-10-09 20:42:12 +0200
committerFrédéric Buclin <LpSolit@netscape.net>2017-10-09 20:43:37 +0200
commitceefacd41df24ddb2c41e235a01938f479e40a22 (patch)
tree8fe5be1a8110d5659b364045a9fdbd5d7ac79beb /extensions/Mageia/Extension.pm
parent08fa219c0ae361c351271ec47b2efa2daa97b902 (diff)
downloadbugs-ceefacd41df24ddb2c41e235a01938f479e40a22.tar
bugs-ceefacd41df24ddb2c41e235a01938f479e40a22.tar.gz
bugs-ceefacd41df24ddb2c41e235a01938f479e40a22.tar.bz2
bugs-ceefacd41df24ddb2c41e235a01938f479e40a22.tar.xz
bugs-ceefacd41df24ddb2c41e235a01938f479e40a22.zip
Bug 899: Sync Bugzilla groups with LDAP groups
Diffstat (limited to 'extensions/Mageia/Extension.pm')
-rw-r--r--extensions/Mageia/Extension.pm17
1 files changed, 16 insertions, 1 deletions
diff --git a/extensions/Mageia/Extension.pm b/extensions/Mageia/Extension.pm
index 982a3bdb7..0c5efb02c 100644
--- a/extensions/Mageia/Extension.pm
+++ b/extensions/Mageia/Extension.pm
@@ -18,7 +18,7 @@ use Bugzilla::Bug qw(LogActivityEntry);
use Bugzilla::Field qw(get_field_id);
use Bugzilla::User qw();
use Bugzilla::User::Setting qw(add_setting);
-use Bugzilla::Extension::Mageia::Util qw(compare_datetimes);
+use Bugzilla::Extension::Mageia::Util qw(compare_datetimes sync_ldap_groups_check);
use Email::Address;
use Encode qw(encode);
@@ -136,6 +136,21 @@ sub mailer_before_send {
}
}
+sub sanitycheck_check {
+ my ($self, $args) = @_;
+ &{$args->{status}}('ldap_check_group_membership');
+ sync_ldap_groups_check($args->{status});
+}
+
+sub sanitycheck_repair {
+ my ($self, $args) = @_;
+ if (Bugzilla->cgi->param('sync_ldap_groups')) {
+ &{$args->{status}}('ldap_repair_start');
+ sync_ldap_groups_check($args->{status}, 1);
+ &{$args->{status}}('ldap_repair_end');
+ }
+}
+
sub template_before_process {
my ($self, $args) = @_;
_inline_history($args) if $args->{file} eq 'bug/comments.html.tmpl';