summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-December/001215.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-December/001215.html')
-rw-r--r--zarb-ml/mageia-sysadm/2010-December/001215.html167
1 files changed, 167 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2010-December/001215.html b/zarb-ml/mageia-sysadm/2010-December/001215.html
new file mode 100644
index 000000000..1c0a3aa21
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2010-December/001215.html
@@ -0,0 +1,167 @@
+<!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=%3C20101215013935.64C024029E%40valstar.mageia.org%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="001214.html">
+ <LINK REL="Next" HREF="001220.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [618] - add ldap authentication to transifex, so far for sysadmin only ( for</H1>
+ <B>root at mageia.org</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=%3C20101215013935.64C024029E%40valstar.mageia.org%3E"
+ TITLE="[Mageia-sysadm] [618] - add ldap authentication to transifex, so far for sysadmin only ( for">root at mageia.org
+ </A><BR>
+ <I>Wed Dec 15 02:39:35 CET 2010</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="001214.html">[Mageia-sysadm] [617] disable transifex authentication to use native one on django ( and so ldap )
+</A></li>
+ <LI>Next message: <A HREF="001220.html">[Mageia-sysadm] [618] - add ldap authentication to transifex, so far for sysadmin only ( for
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1215">[ date ]</a>
+ <a href="thread.html#1215">[ thread ]</a>
+ <a href="subject.html#1215">[ subject ]</a>
+ <a href="author.html#1215">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Revision: 618
+Author: misc
+Date: 2010-12-15 02:39:35 +0100 (Wed, 15 Dec 2010)
+Log Message:
+-----------
+- add ldap authentication to transifex, so far for sysadmin only ( for
+ testing purposes )
+
+Modified Paths:
+--------------
+ puppet/modules/transifex/manifests/init.pp
+
+Added Paths:
+-----------
+ puppet/modules/transifex/templates/45-ldap.conf
+
+Modified: puppet/modules/transifex/manifests/init.pp
+===================================================================
+--- puppet/modules/transifex/manifests/init.pp 2010-12-15 01:39:33 UTC (rev 617)
++++ puppet/modules/transifex/manifests/init.pp 2010-12-15 01:39:35 UTC (rev 618)
+@@ -1,9 +1,11 @@
+ class transifex {
+- package { ['transifex','python-psycopg2']:
++
++ package { ['transifex','python-psycopg2','python-django-auth-ldap']:
+ ensure =&gt; installed
+ }
+
+ $password = extlookup(&quot;transifex_password&quot;,'x')
++ $ldap_password = extlookup(&quot;transifex_ldap&quot;,'x')
+
+ @@postgresql::user { 'transifex':
+ password =&gt; $password,
+@@ -48,6 +50,17 @@
+ notify =&gt; Service['apache']
+ }
+
++ file { &quot;45-ldap.conf&quot;:
++ path =&gt; &quot;/etc/transifex/45-ldap.conf&quot;,
++ ensure =&gt; present,
++ owner =&gt; root,
++ group =&gt; root,
++ mode =&gt; 644,
++ content =&gt; template(&quot;transifex/45-ldap.conf&quot;),
++ require =&gt; Package['transifex'],
++ notify =&gt; Service['apache']
++ }
++
+ apache::vhost_django_app { &quot;transifex.$domain&quot;:
+ module =&gt; &quot;transifex&quot;,
+ module_path =&gt; [&quot;/usr/share/transifex&quot;,&quot;/usr/share&quot;]
+
+Added: puppet/modules/transifex/templates/45-ldap.conf
+===================================================================
+--- puppet/modules/transifex/templates/45-ldap.conf (rev 0)
++++ puppet/modules/transifex/templates/45-ldap.conf 2010-12-15 01:39:35 UTC (rev 618)
+@@ -0,0 +1,48 @@
++AUTHENTICATION_BACKENDS = (
++ 'django_auth_ldap.backend.LDAPBackend',
++ 'django.contrib.auth.backends.ModelBackend',
++)
++
++# Use LDAP group membership to calculate group permissions.
++AUTH_LDAP_FIND_GROUP_PERMS = True
++
++AUTH_LDAP_START_TLS = True
++
++# Cache group memberships for an hour to minimize LDAP traffic
++AUTH_LDAP_CACHE_GROUPS = True
++AUTH_LDAP_GROUP_CACHE_TIMEOUT = 3600
++
++import ldap
++from django_auth_ldap.config import LDAPSearch, GroupOfNamesType
++
++
++# Baseline configuration.
++AUTH_LDAP_SERVER_URI = &quot;<A HREF="ldap://ldap.&lt;%=">ldap://ldap.&lt;%=</A> domain %&gt;&quot;
++
++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;)
++
++# Set up the basic group parameters.
++AUTH_LDAP_GROUP_SEARCH = LDAPSearch(&quot;ou=Group,&lt;%= dc_suffix %&gt;&quot;,
++ ldap.SCOPE_SUBTREE, &quot;(objectClass=groupOfNames)&quot;
++)
++AUTH_LDAP_GROUP_TYPE = GroupOfNamesType(name_attr=&quot;cn&quot;)
++
++# Only users in this group can log in.
++#AUTH_LDAP_REQUIRE_GROUP = &quot;cn=enabled,ou=groups,dc=example,dc=com&quot;
++
++# Populate the Django user from the LDAP directory.
++AUTH_LDAP_USER_ATTR_MAP = {
++ &quot;first_name&quot;: &quot;givenName&quot;,
++ &quot;last_name&quot;: &quot;sn&quot;,
++ &quot;email&quot;: &quot;mail&quot;
++}
++
++AUTH_LDAP_USER_FLAGS_BY_GROUP = {
++ &quot;is_active&quot;: &quot;cn=mga-committers,ou=Group,&lt;%= dc_suffix %&gt;&quot;,
++ &quot;is_staff&quot;: &quot;cn=mga-sysadmin,ou=Group,&lt;%= dc_suffix %&gt;&quot;,
++ &quot;is_superuser&quot;: &quot;cn=mga-sysadmin,ou=Group,&lt;%= dc_suffix %&gt;&quot;
++}
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-sysadm/attachments/20101215/f904628c/attachment.html&gt;
+</PRE>
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="001214.html">[Mageia-sysadm] [617] disable transifex authentication to use native one on django ( and so ldap )
+</A></li>
+ <LI>Next message: <A HREF="001220.html">[Mageia-sysadm] [618] - add ldap authentication to transifex, so far for sysadmin only ( for
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1215">[ date ]</a>
+ <a href="thread.html#1215">[ thread ]</a>
+ <a href="subject.html#1215">[ subject ]</a>
+ <a href="author.html#1215">[ 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>