Re: python-ldap - Operations Error

2008-04-25 Thread Michael Ströder
[EMAIL PROTECTED] wrote: Thanks for the help guys, it works! I used the ldap.set_option(ldap.OPT_REFERRALS, 0) from http://peeved.org/blog/2007/11/20/ Hmm, maybe I should generally switch off referral chasing in python-ldap forcing applications to enable it if needed overriding libldap's

Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder
Jason Scheirer wrote: On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote: Hello all, I am trying to integrate TurboGears with our Active Directory here at the office. TurboGears aside, i cannot get this to work. Seems more promising: http://tgolden.sc.sabren.com/python/active_directory.html This

Re: python-ldap - Operations Error

2008-04-24 Thread Tim Golden
Michael Ströder wrote: Jason Scheirer wrote: On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote: Hello all, I am trying to integrate TurboGears with our Active Directory here at the office. TurboGears aside, i cannot get this to work. Seems more promising:

Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder
[EMAIL PROTECTED] wrote: import ldap l = ldap.initialize(ldap://server.net;) l.simple_bind(DN, secret) 1 ^^^ You probably want to use the synchronous method simple_bind_s() since you want to impersonate on this LDAP connection immediately before doing anything else on that

Re: python-ldap - Operations Error

2008-04-24 Thread theiviaxx
Thanks for the help guys, it works! I used the ldap.set_option(ldap.OPT_REFERRALS, 0) from http://peeved.org/blog/2007/11/20/ immedialtey after import, then did the initialize trace_level=2 and did the simple_bind_s. I was able to search and get the results. That trace_level thing is nice, i'm

Re: python-ldap - Operations Error

2008-04-24 Thread t . a . adjuster
On Apr 24, 2:02 pm, [EMAIL PROTECTED] wrote: Not sure if this is an AD thing or just something i needed to do with our particular server/config. Glad to hear my posting helped somebody. In our case, our domain controller was passing us referrals to the Configuration, ForestDNSZones, and

python-ldap - Operations Error

2008-04-23 Thread theiviaxx
Hello all, I am trying to integrate TurboGears with our Active Directory here at the office. TurboGears aside, i cannot get this to work. The simplest thing i can do to test this is: import ldap l = ldap.initialize(ldap://server.net;) l.simple_bind(DN, secret) 1 l.result(1) (97, [])

Re: python-ldap - Operations Error

2008-04-23 Thread Jason Scheirer
On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote: Hello all, I am trying to integrate TurboGears with our Active Directory here at the office.  TurboGears aside, i cannot get this to work.  The simplest thing i can do to test this is: import ldap l = ldap.initialize(ldap://server.net;)

Re: python-ldap - Operations Error

2008-04-23 Thread theiviaxx
Thanks for that last link, i'll try that tomorrow :) As for the tgolden modules, i will use that in a pinch, but it means our server has to be a windows box. just trying to keep this as open as possible :) Thanks again -- http://mail.python.org/mailman/listinfo/python-list