Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
pyramid_ldap authentication ldap.SCOPE_SUBTREE
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eric Lemoine  
View profile   Translate to Translated (View Original)
 More options Aug 22 2012, 8:27 am
From: Eric Lemoine <eric.lemo...@camptocamp.com>
Date: Wed, 22 Aug 2012 14:27:40 +0200
Local: Wed, Aug 22 2012 8:27 am
Subject: pyramid_ldap authentication ldap.SCOPE_SUBTREE
Hello

I'm trying to use pyramid_ldap with the ldap.SCOPE_SUBTREE scope in
config.ldap_set_login_query. This is because the main directory is
composed of multiple sub-directories (I'm not an LDAP expert, so I'm
not what I'm saying makes sense, sorry). The problem is that the
"authenticate" function always returns None in that case, because the
number of results returned by the search call is greater than 1
(search response provided below). See
<https://github.com/Pylons/pyramid_ldap/blob/master/pyramid_ldap/__ini...>.
Does what I'm doing actually make sense at all? Does pyramid_ldap
support SCOPE_SUBTREE for login/authentication?

Here is the response I get from the LDAP search call:

 [
    ('CN=Kalbermatten
Micha\xc3\xabl,OU=NoRoamingProfiles,OU=SGRF,OU=SGRF,OU=DGT,OU=Utilisate
urs,OU=ACN,DC=ne,DC=ch', {'accountExpires': ['0'], ...}),
    (None, ['ldap://vdn.ne.ch/DC=vdn,DC=ne,DC=ch']),
    (None, ['ldap://vch.ne.ch/DC=vch,DC=ne,DC=ch']),
    (None, ['ldap://sne.ne.ch/DC=sne,DC=ne,DC=ch']),
    (None, ['ldap://DomainDnsZones.ne.ch/DC=DomainDnsZones,DC=ne,DC=ch']),
    (None, ['ldap://ForestDnsZones.ne.ch/DC=ForestDnsZones,DC=ne,DC=ch']),
    (None, ['ldap://ne.ch/CN=Configuration,DC=ne,DC=ch'])
]

Thanks for any insight.

--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »