Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion create users from /etc/passwd?

Received: by 10.68.73.229 with SMTP id o5mr3357327pbv.7.1328225585337;
        Thu, 02 Feb 2012 15:33:05 -0800 (PST)
X-BeenThere: django-users@googlegroups.com
Received: by 10.68.14.101 with SMTP id o5ls14350154pbc.4.gmail; Thu, 02 Feb
 2012 15:32:45 -0800 (PST)
Received: by 10.68.226.10 with SMTP id ro10mr3360395pbc.6.1328225565830;
        Thu, 02 Feb 2012 15:32:45 -0800 (PST)
Received: by 10.68.226.10 with SMTP id ro10mr3360394pbc.6.1328225565821;
        Thu, 02 Feb 2012 15:32:45 -0800 (PST)
Return-Path: <mi...@dewhirst.com.au>
Received: from mail.turbonet.com.au (mail.turbonet.com.au. [203.17.237.132])
        by gmr-mx.google.com with ESMTP id n6si5414633pbg.2.2012.02.02.15.32.45;
        Thu, 02 Feb 2012 15:32:45 -0800 (PST)
Received-SPF: neutral (google.com: 203.17.237.132 is neither permitted nor denied by best guess record for domain of mi...@dewhirst.com.au) client-ip=203.17.237.132;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 203.17.237.132 is neither permitted nor denied by best guess record for domain of mi...@dewhirst.com.au) smtp.mail=mi...@dewhirst.com.au
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mail.turbonet.com.au (Postfix) with ESMTP id CC3A622416A
	for <django-users@googlegroups.com>; Fri,  3 Feb 2012 10:32:42 +1100 (EST)
X-Virus-Scanned: amavisd-new at legion.com.au
X-Spam-Flag: NO
X-Spam-Score: -0.924
X-Spam-Level: 
X-Spam-Status: No, score=-0.924 tagged_above=-999 required=5
	tests=[ALL_TRUSTED=-1.44, AWL=0.516]
Received: from mail.turbonet.com.au ([203.17.237.132])
	by localhost (santa.legion.com.au [127.0.0.1]) (amavisd-new, port 10030)
	with LMTP id qA7TILQ5aXNT for <django-users@googlegroups.com>;
	Fri,  3 Feb 2012 10:32:42 +1100 (EST)
Received: from [192.168.0.50] (unknown [203.25.139.148])
	by mail.turbonet.com.au (Postfix) with ESMTP id 38E68224167
	for <django-users@googlegroups.com>; Fri,  3 Feb 2012 10:32:40 +1100 (EST)
Message-ID: <4F2B1E6C.3000008@dewhirst.com.au>
Date: Fri, 03 Feb 2012 10:38:20 +1100
From: Mike Dewhirst <mi...@dewhirst.com.au>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-Version: 1.0
To: django-users@googlegroups.com
Subject: Re: create users from /etc/passwd?
References: <20746891.537.1328197650965.JavaMail.geo-discussion-forums@vbil20> <4F2AB92A.9030...@gmx.net> <27146696.976.1328212824012.JavaMail.geo-discussion-forums@vbkh4>
In-Reply-To: <27146696.976.1328212824012.JavaMail.geo-discussion-forums@vbkh4>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 3/02/2012 7:00am, Tim wrote:
> Thanks for all this great information. Thorsten, I do have hope that
> 'pam' will solve the problem, but if I get nowhere with that, Furbee's
> links and info will help me go further; I just didn't want the user to
> have to sign on twice when I don't really care about authentication,
> just user identification. In any case, I'm reading those docs now, and
> the blog article.
>
> David, I wish I could do this via the LDAP set up but as far as I can
> tell there isn't one.

You can.

If you accept that users will have to authenticate in your Django app 
then if you use ldap you won't have to worry about passwords at all. 
They will enter the same username and password they usually do when they 
power up their workstations.

I have used Peter Herndon's django-ldap-groups very successfully to do 
just that. It will create a new user including any ldap groups you set 
up for Django based entirely on successful ldap authentication. It will 
bring whatever ldap info across to Django that you require.

Mike

>
> thanks again!
> --Tim
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/mNmX0CImKo8J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.