On 3/7/06, Matt <[EMAIL PROTECTED]> wrote: > > I've read about a 'hack' Jason Huggins posted a month ago. He > implements LDAP support for his Django app, but it requires every user > to be in both LDAP and the user database table. This seems pointless > to me. Either you use Django's built-in database authentication or you > use LDAP, not both. > > In my case, I want LDAP because we already have users in the directory. > We don't want to force users to create new accounts just for the web > app I will be building, and copying account info to the database is > simply out of the question -- only one directory is necessary. > > If incorporating LDAP authentication into a Django app is not possible > without duplicating (eww) account information in the database, then I'm > afraid I'll have to resort to Ruby on Rails because it has > well-documented LDAP support. I would really prefer to use Django > because Python has been much easier for me to pick up compared to Ruby.
It really depends on what parts of Django you want to use. Right now, the admin system is intimately tied into django permissions, groups, and users, which are all implemented in Django models. I'm currently working on this, and I have code that authenticates against different backends, but to work with the admin system, it needs to fake a django user for every request. If you aren't using the admin system, there is nothing stopping you from using ldap and implementing your own security model. URLs, the ORM, templates, caching, views, etc. are all totally independent from authentication. I'm not sure what rails offers in that department. Links to the relevent rails+ldap documents would be much appreciated :) Joseph --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---