Skip to content
This repository
Browse code

Merge pull request #1 from pipoun/patch-1

typo: dn modified to userdn ( pyramid_ldap.Connector.user_groups )
  • Loading branch information...
commit 29ee4b4d0ee93c94a6d961419c874a338040a212 2 parents 1f8de19 + ec1cf41
Chris McDonough authored April 02, 2012

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  docs/index.rst
8  docs/index.rst
Source Rendered
@@ -71,7 +71,7 @@ attempts to talk to an Active Directory server:
71 71
 
72 72
     config.ldap_set_groups_query(
73 73
         base_dn='CN=Users,DC=example,DC=com',
74  
-        filter_tmpl='(&(objectCategory=group)(member=%(dn)s))',
  74
+        filter_tmpl='(&(objectCategory=group)(member=%(userdn)s))',
75 75
         scope = ldap.SCOPE_SUBTREE,
76 76
         cache_period = 600,
77 77
         )
@@ -224,7 +224,7 @@ Here's a small application which uses the ``pyramid_ldap`` API:
224 224
 
225 225
         config.ldap_set_groups_query(
226 226
             base_dn='CN=Users,DC=example,DC=com',
227  
-            filter_tmpl='(&(objectCategory=group)(member=%(dn)s))',
  227
+            filter_tmpl='(&(objectCategory=group)(member=%(userdn)s))',
228 228
             scope = ldap.SCOPE_SUBTREE,
229 229
             cache_period = 600,
230 230
             )
@@ -250,8 +250,8 @@ parameter (aka the "windows login name").
250 250
 The application also sets up a groups query using
251 251
 :func:`pyramid_ldap.ldap_set_groups_query` using a base DN of
252 252
 ``CN=Users,DC=example,DC=com`` and a filter_tmpl of
253  
-``(&(objectCategory=group)(member=%(dn)s))``.  The group query's filter
254  
-template's ``%(dn)s`` value will be replaced with the DN of the user provided
  253
+``(&(objectCategory=group)(member=%(userdn)s))``.  The group query's filter
  254
+template's ``%(userdn)s`` value will be replaced with the DN of the user provided
255 255
 as the userid by the :meth:`pyramid_ldap.Connector.user_groups` method, in
256 256
 order to look up all the groups to which the user belongs.  In this case,
257 257
 we're using the ``member`` attribute to match against the DN, returning all

0 notes on commit 29ee4b4

Please sign in to comment.
Something went wrong with that request. Please try again.