stupidgeek wrote:
> David, you are a champ, thank you.
> I find it strange that this made the difference, since this line is in
> the docs:
>
> "The get_user method takes a user_id -- which could be a username,
> database ID or whatever -- and returns a User object."
>
We-ell, the "user_id" it
David, you are a champ, thank you.
I find it strange that this made the difference, since this line is in
the docs:
"The get_user method takes a user_id -- which could be a username,
database ID or whatever -- and returns a User object."
But, making the change to user_id worked just fine. For ev
stupidgeek wrote:
> def get_user(self, username):
> try:
>user = User.objects.get(username=username)
>print user
>return user
> except User.DoesNotExist:
> return None
>
Note part of the auth backend protocol AFAICS involves c
Hi Peter,
Thanks for your input, but I am afraid to say that you are indeed
wrong =( Ha.
The user that I am trying to login as (me) has superuser premissions;
by no errors, I mean that I get a plain login form - no red box
telling me something went wrong.
Thanks again for the input, and I'll gr
On 08/12/2009 11:17 AM, stupidgeek wrote:
> Hi all,
>
> I'm having a strange problem. I wrote a basic LDAP backend, to
> authenticate users against our open directory server:
>
> [snip]
>
> Note that the print user line works, so a valid user is being
> returned, meaning the bind works just f
Hi all,
I'm having a strange problem. I wrote a basic LDAP backend, to
authenticate users against our open directory server:
from django.contrib.auth.models import User
import ldap
import ldap.sasl
class LDAPBackend:
def authenticate(self, username=None, password=None):
if username
6 matches
Mail list logo