Hello, Bino

First of all, thank you for your interest in Django. If you can, please
take a moment to read our FAQ on getting help regarding Django:
https://docs.djangoproject.com/en/dev/faq/help/ It should prove valuable in
the future.

Questions about using django belong in the django-users mailing list. The
django-developers list is restricted to questions regarding the development
of Django itself. Please don't consider it a second-tier helpdesk.

If you haven't received an answer in django-users after about a week has
passed since your original question, you are free to ask again in the same
list *one more time*. As you know,  django-users is made up of volunteers
like you and me, and sometimes people are just in a busy period so they
can't answer your question immediately. Sometimes it's even harder to get
replies over the weekend to, when people usually dedicate their spare time
to other ventures.

Additionally, you might benefit from writing questions in a format that
makes it easier (and more likely) for volunteers to help you. Please see:
https://code.djangoproject.com/wiki/UsingTheMailingList

Finally, If you feel the mailing list isn't working for you, then I highly
recommend the #django channel on the freenode IRC network, but not before
reading this FAQ in its entirety: https://code.djangoproject.com/wiki/IrcFAQ


Best regards,
AT


On Mon, Feb 25, 2013 at 5:01 AM, bino <[email protected]> wrote:

> Dear all.
>
> I apologie for posting this question here, but I got no response from
> django-users.
>
> I try to make my own Authentication-backend, I'll call it l2auth (2nd
> Level Auth).
> What I want in this application is
> - Use by multi companies that bussiness relation between them
> - I want to delegate user/group administaration to each company
> - Users will login using loginname as 'username@company'. It's not an
> email, it's more like 'realm'
> - more or less just like https://github.com/bennylope/django-organizations
> ,
> but I dont want 'end-users' to touch core User/Group model/table.
>
> 1. I post settings.py, models.py, backends.py in a single pastebin at
> http://pastebin.com/srkLWQLi
>
> 2. I made a shell test using :
> -----START-----------
> from l2auth.models import *
> from l2auth.backends import L2Backend
> print 'List of Companies ', Company.objects.all()
>
> myauth=L2Backend()
>
> aa=myauth.authenticate('binonet01@binonet','1111')
> myauth.get_group_permissions(aa)
>
> for atr in aa.__dict__.keys() :
>     print '%s = %s' %(atr, getattr(aa,atr))
>
> -----STOP------------
>
> and the result at : http://oi48.tinypic.com/64e6wx.jpg
> looks like ok.
>
> 3. but when I try to login via web using the same loginname and
> password, I got response as http://oi49.tinypic.com/143glyx.jpg
>
> Kindly please give me your enlightment to fix this problem
>
> Sincerely
> -bino-
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-developers?hl=en
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to