#11501: User authentication via LDAP
---------------------------+------------------------------------------------
   Reporter:  rmartinjak   |          Owner:  jason, mpatel, was  
       Type:  enhancement  |         Status:  new                 
   Priority:  minor        |      Milestone:                      
  Component:  notebook     |       Keywords:  notebook, auth, ldap
Work_issues:               |       Upstream:  N/A                 
   Reviewer:               |         Author:  Robin Martinjak     
     Merged:               |   Dependencies:                      
---------------------------+------------------------------------------------

Comment(by dimpase):

 Replying to [comment:5 dimpase]:
 > they say I have to build ldap 2.13 from source on MacOSX 10.6, otherwise
 ldap doesn't work.
 > see http://stackoverflow.com/questions/6475118/python-ldap-os-x-10-6
 -and-python-2-6

 oops, I meant 2.3.13
 After I took the source and did
 {{{
 sage -sh
 python setup.py install
 }}}
 in its source directory, I was able to get to
 {{{

           File
 "/usr/local/src/sage/current/devel/sagenb/flask_version/authentication.py",
 line 53, in login
             elif g.notebook.user_manager().check_password(username,
 password):
           File "/usr/local/src/sage/sage-4.7.alpha5/devel/rkirov-
 flask/sagenb/notebook/user_manager.py", line 503, in check_password
             return self._check_password(username, password)
           File "/usr/local/src/sage/sage-4.7.alpha5/devel/rkirov-
 flask/sagenb/notebook/user_manager.py", line 612, in _check_password
             u = self._auth_methods[a].check_user(username)
           File "/usr/local/src/sage/sage-4.7.alpha5/devel/rkirov-
 flask/sagenb/notebook/user_manager.py", line 729, in check_user
             u = self._get_ldapuser(username)
           File "/usr/local/src/sage/sage-4.7.alpha5/devel/rkirov-
 flask/sagenb/notebook/user_manager.py", line 709, in _get_ldapuser
             result = self._ldap_search("(%s=%s)" %
 (self._conf['ldap_username_attrib'], username), attrlist)
           File "/usr/local/src/sage/sage-4.7.alpha5/devel/rkirov-
 flask/sagenb/notebook/user_manager.py", line 690, in _ldap_search
             raise ValueError, "invalid LDAP credentials"
         exceptions.ValueError: invalid LDAP credentials
 }}}
 after attempting to log in (well, it could well be that the "Bind DN" is
 set wrongly in my case).

 by the way, there is obvious typo in the patch in
 flask_version/authentication.py
 {{{
 password = request.form['password'True]
 }}}
 we guessed that "'True" should be gone there.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11501#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" 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/sage-trac?hl=en.

Reply via email to