On Sun, 10 Dec 2017, Dima Pasechnik wrote:
On my installation, thes files don't exist:
$ ls local/lib/python2.7/site-packages/ldap/
__init__.py __init__.pyc mock.py mock.pyc server.py server.pyc
Confusingly, pip also has a package called python-ldap; if I do
./sage --pip install python-ldap
then I get that ldap/filter.py files indeed.
But do we need it?
If I just make Sage and then as admin go to Notebook Settings there is no
ldap settings at all -- of course not.
"./sage -i openssl" did not add that, so next I run "./sage -pip install
pyopenssl" with no help.
Now, both "./sage -sh"+"easy_install python-ldap" and "./sage --pip
install python-ldap" gives an error about missing lber.h. So, I ran
"apt-get install libldap2-dev" as root. After that there was sasl/sasl.h
missing, so I ran "apt-get install libsasl2-dev". Now I was able to run
"./sage -sh"+"easy_install python-ldap".
But still no settings for ldap. So, next "./sage --pip install
python-ldap". And here we are! Now there is ldap settings available.
Now, I tested with settings
Enable LDAP Authentication: On
LDAP URI: ldap://ldap.forumsys.com:389/
Bind DN: cn=read-only-admin,dc=example,dc=com
Bind Password: password
Use GSSAPI instead of Bind DN/Password: Off
Base DN: ou=mathematicians,dc=example,dc=com
Username Attribute (i.e. cn, uid or userPrincipalName): uid
Query timeout (seconds): 5
But there is something wrong with those settings. I must test against a
known good server.
--
Jori Mäntysalo