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écembre 2010 à 03:01 +0100, Michael Scherer a écrit :
><i> Le mercredi 15 décembre 2010 à 02:39 +0100, <A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">root at mageia.org</A> a écrit :
</I>><i> > Revision: 618
</I>><i> > Author: misc
</I>><i> > Date: 2010-12-15 02:39:35 +0100 (Wed, 15 Dec 2010)
</I>><i> > Log Message:
</I>><i> > -----------
</I>><i> > - add ldap authentication to transifex, so far for sysadmin only ( for
</I>><i> > testing purposes )
</I>><i>
</I>><i> As asked by dmorgan, ldap support was added to transifex ( and while on
</I>><i> it, deployed using wsgi and apache ), so we can now find a transifex
</I>><i> instance on transifex.mageia.org.
</I>><i>
</I>><i> Member of mga-sysadmin are super users, so we should be able to create
</I>><i> projects and so on by using our ldap login.
</I>><i>
</I>><i> However, it is not ready yet :
</I>><i>
</I>><i> - no SSL ( so I do not recommend to test yet )
</I>><i> - no organisation on i18n side, ie, who will be able to connect, how
</I>><i> will the team be organized ?
</I>><i> - no theme
</I>><i> - no usage of email for login
</I>><i> - no connexion with our svn
</I>><i>
</I>><i> Point 1 will likely be done in one hour.
</I>
Done ( and DNS too ).
><i> Point 4 is also easy, just modify file 45-ldap.conf. Should be done
</I>><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 = "cn=alamut-sympa,ou=System
Accounts,<%= dc_suffix %>"
AUTH_LDAP_BIND_PASSWORD = "<%= ldap_password %>"
AUTH_LDAP_USER_SEARCH = LDAPSearch("ou=People,<%= dc_suffix %> ",
- ldap.SCOPE_SUBTREE, "(uid=%(user)s)")
+ ldap.SCOPE_SUBTREE, "(|(uid=%(user)s)(mail=%(user)s))")
# Set up the basic group parameters.
AUTH_LDAP_GROUP_SEARCH = LDAPSearch("ou=Group,<%= dc_suffix %>",
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>
|