Thinking about Kevin's idea (2).
What if I make plone export to the right mysql table
(auth_user, DATABASE_NAME 'myapps' for example) the fields:
id | username | first_name | last_name | email | password
| is_staff | is_active | is_superuser |
last_login | date_joined
Should it work right? Except for one thing that I didn't figure out yet how
to solve: field password which in plone is raw and if django db should
be hashtype$salt$hash.
Any comments?
Alan
On Fri, Feb 20, 2009 at 11:22, Alan <[email protected]> wrote:
> Hi there, thanks for your replies.
> Yes, Malcolm, I am reading this doc and following some discussion about
> ldap authentication, but Kevin got the right point.
>
> I will read more about backend authentication in django and then I will
> check in plone (even plone-list) about ideas besides the ones Kevin
> mentioned.
>
> At first, Kevin's idea (1), we have something similar here for another
> portal application, but not really secure since it write down to a file
> (just the users) and then granted access to users who in that list (but it's
> not real authentication since the user is not specified).
>
> And AFAIU Malcolm, if using (1), I still need to use django api to create
> the object user (if plone external method returns TRUE), right?
>
> Well, let's see what can I get first.
>
> Cheers,
> Alan
>
>
> On Thu, Feb 19, 2009 at 23:29, Kevin Audleman <[email protected]>wrote:
>
>>
>> Tricky...how do you write a method in Django that can query Plone for
>> the existence of a user? A couple of thoughs:
>>
>> 1. Design an external method in Plone that takes a username/password
>> and returns true/false
>> 2. Extend Plone to copy the users to a SQL table that you can then
>> access natively in Django.
>>
>> Hopefully somebody out there has a more flushed out idea.
>>
>> Kevin
>>
>> On Feb 19, 2:20 am, Alan <[email protected]> wrote:
>> > Hi There,
>> >
>> > We have Plone/Zope site for CMS and users registration. It came before
>> > django for us. But now we are developing portal applicatons done with
>> django
>> > (much better to develop and maintain) and we have this question now: how
>> to
>> > allow a user to login in django portal using his/her login and pass from
>> > Plone, including new users that would register at Plone and then access
>> to
>> > django portals automatically.
>> >
>> > Any idea here would be very appreciated.
>> >
>> > Many thanks in advance.
>> > Alan
>> >
>> > --
>> > Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
>> > Department of Biochemistry, University of Cambridge.
>> > 80 Tennis Court Road, Cambridge CB2 1GA, UK.
>> >
>> > >>http://www.bio.cam.ac.uk/~awd28<<
>> >>
>>
>
>
> --
> Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
> Department of Biochemistry, University of Cambridge.
> 80 Tennis Court Road, Cambridge CB2 1GA, UK.
> >>http://www.bio.cam.ac.uk/~awd28<<
>
--
Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
Department of Biochemistry, University of Cambridge.
80 Tennis Court Road, Cambridge CB2 1GA, UK.
>>http://www.bio.cam.ac.uk/~awd28<<
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---