blob: 1dcd83a65e783aff18f06c13db58541b36fb1bf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-webteam] [Bug 899] Synchronize bugzilla groups with ldap groups
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-webteam%40mageia.org?Subject=Re%3A%20%5BMageia-webteam%5D%20%5BBug%20899%5D%20Synchronize%20bugzilla%20groups%20with%20ldap%0A%09groups&In-Reply-To=%3C20110419225850.CFB6742980%40alamut.mageia.org%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="000741.html">
<LINK REL="Next" HREF="000743.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-webteam] [Bug 899] Synchronize bugzilla groups with ldap groups</H1>
<B>Michael Scherer</B>
<A HREF="mailto:mageia-webteam%40mageia.org?Subject=Re%3A%20%5BMageia-webteam%5D%20%5BBug%20899%5D%20Synchronize%20bugzilla%20groups%20with%20ldap%0A%09groups&In-Reply-To=%3C20110419225850.CFB6742980%40alamut.mageia.org%3E"
TITLE="[Mageia-webteam] [Bug 899] Synchronize bugzilla groups with ldap groups">bugzilla-daemon at mageia.org
</A><BR>
<I>Wed Apr 20 00:58:50 CEST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="000741.html">[Mageia-webteam] [Bug 899] Synchronize bugzilla groups with ldap groups
</A></li>
<LI>Next message: <A HREF="000743.html">[Mageia-webteam] [Bug 899] Synchronize bugzilla groups with ldap groups
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#742">[ date ]</a>
<a href="thread.html#742">[ thread ]</a>
<a href="subject.html#742">[ subject ]</a>
<a href="author.html#742">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugs.mageia.org/show_bug.cgi?id=899">https://bugs.mageia.org/show_bug.cgi?id=899</A>
--- Comment #5 from Michael Scherer <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-webteam">misc at zarb.org</A>> 2011-04-20 00:58:50 UTC ---
I also found /usr/share/bugzilla/bin/bugzilla_ldapsync.rb and
/usr/share/bugzilla/bin/syncLDAP.pl
Ok so here is a proposal, in pseudo code :
connect_to_ldap()
@list_of_admin = get_list_of_admin_email()
foreach my $admin (@list_of_admin ) {
$bz_user = get_user($admin->email);
$bz_user->set('groups','admin');
$bz_user->update();
}
and redo for security ?
I guess that would be like half a day of work ( provided someone is not
interrupted ).
I didn't found much example of bugzilla API usage, but according to the
documentation, this can be done, so if we just add a cron job, this would be
good.
--
Configure bugmail: <A HREF="https://bugs.mageia.org/userprefs.cgi?tab=email">https://bugs.mageia.org/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are on the CC list for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000741.html">[Mageia-webteam] [Bug 899] Synchronize bugzilla groups with ldap groups
</A></li>
<LI>Next message: <A HREF="000743.html">[Mageia-webteam] [Bug 899] Synchronize bugzilla groups with ldap groups
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#742">[ date ]</a>
<a href="thread.html#742">[ thread ]</a>
<a href="subject.html#742">[ subject ]</a>
<a href="author.html#742">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-webteam">More information about the Mageia-webteam
mailing list</a><br>
</body></html>
|