Tjaart de Beer wrote:
> Hi
>
> We have an LDAP server running and want to use it to authenticate poeple
> for a TG project. I have scoured the web looking for examples of LDAP
> use in TG but only came across two posts which helped me (sort of). The
> two scripts, soldapprovider.py and ldapprovider.py are giving me a problem.
>
> If someone could help with the following issues:
> 1. Which of the two scripts is the best to use?
>
> 2. Which files must be altered and what must be put where?
>    (After a while I realised that you have to put the scripts in TG's
>                                                           directory
> under identity, add it in TG's setup.py and then rebuild it. This was
> not said in any documentation. I also have to add a few lines in app.cfg
> to give the LDAP host name etc.)
>
> 3. What does "turbogears.identity.soprovider.autocreate" do in
> soldapprovider.py?
>
> 4. It seems, to me at least, that in order to authenticate a user with
> LDAP, the user needs to be in the local, TG created database as well.
> Only when I add the user there, do I get any type of response from LDAP.
>
> E.g.
>   user XXX is IN tg_users table in local db. When I try to authenticate,
> I get "No such LDAP user: XXX". When the user is NOT in the tg_users
> table, I get "No such user: XXX".
>
> This implies to me that the user needs to be on LDAP as well as in a
> local tg_users db. Am I correct in this assumption?
>
> Any help will be very much appreciated!! Thanks!
>
>
> --
> Tjaart de Beer
> Bioinformatics and Computational Biology Unit
> Department Biochemistry
> FABI Square/Bioinformatics building
> Faculty of Natural Sciences
> University of Pretoria
> Lynwood rd
> Pretoria
> South Africa
> 0001
>
> Tel:    +27 12 420 5802
> Cell:   +27 83 504 7914
> Fax:    +27 12 420 5800
> Email:  [EMAIL PROTECTED]
>       [EMAIL PROTECTED]
>
> ---------
> The software required "Windows XP or better" ... so I installed Linux

There seems to have been a lot of discussion of LDAP on the mailing
list. You may want to poke through a search on that and see if you can
find anything. Some of the Identity stuff in the documentation and on
the wiki at trac.turbogears.org discusses writing your own provider,
which may help you understand what these ldap implementations are doing.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to