summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-December/001223.html
blob: cf8e4ebb27481a674902c23d6b83550cb3fd15a8 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] [618] - add ldap authentication to transifex, so far for sysadmin only (  for
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B618%5D%20-%20add%20ldap%20authentication%20to%20transifex%2C%0A%20so%20far%20for%20sysadmin%20only%20%28%20%20for&In-Reply-To=%3C1292382608.22689.32.camel%40akroma.ephaone.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="001220.html">
   <LINK REL="Next"  HREF="001216.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] [618] - add ldap authentication to transifex, so far for sysadmin only (  for</H1>
    <B>Michael Scherer</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B618%5D%20-%20add%20ldap%20authentication%20to%20transifex%2C%0A%20so%20far%20for%20sysadmin%20only%20%28%20%20for&In-Reply-To=%3C1292382608.22689.32.camel%40akroma.ephaone.org%3E"
       TITLE="[Mageia-sysadm] [618] - add ldap authentication to transifex, so far for sysadmin only (  for">misc at zarb.org
       </A><BR>
    <I>Wed Dec 15 04:10:08 CET 2010</I>
    <P><UL>
        <LI>Previous message: <A HREF="001220.html">[Mageia-sysadm] [618] - add ldap authentication to transifex, so far for sysadmin only (  for
</A></li>
        <LI>Next message: <A HREF="001216.html">[Mageia-sysadm] [619] - set default value of define to false ( so	we are not forced to give
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#1223">[ date ]</a>
              <a href="thread.html#1223">[ thread ]</a>
              <a href="subject.html#1223">[ subject ]</a>
              <a href="author.html#1223">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Le mercredi 15 d&#233;cembre 2010 &#224; 03:01 +0100, Michael Scherer a &#233;crit :
&gt;<i> Le mercredi 15 d&#233;cembre 2010 &#224; 02:39 +0100, <A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">root at mageia.org</A> a &#233;crit :
</I>&gt;<i> &gt; Revision: 618
</I>&gt;<i> &gt; Author:   misc
</I>&gt;<i> &gt; Date:     2010-12-15 02:39:35 +0100 (Wed, 15 Dec 2010)
</I>&gt;<i> &gt; Log Message:
</I>&gt;<i> &gt; -----------
</I>&gt;<i> &gt; - add ldap authentication to transifex, so far for sysadmin only ( for
</I>&gt;<i> &gt;   testing purposes )
</I>&gt;<i> 
</I>&gt;<i> As asked by dmorgan, ldap support was added to transifex ( and while on
</I>&gt;<i> it, deployed using wsgi and apache ), so we can now find a transifex
</I>&gt;<i> instance on transifex.mageia.org. 
</I>&gt;<i> 
</I>&gt;<i> Member of mga-sysadmin are super users, so we should be able to create
</I>&gt;<i> projects and so on by using our ldap login.
</I>&gt;<i> 
</I>&gt;<i> However, it is not ready yet :
</I>&gt;<i> 
</I>&gt;<i> - no SSL ( so I do not recommend to test yet )
</I>&gt;<i> - no organisation on i18n side, ie, who will be able to connect, how
</I>&gt;<i> will the team be organized ?
</I>&gt;<i> - no theme
</I>&gt;<i> - no usage of email for login
</I>&gt;<i> - no connexion with our svn
</I>&gt;<i> 
</I>&gt;<i> Point 1 will likely be done in one hour.
</I>
Done ( and DNS too ).

&gt;<i> Point 4 is also easy, just modify file 45-ldap.conf. Should be done
</I>&gt;<i> soon.
</I>
Ok so this part is not as easy as I would have liked :
1) we need to change this ( no real problem ):

@@ -23,7 +23,7 @@ AUTH_LDAP_BIND_DN = &quot;cn=alamut-sympa,ou=System
Accounts,&lt;%= dc_suffix %&gt;&quot;
 AUTH_LDAP_BIND_PASSWORD = &quot;&lt;%= ldap_password %&gt;&quot;
 
 AUTH_LDAP_USER_SEARCH = LDAPSearch(&quot;ou=People,&lt;%= dc_suffix %&gt; &quot;,
-    ldap.SCOPE_SUBTREE, &quot;(uid=%(user)s)&quot;)
+    ldap.SCOPE_SUBTREE, &quot;(|(uid=%(user)s)(mail=%(user)s))&quot;)
 
 # Set up the basic group parameters.
 AUTH_LDAP_GROUP_SEARCH = LDAPSearch(&quot;ou=Group,&lt;%= dc_suffix %&gt;&quot;,

2) we need to subclass the module to add this method, and use the
subclassed module :

    def ldap_to_django_username(self, username):
        return _LDAPUser(self, username=username).attrs['uid'][0]

Not hard to do, but not for today.
 
-- 
Michael Scherer

</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="001220.html">[Mageia-sysadm] [618] - add ldap authentication to transifex, so far for sysadmin only (  for
</A></li>
	<LI>Next message: <A HREF="001216.html">[Mageia-sysadm] [619] - set default value of define to false ( so	we are not forced to give
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#1223">[ date ]</a>
              <a href="thread.html#1223">[ thread ]</a>
              <a href="subject.html#1223">[ subject ]</a>
              <a href="author.html#1223">[ 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>