summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-November/000951.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-November/000951.html')
-rw-r--r--zarb-ml/mageia-sysadm/2010-November/000951.html201
1 files changed, 201 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2010-November/000951.html b/zarb-ml/mageia-sysadm/2010-November/000951.html
new file mode 100644
index 000000000..b4339cbb5
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2010-November/000951.html
@@ -0,0 +1,201 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [LONG] sympa ( and web apps ) ldap authentication
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5BLONG%5D%20sympa%20%28%20and%20web%20apps%20%29%20ldap%0A%09authentication&In-Reply-To=%3C201011251122.50618.bgmilne%40multilinks.com%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="000899.html">
+ <LINK REL="Next" HREF="000915.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [LONG] sympa ( and web apps ) ldap authentication</H1>
+ <B>Buchan Milne</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5BLONG%5D%20sympa%20%28%20and%20web%20apps%20%29%20ldap%0A%09authentication&In-Reply-To=%3C201011251122.50618.bgmilne%40multilinks.com%3E"
+ TITLE="[Mageia-sysadm] [LONG] sympa ( and web apps ) ldap authentication">bgmilne at multilinks.com
+ </A><BR>
+ <I>Thu Nov 25 11:22:50 CET 2010</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000899.html">[Mageia-sysadm] [LONG] sympa ( and web apps ) ldap authentication
+</A></li>
+ <LI>Next message: <A HREF="000915.html">[Mageia-sysadm] [LONG] sympa ( and web apps ) ldap authentication
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#951">[ date ]</a>
+ <a href="thread.html#951">[ thread ]</a>
+ <a href="subject.html#951">[ subject ]</a>
+ <a href="author.html#951">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>On Wednesday, 24 November 2010 20:29:04 Romain d'Alverny wrote:
+&gt;<i> Hi,
+</I>&gt;<i>
+</I>&gt;<i> thanks for the long description. Instead of replying point by point, I
+</I>&gt;<i> would like to suggest a more radical point of view, that actually
+</I>&gt;<i> determined the my.mandriva setup (that would not make a difference
+</I>&gt;<i> between &quot;regular&quot; users and &quot;active&quot; users from a auth/storage POV). I
+</I>&gt;<i> think it's worth it to discuss it as well.
+</I>&gt;<i>
+</I>&gt;<i> The rationale is to ease the user flow through the project, as a
+</I>&gt;<i> whole. 4 points below.
+</I>&gt;<i>
+</I>&gt;<i> #1. General rule: all users authenticate the same way against a single
+</I>&gt;<i> directory
+</I>
+IMHO this is non-negotiable.
+
+&gt;<i> #2. Consequences
+</I>&gt;<i>
+</I>&gt;<i> That means that identity should authenticate with email preferably
+</I>&gt;<i> (but may allow using the login).
+</I>
+Most applications can be configured to authenticate on any LDAP attribute.
+This is more of a policy/usability issue than a technical one.
+
+&gt;<i> That does not prevent that local app data is locally stored.
+</I>
+Only non-application-specific should be in the directory. Application-specific
+user data stays in the application.
+
+&gt;<i> That's
+</I>&gt;<i> how my.mandriva scheme was designed (and could have gone further).
+</I>&gt;<i> That does not prevent that local apps provide a way for the user to
+</I>&gt;<i> build a mashup of all data around (for a reporting/activity/social net
+</I>&gt;<i> app for instance).
+</I>&gt;<i>
+</I>&gt;<i> That means that any user using any part of the Mageia infrastructure
+</I>&gt;<i> has to get an account through identity.mageia.org. And that
+</I>&gt;<i> email/login must be tested for unicity.
+</I>
+At present we are only using uid for login, which is unique-enforced (as it is
+the RDN).
+
+&gt;<i> That also puts some constraints on how an app manages authentication
+</I>&gt;<i> and local user data:
+</I>&gt;<i> * it must be able to authenticate from an outside source
+</I>&gt;<i> * it must be able to manage primary email change (we used a
+</I>&gt;<i> &quot;customer_id&quot; at Mandriva, a 64 char id that allowed to change both
+</I>&gt;<i> email and login at will without losing user reference; would that
+</I>&gt;<i> match the uid?)
+</I>
+It would be possible to rename the user account, but most applications will be
+using the &quot;login&quot; as the key to store preferences. LDAP has entryUUID to allow
+tracking of entries across renames, but ... most application supporting LDAP
+authentication will use the login name for keying user information. Getting
+applications to use a different attribute for this is more of a challenge.
+
+How important is it to be able to allow changes to the 'login'?
+
+(Of course, this motivates against using email address as login).
+
+&gt;<i> * it must be able to update, if needed, locally cached data that
+</I>&gt;<i> source from the central repository.
+</I>&gt;<i>
+</I>&gt;<i> To some extent, it could even have the ability to manage a central
+</I>&gt;<i> session server, but that may be left for a later time (and can
+</I>&gt;<i> actually be managed almost separately once the central auth is done).
+</I>&gt;<i>
+</I>&gt;<i> (we may use OAuth and OpenID auth at a later time for web apps. That
+</I>&gt;<i> shouldn't have an impact on the above (and below) authentication
+</I>&gt;<i> scheme anyway)
+</I>&gt;<i>
+</I>&gt;<i> So what about apps that do not support this scheme? We patch them so
+</I>&gt;<i> they do (and we do it the clean way). Puts more constraints on the
+</I>&gt;<i> dev/admin side, for sure; but again, the rationale is to provide a
+</I>&gt;<i> consistent interface to the user with easiest to remember items (email
+</I>&gt;<i> then, instead of login). And that forces us to find a consistent
+</I>&gt;<i> protocol that is already (or should be) implemented in our apps.
+</I>
+Cost/benefit for supporting login changes?
+
+&gt;<i> #3. Sympa
+</I>&gt;<i>
+</I>&gt;<i> As for sympa, that's a particular exception in that it uses the same
+</I>&gt;<i> email address as an identity token and as an contact address (or could
+</I>&gt;<i> it authenticate against a primary email address and use a second one,
+</I>&gt;<i> returned by the directory, to post mails to? requires sync from time
+</I>&gt;<i> to time). It is tricky (but no unfeasible I guess, it just asks the
+</I>&gt;<i> problem to be properly laid out) and I would leave the sympa setup
+</I>&gt;<i> separate at first, with the possibility to later make a soft link
+</I>&gt;<i> between a LDAP account (being able to ask sympa &quot;for this email, what
+</I>&gt;<i> do you have?&quot;) and experiment safely with a proper integration. This
+</I>&gt;<i> just to move forward withouth putting too long a delay on production
+</I>&gt;<i> release. That would mean, at first, let people authenticate/subscribe
+</I>&gt;<i> on Sympa using only local Sympa db.
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> #4. Email as an id
+</I>&gt;<i>
+</I>&gt;<i> As to objections on using the email as an id:
+</I>&gt;<i> * I didn't mean that forum should use local accounts instead of LDAP
+</I>&gt;<i> ones, the contrary actually; what it takes is that the account
+</I>&gt;<i> registration procedure must be routed to identity, instead of the
+</I>&gt;<i> regular forum process; and that the forum auth mechanism must handle
+</I>&gt;<i> on-the-fly creation of a local account from a valid LDAP account;
+</I>
+I logged in to the test forum setup with only my account in LDAP, without
+problems. So, only username/password aspects (registration, password change,
+password reset) must be redirect to identity. Bugzilla is already configured
+to reject password change or registration, with a message to visit
+identity.mageia.org.
+
+&gt;<i> * I am not sure to see the issue with gmane/mail archive?
+</I>&gt;<i> * if having a big LDAP is an issue (why would it be?) then LDAP is
+</I>&gt;<i> not the solution for a central auth directory (and that would be
+</I>&gt;<i> ironic somehow)
+</I>
+Uh, we agreed earlier that we would have at least one slave, which would be
+used for internet-facing stuff, and at least one directory server (e.g.
+master) which is not used for internet-facing stuff, to ensure admin access
+works even in the case of a DoS.
+
+&gt;<i> * using email as a login, we obviously must have emails editable
+</I>&gt;<i> separately in LDAP, test their unicity within their own scope (being a
+</I>&gt;<i> primary email, or a secondary one is not the same), should have a
+</I>&gt;<i> validity status from one (that is, making sure someone ends up reading
+</I>&gt;<i> a message posted to it).
+</I>&gt;<i> * when we decided to use the email as the id for Mandriva web
+</I>&gt;<i> services, the biggest problem that arose in the end was: would it work
+</I>&gt;<i> for authenticated HTTP urls, like:
+</I>&gt;<i> <A HREF="https://user@domain.tld:password@server.domain.tld/">https://user@domain.tld:password@server.domain.tld/</A> (so it would work
+</I>&gt;<i> for private downloads)? It does (wget does it; curl has hiccups about
+</I>&gt;<i> it that can be easily worked out (escape the first @ or parse the url
+</I>&gt;<i> to provide ids as arguments)).
+</I>
+Consider though using a modifiable attribute as the key for storing all other
+applications configuration.
+
+&gt;<i> I don't think we should provide @mageia.org email at large, for the
+</I>&gt;<i> same arguments as misc's.
+</I>
+This is an issue unrelated to LDAP and what attribute to use for
+authentication IMHO, but has implications for LDAP (alias maps etc.).
+
+Regards,
+Buchan
+</PRE>
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000899.html">[Mageia-sysadm] [LONG] sympa ( and web apps ) ldap authentication
+</A></li>
+ <LI>Next message: <A HREF="000915.html">[Mageia-sysadm] [LONG] sympa ( and web apps ) ldap authentication
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#951">[ date ]</a>
+ <a href="thread.html#951">[ thread ]</a>
+ <a href="subject.html#951">[ subject ]</a>
+ <a href="author.html#951">[ 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>