Hi Frank,

Nice "recipe"....
May be it could be added at: http://docs.turbogears.org/1.0#recipes
for future easy reference.

Thanks,
/venkat


On Dec 17, 9:52 am, Frank Slotta <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Here comes a short description how to authenticate against an LDAP
> server, because i needed one. :-)
>
> - Create an account to authenticate both in the Turbogears project and
> your LDAP server. Use the same username.
> - Add the following entry in dev.cfg or app.cfg:
> identity.provider='soldapprovider'
> - Edit the file 'entry_points.txt' in your python installation directory
> e.g.:
> /usr/lib/python/site-packages/TurboGears-1.0.3.2-py2.5.egg/EGG-INFO/entry_points.txt
> - Search the block: [turbogears.identity.provider]
> - Add the following entry:
> soldapprovider = turbogears.identity.soldapprovider:SoLdapIdentityProvider
> - Add the file 'soldapprovider.py' to your TurboGears Installation e.g.:
> /usr/lib/python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/turbogears/identity/soldapprovider.py
> - You can find the file here:http://docs.turbogears.org/1.0/IdentityManagement
> - Edit the following lines according to your LDAP environment:
> self.host = get("identity.soldapprovider.host", "localhost")
> self.port = get("identity.soldapprovider.port", 389)
> self.basedn  = get("identity.soldapprovider.basedn", "dc=localhost")
> - Edit the line 'filter = "(sAMAccountName=%s)" % user_name' according
> to your LDAP server e.g.:
> 'filter = "(uid=%s)" % user_name'
> - Now you have to use your LDAP password for authentication against your
> TurboGears project
>
> I hope this could be useful, please send suggestions if something is
> wrong or obsolete.
>
> Frank
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to