server/sources/ldapuser.py
branchstable
changeset 8636 c491f945f878
parent 8615 a24fbd24ede4
child 8674 001c1592060a
equal deleted inserted replaced
8635:c261d9465e65 8636:c491f945f878
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """cubicweb ldap user source
    18 """cubicweb ldap user source
    19 
    19 
    20 this source is for now limited to a read-only CWUser source
    20 this source is for now limited to a read-only CWUser source
    21 """
    21 """
    22 from __future__ import division
    22 from __future__ import division, with_statement
    23 from base64 import b64decode
    23 from base64 import b64decode
    24 
    24 
    25 import ldap
    25 import ldap
    26 from ldap.filter import escape_filter_chars
    26 from ldap.filter import escape_filter_chars
    27 
    27