LDAP (again...) on version 5.10.

213 views
Skip to first unread message

Jori Mantysalo

unread,
Jul 2, 2013, 8:41:57 AM7/2/13
to sage-s...@googlegroups.com
Is there any step-by-step -manual for joining LDAP and Sage 5.10, or
should I just try to modify instructions given for older versions?

--
Jori M�ntysalo

P Purkayastha

unread,
Jul 2, 2013, 1:52:04 PM7/2/13
to sage-s...@googlegroups.com
If you mean enabling LDAP in sage, then you should try out the sagenb spkg from http://trac.sagemath.org/sage_trac/ticket/14330
Jori M�ntysalo

Jori Mantysalo

unread,
Jul 3, 2013, 7:31:10 AM7/3/13
to sage-s...@googlegroups.com
On Tue, 2 Jul 2013, P Purkayastha wrote:

> If you mean enabling LDAP in sage, then you should try out the sagenb spkg
> from http://trac.sagemath.org/sage_trac/ticket/14330

Thank you. I installed it by sage -i. But what now? After logging in as
admin I don't see settings for ldap. Sage -b? Modifying some -py -file?

Three weeks ago somebody has written "Is there any documentation on LDAP
functionality available, and/or any UI? How can a user find it?" as a
comment to trac entry. At least I am not only one wondering this.

--
Jori Mäntysalo

Olalékan ABOU BAKAR

unread,
Jul 3, 2013, 7:17:19 PM7/3/13
to sage-s...@googlegroups.com
I'm having the same problems from weeks now..  installed the package using:

#./sage -i sagenb-0.10.7.1.spkg
Finished installing sagenb-0.10.7.1.spkg

But I don't know what the next steps are.






--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscribe@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.



Olalékan ABOU BAKAR

unread,
Jul 3, 2013, 7:20:21 PM7/3/13
to sage-s...@googlegroups.com
As opposed  Jori Mäntysalo, I'm using sage 5.9 if that makes any difference.

P Purkayastha

unread,
Jul 3, 2013, 8:57:04 PM7/3/13
to sage-s...@googlegroups.com
I think you need to install python-ldap in order to see any UI. I have opened https://github.com/sagemath/sagenb/issues/177 to track this.




--
Jori Mäntysalo

--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/NlfiJt-OTpU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support+unsubscribe@googlegroups.com.

Jori Mantysalo

unread,
Jul 4, 2013, 3:53:36 AM7/4/13
to sage-s...@googlegroups.com
On Thu, 4 Jul 2013, P Purkayastha wrote:

> I think you need to install python-ldap in order to see any UI.

Great, that was it!

(And for others reading this thread: first say "./sage -sh" and then to
prompt just "easy_install python-ldap".)

I will now check if LDAP really works and install optional packages. If
there is no complains from me in two days, then everything is fine and
life is good.

--
Jori M�ntysalo

Olalékan ABOU BAKAR

unread,
Jul 4, 2013, 10:31:34 AM7/4/13
to sage-s...@googlegroups.com
Confirmed.. It works!

I didn't think an easy_install will work from sage shell but it did! Just install the development headers and you're good. 
Restart the nootebook server.. You will the LDAP UI under Settings > Notebook Settings.




--
Jori Mäntysalo

--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscribe@googlegroups.com.

P Purkayastha

unread,
Jul 4, 2013, 10:42:04 AM7/4/13
to sage-s...@googlegroups.com
Does only python-ldap work, or is there any other package needed (in the system, for example)? Also, can you give some feedback on whether you have been able to make LDAP actually work?

Thanks!
  basu.

Andrey Novoseltsev

unread,
Jul 4, 2013, 10:56:46 AM7/4/13
to sage-s...@googlegroups.com

On Thursday, 4 July 2013 01:53:36 UTC-6, jori.ma...@uta.fi wrote:
(And for others reading this thread: first say "./sage -sh" and then to
prompt just "easy_install python-ldap".)


For me this gives

Searching for python-ldap
Reading http://pypi.python.org/simple/python-ldap/
Download error: unknown url type: https -- Some packages may not be found!
Reading http://pypi.python.org/simple/python-ldap/
Download error: unknown url type: https -- Some packages may not be found!
Couldn't find index page for 'python-ldap' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: unknown url type: https -- Some packages may not be found!
No local packages or download links found for python-ldap
error: Could not find suitable distribution for Requirement.parse('python-ldap')
 

Jori Mantysalo

unread,
Jul 4, 2013, 11:21:59 AM7/4/13
to sage-s...@googlegroups.com
On Thu, 4 Jul 2013, Andrey Novoseltsev wrote:

>> (And for others reading this thread: first say "./sage -sh" and then to
>> prompt just "easy_install python-ldap".)

> For me this gives
>
> Searching for python-ldap
> Reading http://pypi.python.org/simple/python-ldap/
> Download error: unknown url type: https -- Some packages may not be found!

I have Ubuntu 12.04.2 and dpkg --list | fgrep ssl says

ii libflac8 1.2.1-6
ii libssl-dev 1.0.1-4ubuntu5.9
ii libssl-doc 1.0.1-4ubuntu5.9
ii libssl0.9.8 0.9.8o-7ubuntu3.1
ii libssl1.0.0 1.0.1-4ubuntu5.9
ii openssl 1.0.1-4ubuntu5.9
ii python-openssl 0.12-1ubuntu2

I would start with installing python-openssl.

--
Jori M�ntysalo

Jori Mantysalo

unread,
Jul 4, 2013, 11:27:05 AM7/4/13
to sage-s...@googlegroups.com
On Thu, 4 Jul 2013, P Purkayastha wrote:

> Does only python-ldap work, or is there any other package needed (in the
> system, for example)? Also, can you give some feedback on whether you have
> been able to make LDAP actually work?

I don't have clean install to test this. There was 5.6 working before I
installed 5.10. So, I am not sure about what other packages are really
needed.

But at least notebook files from 5.6 seems to be OK. Also LDAP is working,
I didn't even have to (re)configure it.

--
Jori M�ntysalo

Dima Pasechnik

unread,
Jul 5, 2013, 6:56:33 AM7/5/13
to sage-s...@googlegroups.com
On 2013-07-04, Andrey Novoseltsev <novo...@gmail.com> wrote:
> ------=_Part_2551_31135020.1372949807055
> Content-Type: text/plain; charset=ISO-8859-1
>
>
> On Thursday, 4 July 2013 01:53:36 UTC-6, jori.ma...@uta.fi wrote:
>>
>> (And for others reading this thread: first say "./sage -sh" and then to
>> prompt just "easy_install python-ldap".)
>>
>>
> For me this gives
>
> Searching for python-ldap
> Reading http://pypi.python.org/simple/python-ldap/
> Download error: unknown url type: https -- Some packages may not be found!

your easy_install can't make sense of https

This means that openssl is missing in some form.

Dima Pasechnik

unread,
Jul 5, 2013, 6:58:11 AM7/5/13
to sage-s...@googlegroups.com
On 2013-07-04, P Purkayastha <ppu...@gmail.com> wrote:
> --047d7b15a873f4617e04e0b0944a
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
>
> Does only python-ldap work, or is there any other package needed (in the
> system, for example)? Also, can you give some feedback on whether you have
> been able to make LDAP actually work?
(pyhton)-openssl, it seems, is necessary to make easy_install working.

>
> Thanks!
> basu.
>
> On Thu, Jul 4, 2013 at 10:31 PM, Olal=E9kan ABOU BAKAR <amp...@gmail.com>wr=
> ote:

P Purkayastha

unread,
Jul 5, 2013, 7:01:15 AM7/5/13
to sage-s...@googlegroups.com
On 07/05/2013 06:58 PM, Dima Pasechnik wrote:
> On 2013-07-04, P Purkayastha <ppu...@gmail.com> wrote:
>> --047d7b15a873f4617e04e0b0944a
>> Content-Type: text/plain; charset=ISO-8859-1
>> Content-Transfer-Encoding: quoted-printable
>>
>> Does only python-ldap work, or is there any other package needed (in the
>> system, for example)? Also, can you give some feedback on whether you have
>> been able to make LDAP actually work?
> (pyhton)-openssl, it seems, is necessary to make easy_install working.

Thanks. I will add something to the README with this information.

Andrey Novoseltsev

unread,
Jul 5, 2013, 2:45:10 PM7/5/13
to sage-s...@googlegroups.com
On Friday, 5 July 2013 04:58:11 UTC-6, Dima Pasechnik wrote:
(pyhton)-openssl, it seems, is necessary to make easy_install working.


I have installed optional packages openssl and pyopenssl and now I am getting this:
(sage-sh) novoselt@sage:~$ easy_install python-ldap
Searching for python-ldap
Reading http://pypi.python.org/simple/python-ldap/
Best match: python-ldap 2.4.13
Downloading https://pypi.python.org/packages/source/p/python-ldap/python-ldap-2.4.13.tar.gz#md5=74b7b50267761540451eade44b2049ee
Processing python-ldap-2.4.13.tar.gz
Running python-ldap-2.4.13/setup.py -q bdist_egg --dist-dir /tmp/easy_install-97rtiU/python-ldap-2.4.13/egg-dist-tmp-KwQNj5
defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
extra_compile_args:
extra_objects:
include_dirs: /opt/openldap-RE24/include /usr/include/sasl /usr/include
library_dirs: /opt/openldap-RE24/lib /usr/lib
libs: ldap_r
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
In file included from Modules/LDAPObject.c:9:0:
Modules/errors.h:8:18: fatal error: lber.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
 

Olalékan ABOU BAKAR

unread,
Jul 5, 2013, 3:47:10 PM7/5/13
to sage-s...@googlegroups.com
You have you install the development headers of sasl and ldap to fix that error.
--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.

Olalékan ABOU BAKAR

unread,
Jul 5, 2013, 4:53:49 PM7/5/13
to sage-s...@googlegroups.com
Run this before the easy_install: 

apt-get install python-dev libldap2-dev libsasl2-dev libssl-dev

Andrey Novoseltsev

unread,
Jul 7, 2013, 2:34:16 PM7/7/13
to sage-s...@googlegroups.com
On Friday, 5 July 2013 14:53:49 UTC-6, Patrick ABOU BAKAR wrote:
Run this before the easy_install: 

apt-get install python-dev libldap2-dev libsasl2-dev libssl-dev


This worked, thank you!
Reply all
Reply to author
Forward
0 new messages