Hello,

thank you for your help. I can see an error now when trying to access a
page ... the error is:

Oops...

Trac detected an internal error:

argument 2 must be string or read-only buffer, not None
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py",
line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in
dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 80, in
dispatch
    req.perm = PermissionCache(self.env, req.authname)
  File "/usr/lib/python2.4/site-packages/trac/perm.py", line 276, in __init__
    self.perms = PermissionSystem(env).get_user_permissions(username)
  File "/usr/lib/python2.4/site-packages/trac/perm.py", line 132, in
get_user_permissions
    for perm in self.store.get_user_permissions(username):
  File "/usr/lib/python2.4/site-packages/trac/perm.py", line 208, in
get_user_permissions
    subjects += list(provider.get_permission_groups(username))
  File "/usr/lib/python2.4/site-packages/ldapplugin/model.py", line 107,
in get_permission_groups
    ldapgroups = self._get_user_groups(username)
  File "/usr/lib/python2.4/site-packages/ldapplugin/model.py", line 148,
in _get_user_groups
    ldap_groups = self._ldap.get_groups()
  File "/usr/lib/python2.4/site-packages/ldapplugin/model.py", line 528,
in get_groups
    groups = self.get_dn(self.basedn, 'objectclass=' + self.groupname)
  File "/usr/lib/python2.4/site-packages/ldapplugin/model.py", line 543,
in get_dn
    sr = self._search(basedn, filterstr, ['dn'], ldap.SCOPE_SUBTREE)
  File "/usr/lib/python2.4/site-packages/ldapplugin/model.py", line 618,
in _search
    self._open()
  File "/usr/lib/python2.4/site-packages/ldapplugin/model.py", line 603,
in _open
    self._ds.simple_bind_s(self.bind_user, self.bind_passwd)
  File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 175, in
simple_bind_s
    msgid = self.simple_bind(who,cred,serverctrls,clientctrls)
  File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 169, in
simple_bind
    return
self._ldap_call(self._l.simple_bind,who,cred,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls))
  File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 94, in
_ldap_call
    result = func(*args,**kwargs)
TypeError: argument 2 must be string or read-only buffer, not None

Does the problem consists of the fact that there are not control-tuples?

I'm using the latest subversion-version of the ldap-plugin together with
Trac 0.9.5. Is this ok? Which version should I maybe use?

Thank you and greetings,

Michel

>
> The plugin dumps some debug information to the Trac log file.
> If not already done, you can check the content of this file to see
> whether the plugin has printed out some error messages.
>
> What's the content of your [ldap] section (from the trac config file)?
>
> Cheers,
> Manu
>
> On 9/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
>>
>> Hello,
>>
>> I'm trying to use the trac-ldap-plugin with active directory. I used the
>> ldapsearch-tool to browse the complete the directoy. I know that that
>> works. However, I can't see any network-traffic to the ldap-server when
>> using the ldap-trac-plugin. Is there any way I can get more output from
>> the plugin to see what is going wrong?
>>
>> Thank you and greetings,
>>
>> Michel
>>
>>
>> >
>>
>
>
> --
> Manu
>
> >
>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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/trac-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to