Re: Kerberos authent implementation

2018-09-13 Thread Benjamin SOULAS
Thanks a lot for your response, we use django-auth-ldap too, for openldap, 
but for regular AD, I am still waiting some stuff, I started to modify my 
settings.py, hope this works.

No problem for Kerberos, maybe someone will read my post and give advices !

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/63052bee-c4b1-4cd6-aeab-d6c6107f98fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Kerberos authent implementation

2018-09-13 Thread Matthew Pava
Hi Benjamin,
If it’s any help to you, we use LDAP through Active Directory for our 
authentication system.  We use the django-auth-ldap package.  It’s been a 
little tricky with the upgrade to Python 3/Django 2, but it’s quite manageable.
Unfortunately, I can’t help you much with Kerberos authentication.

From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of Benjamin SOULAS
Sent: Thursday, September 13, 2018 9:37 AM
To: Django users
Subject: Re: Kerberos authent implementation

No problem. I have to develop an app for customers assuming they can have 
different authentication system (just for information: I am discovering LDAP, 
RADIUS, Kerberos and others for a few days, I don't have skills in that).

The aim of our app is to adapt itself depending if the customer has an OpenLDAP 
authentication system, an Active Directory authentication system, Kerberos, 
Kerberos + LDAP (I don't really understand that one ...as I understood, 
Kerberos is just a communication protocol based on tickets), RADIUS 
authentication system.

So for now, I successfully authenticate OpenLDAP users (Active Directory is 
coming), but I need to investigate every possibilities, which django packages 
are available or not (if they exists, do they suits our needs, if not, how to 
write our own backends)

Kind regards,

Benjamin.
--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
django-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eff01ad3-6969-481c-9fd5-90ac4ef79692%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cde1d9b8d0134a56a27bb6d470a5ec17%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.


Re: Kerberos authent implementation

2018-09-13 Thread Benjamin SOULAS
No problem. I have to develop an app for customers assuming they can have 
different authentication system (just for information: I am discovering 
LDAP, RADIUS, Kerberos and others for a few days, I don't have skills in 
that).

The aim of our app is to adapt itself depending if the customer has an 
OpenLDAP authentication system, an Active Directory authentication system, 
Kerberos, Kerberos + LDAP (I don't really understand that one ...as I 
understood, Kerberos is just a communication protocol based on tickets), 
RADIUS authentication system.

So for now, I successfully authenticate OpenLDAP users (Active Directory is 
coming), but I need to investigate every possibilities, which django 
packages are available or not (if they exists, do they suits our needs, if 
not, how to write our own backends)

Kind regards,

Benjamin.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eff01ad3-6969-481c-9fd5-90ac4ef79692%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Kerberos authent implementation

2018-09-13 Thread Matthew Pava
What would be the motivation for Kerberos authentication?  Why not just use 
LDAP authentication?  Just wondering for my own edification.

From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of Benjamin SOULAS
Sent: Thursday, September 13, 2018 9:20 AM
To: Django users
Subject: Kerberos authent implementation

Hello every one,

I would like to test Kerberos authentication. Can someone give me advices? I 
saw Django-kerberos and django-auth-kerberos, but there are not much 
maintenairs on those, so is it more appropriate to develop my own Django 
Backend to handle this authentication?

I don't see much documentation (or full tutorial), any advices is welcome :)

Kind regards.

Benjamin
--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
django-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/db11d982-7599-47f7-878e-0922c19c288f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0fbebfe9b8a246658999e8289eff3eff%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.


Kerberos authent implementation

2018-09-13 Thread Benjamin SOULAS
Hello every one, 

I would like to test Kerberos authentication. Can someone give me advices? 
I saw Django-kerberos and django-auth-kerberos, but there are not much 
maintenairs on those, so is it more appropriate to develop my own Django 
Backend to handle this authentication?

I don't see much documentation (or full tutorial), any advices is welcome :)

Kind regards.

Benjamin

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/db11d982-7599-47f7-878e-0922c19c288f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: username on URL with Class Based Views

2018-09-13 Thread Ricardo Cataldi
Nice! Thanks a lot!

On Thu, Sep 13, 2018 at 8:45 AM Jason  wrote:

> return redirect('settings:profile')
>
>
> The issue is this.  you're telling Django to hit up that URL, but you
> don't specify the username for that.
>
> Something like this would be required:  return
> redirect('settings:profile', args=(username,))
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/805978e9-ff92-4acb-b536-f1d1efa29f30%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKfhJYkf8h1V%2B7P0QHixRZyaH0DNXGFDvY9%3DdL35_j3HZN83AQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: note matching query does not exist.

2018-09-13 Thread Yash Thakkar
I’m agree with you that you should use filter(). Or you can use
objectname.DoesNotExist as an exception.

On Thu, Sep 13, 2018 at 7:07 AM Manuel Alejandro Garrido Gongora <
nolodelato...@gmail.com> wrote:

> It is likely because you are getting a directly on an object that probably
> does not exist in the database, I recommend that you use it instead of get
> filter (). first () or the method get_object_or_404 from django Regards
>
> Enviado desde mi iPhone
>
> El 12 sept 2018, a las 19:43, Gear Crew 
> escribió:
>
> what's the problem I sure no any error in code
>
> 
>
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0de12f97-7541-4aba-a280-adae62dd7c5a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
> 
>
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/E1370835-D55F-40B0-864B-D09CDE5A6CE3%40gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFBVQh_jSZGAFCV4UuEAj5M0wQ5kSQA_78r0VzvK67P6PSvt%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: note matching query does not exist.

2018-09-13 Thread Manuel Alejandro Garrido Gongora
It is likely because you are getting a directly on an object that probably does 
not exist in the database, I recommend that you use it instead of get filter 
(). first () or the method get_object_or_404 from django Regards

Enviado desde mi iPhone

> El 12 sept 2018, a las 19:43, Gear Crew  
> escribió:
> 
> what's the problem I sure no any error in code
> 
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/0de12f97-7541-4aba-a280-adae62dd7c5a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/E1370835-D55F-40B0-864B-D09CDE5A6CE3%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: username on URL with Class Based Views

2018-09-13 Thread Jason


return redirect('settings:profile')


The issue is this.  you're telling Django to hit up that URL, but you don't 
specify the username for that.

Something like this would be required:  return redirect('settings:profile', 
args=(username,))

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/805978e9-ff92-4acb-b536-f1d1efa29f30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.