id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
10673,Configuring dir_scope,myingling,sandinak,I was about to give up on this plugin until I discovered the dir_scope option.  It's mentioned in the source but not (currently) in the configuration example.  It defaults to 1_ but for some reason that never allowed users to be found in my schema.  I set it to 2_ which started working_ but I had to patch the code.  I kept getting errors about requiring integers instead of unicode_ so I wrapped each use of scope inside _dir_search with int().  (r12025 of auth.py)  This finally allowed my users to be authenticated_ and group permissions are working too (at lead the TRAC_ADMIN group).  I've been looking for this functionality for a long time_ so thank you!\r\n\r\nThe source documents dir_scope to have values of 0_ 1_ 2_ which correspond in theory to the LDAP Python module's ldap.SCOPE_BASE_ ldap.SCOPE_ONELEVEL_ ldap.SCOPE_SUBTREE.  While those values are unlikely to change_ perhaps a lookup from the number values to the ldap module constants would guarantee future compatibility better than just passing the raw numbers in?,defect,new,normal,DirectoryAuthPlugin,normal,,,,1.0
