Re: Managing users through Admin app

2007-03-29 Thread Thom Allen
OK, so your suggestion worked. I used the example code and added my LDAP code into one authentication module and it worked great. Here is the code I used in the end. I'll add a code snippet if possible for others to use. http://www.djangosnippets.org/snippets/142/ Portions of my code were used fr

Re: Managing users through Admin app

2007-03-29 Thread Forest Bond
On Thu, Mar 29, 2007 at 12:42:34PM -, RajeshD wrote: > The idea with the above snippet is that when you add a user, you would > enter a valid username as well as an email address. The user can then > login by entering either the username or the email address in the > admin login screen. That lo

Re: Managing users through Admin app

2007-03-29 Thread Thom Allen
OK, I think I understand. It's not a replacement for the username it just allows a user to enter either jimbob or [EMAIL PROTECTED] I think I got it. Trying it as we speak. Thanks for the help. --Thom On 3/29/07, RajeshD <[EMAIL PROTECTED]> wrote: > > > Hi Thom, > > On Mar 28, 10:13 pm, "Thom All

Re: Managing users through Admin app

2007-03-29 Thread RajeshD
Hi Thom, On Mar 28, 10:13 pm, "Thom Allen" <[EMAIL PROTECTED]> wrote: > I'll try it with just the one backend, but maybe I haven't explained my > problem correctly. This won't fix the problem. Multiple authentication backends are supported by Django (it just tries them all in succession and stop

Re: Managing users through Admin app

2007-03-28 Thread Thom Allen
I'll try it with just the one backend, but maybe I haven't explained my problem correctly. In the Admin application there is a link to Users. When clicking on Users, I am presented with a list of records from the auth_users table. I click on Add New User, attempt to put [EMAIL PROTECTED] as the US

Re: Managing users through Admin app

2007-03-28 Thread Chris Moffitt
Thom wrote: > OK, so here is some code, because I tried this and still no go; > > in my project settings.py I have this code: > > AUTHENTICATION_BACKENDS = ( > 'pi.apps.email-auth.EmailBackend', > 'pi.apps.authenticate.LDAPAuthenticate', > 'django.contrib.auth.backends.ModelBackend', > ) > > I

Re: Managing users through Admin app

2007-03-28 Thread Thom
OK, so here is some code, because I tried this and still no go; in my project settings.py I have this code: AUTHENTICATION_BACKENDS = ( 'pi.apps.email-auth.EmailBackend', 'pi.apps.authenticate.LDAPAuthenticate', 'django.contrib.auth.backends.ModelBackend', ) I put the email-auth.py in my APP

Re: Managing users through Admin app

2007-03-28 Thread RajeshD
On Mar 28, 5:15 pm, "Thom" <[EMAIL PROTECTED]> wrote: > Thanks for pointing me to the snippets, however, this doesn't seem to > work in the built in Admin Application. Any other thoughts? Actually, that should work from the Admin application too. The Admin app uses the same set of authenticatio

Re: Managing users through Admin app

2007-03-28 Thread Thom
Thanks for pointing me to the snippets, however, this doesn't seem to work in the built in Admin Application. Any other thoughts? --Thom On Mar 28, 2:37 pm, "RajeshD" <[EMAIL PROTECTED]> wrote: > See this Django Snippet by Chris: > > http://www.djangosnippets.org/snippets/74/ --~--~-~-

Re: Managing users through Admin app

2007-03-28 Thread RajeshD
See this Django Snippet by Chris: http://www.djangosnippets.org/snippets/74/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com

Managing users through Admin app

2007-03-28 Thread Thom
I want to manage users through the default Admin application, but I need to be able to use an email address as the username. I've searched the forums to no avail, modified validation code to allow isAlphaNumericURL, to no avail. Any direction would be appreciated. Thanks. --Thom --~--~-