summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-April/003393.html
blob: 5da171e7450f1301686d7c4a92c552efda1d382e (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] Dynlist and change on ldap
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20Dynlist%20and%20change%20on%20ldap&In-Reply-To=%3C20110425125805.GF21138%40sisay.ephaone.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="003392.html">
   <LINK REL="Next"  HREF="003396.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] Dynlist and change on ldap</H1>
    <B>Michael scherer</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20Dynlist%20and%20change%20on%20ldap&In-Reply-To=%3C20110425125805.GF21138%40sisay.ephaone.org%3E"
       TITLE="[Mageia-sysadm] Dynlist and change on ldap">misc at zarb.org
       </A><BR>
    <I>Mon Apr 25 14:58:05 CEST 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="003392.html">[Mageia-sysadm] Dynlist and change on ldap
</A></li>
        <LI>Next message: <A HREF="003396.html">[Mageia-sysadm] Dynlist and change on ldap
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#3393">[ date ]</a>
              <a href="thread.html#3393">[ thread ]</a>
              <a href="subject.html#3393">[ subject ]</a>
              <a href="author.html#3393">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On Mon, Apr 25, 2011 at 12:12:59PM +0200, Michael scherer wrote:
&gt;<i> On Thu, Apr 21, 2011 at 10:09:34PM +0200, Michael Scherer wrote:
</I>&gt;<i> &gt; Le jeudi 21 avril 2011 &#224; 22:04 +0200, Michael Scherer a &#233;crit :
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; &gt; To use it, just add a group like this : 
</I>&gt;<i> &gt; &gt; 
</I>&gt;<i> &gt; &gt; cn=mga-test_dyn,ou=Group,dc=mageia,dc=org
</I>&gt;<i> &gt; &gt; cn: mga-test_dyn
</I>&gt;<i> &gt; &gt; objectClass: posixGroup
</I>&gt;<i> &gt; &gt; objectClass: groupOfURLs
</I>&gt;<i> &gt; &gt; gidNumber: 5013
</I>&gt;<i> &gt; &gt; memberURL:
</I>&gt;<i> &gt; &gt; <A HREF="ldap:///ou=People,dc=mageia,dc=org?dn?sub?(&amp;(objectClass=posixAccount">ldap:///ou=People,dc=mageia,dc=org?dn?sub?(&amp;(objectClass=posixAccount</A>)(memberOf=cn=mga-council,ou=Group,dc=mageia,dc=org))
</I>&gt;<i> &gt; &gt; memberURL:
</I>&gt;<i> &gt; &gt; <A HREF="ldap:///ou=People,dc=mageia,dc=org?dn?sub?(&amp;(objectClass=posixAccount">ldap:///ou=People,dc=mageia,dc=org?dn?sub?(&amp;(objectClass=posixAccount</A>)(memberOf=cn=mga-sysadmin,ou=Group,dc=mageia,dc=org))
</I>&gt;<i> &gt; &gt; 
</I>&gt;<i> &gt; &gt; This one will create a group with sysadmin and council member.
</I>&gt;<i> &gt; &gt; 
</I>&gt;<i> &gt; &gt; # getent group mga-test_dyn
</I>&gt;<i> &gt; &gt; mga-test_dyn:*:5013:misc,rda,boklm,tmb,ennael,dams,buchan,dmorgan,nanardon,colin,blino,pterjan
</I>&gt;<i> &gt; &gt; 
</I>&gt;<i> &gt; &gt; ( ok here, it doesn't work fully, wobo and trishf42 are missing but
</I>&gt;<i> &gt; &gt; since ennael and rda are not in sysadmin group, this kinda work, I will
</I>&gt;<i> &gt; &gt; look at this more closely, maybe a index issue, or memberOf not being
</I>&gt;<i> &gt; &gt; refreshed )
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; Ok as usual, I first say something stupid and then find the issue.
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; Of course, for this example, we should not add
</I>&gt;<i> &gt; &quot;(objectClass=posixAccount)&quot; in the filter, as neither wobo or trishf42
</I>&gt;<i> &gt; have a posixAccount :)
</I>&gt;<i> 
</I>&gt;<i> So I finally made the changes to ldap :
</I>&gt;<i> created a group called mga-shell_access
</I>&gt;<i> changed svn acl for that
</I>&gt;<i> 
</I>&gt;<i> the only issue that I faced was that some members ( ie all i18n and me ) were 
</I>&gt;<i> not able to use the svn, as &quot;id $login&quot; didn't show that they were in the 
</I>&gt;<i> group. I do not know how I solved ( in fact, it started to work once I added 
</I>&gt;<i> i18n to the test_dyn group I created to test everything ).
</I>
So it seems that's some caching issue ( or at least, I would inclined to think ).
If we modify mga-shell_access by hand, everything work fine. 
Ie, any modification of the group is not reflected immediately, but on the next modification.

Buchan, maybe you have a idea ?
( already tried to play around indexes without much success ).

According to the various researches I did around the web, dynlist + caching is a 
hard problem, so maybe there is indeed a bug.
-- 
Michael Scherer
</PRE>









<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="003392.html">[Mageia-sysadm] Dynlist and change on ldap
</A></li>
	<LI>Next message: <A HREF="003396.html">[Mageia-sysadm] Dynlist and change on ldap
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#3393">[ date ]</a>
              <a href="thread.html#3393">[ thread ]</a>
              <a href="subject.html#3393">[ subject ]</a>
              <a href="author.html#3393">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
mailing list</a><br>
</body></html>