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";)
> >>> l.simple_bind(DN, "secret")
> 1
> >>> l.result(1)
> (97, [])
> >>> l.search("dc=server,dc=net", ldap.SCOPE_SUBTREE, "(sAMAccountName=user)")
>
> OPERATIONS_ERROR: {'info': '00000000: LdapErr: DSID-0C090627, comment:
> In order to perform this operation a successful bind must be completed
> on the connection., data 0, vece', 'desc': 'Operations error'}
>
> The simple bind works fine and returns a result, when i get the
> result, it returns 97 meaning successful.  So there was a successful
> bind on the connection, right?  I'm really not sure where the problems
> lies.  Is it with the way im connecting or is it something to do with
> our AD server?
>
> Thanks

Seems more promising: http://tgolden.sc.sabren.com/python/active_directory.html

Also, same problem: 
http://groups.google.com/group/turbogears/browse_thread/thread/10fcd1f9e920d0a8

Also: http://peeved.org/blog/2007/11/20/

Google is pretty awesome when you paste in literal error strings.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to