[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
def
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 Domai
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 su
[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 th
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:
http://tgolden.sc.sabren.com/python/activ
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 i
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
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.ne
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)
(