|
Size: 1012
Comment:
|
Size: 1345
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 5: | Line 5: |
| {{{#!highlight bash | |
| Line 6: | Line 7: |
| }}} | |
| Line 9: | Line 11: |
| {{{#!highlight bash | |
| Line 11: | Line 14: |
| }}} | |
| Line 14: | Line 18: |
| {{{#!highlight bash | |
| Line 18: | Line 23: |
| }}} And then doing LDAP authentication is stupidly simple: {{{#!highlight python import ldap con = ldap.initialize('ldap://nebio-directory.in.hwlab') con.simple_bind_s("uid=ijstokes,cn=users,cn=portal,dc=nebiogrid,dc=org", "cleartext_password") }}} |
Sage doesn't install python-ldap nicely via easy_install (tested with 4.7 on CentOS 5.6 and OS X 10.6 -- same failure). Looks like it is a problem with the egg setup.cfg (2.3.5 to 2.3.9 from here). This forced me to do an install from a CVS checkout of python-ldap. I then had OpenLDAP and BerkeleyDB problems, so these were installed from the latest source versions (2.4.5 and 5.2.28 respectively).
For OpenLDAP, configure was run with:
1 ./configure --with-cyrus-sasl --with-tls --prefix=/usr
For BerkeleyDB, configure was run with:
The main thing for installing python-ldap was getting the following lines set properly in setup.cfg:
And then doing LDAP authentication is stupidly simple:
