BINDING A LDAP TO SIMPLESAMLPHP

1,652 views
Skip to first unread message

Dani Merida

unread,
Jul 8, 2011, 8:46:03 AM7/8/11
to simpleSAMLphp

Hi to all:

I am new here and I have some problems with simplesamlphp

I have installed in a virtual machine and I have a LDAP installed and
tested in another VM.

I have modified "authsources.php" and "config.php" as the manual says,
but when I access to the login page with a valid user and the LDAP
doesn't return anything, only a blank page in this URL:

http://my-openidp/simplesaml/module.php/core/loginuserpass.php?

LDAP needs an aditional configuration in order to give back
information or I have to setup any more things in simplesamlphp? Any
suggests?

Dani

Olav Morken

unread,
Jul 8, 2011, 8:50:24 AM7/8/11
to simple...@googlegroups.com

It is possible that you are missing the LDAP lirary for PHP or
something like that.

I suggest that you look at the error log of your web server - errors
that cause blank pages are usually logged there.

Regards,
Olav Morken
UNINETT / Feide

Daniel Mérida

unread,
Jul 13, 2011, 8:08:16 AM7/13/11
to simple...@googlegroups.com
I have looked at Apache logs, but there is nothing wrong.
What is the PHP library in simplesaml?

Regards,
Dani

El 08/07/2011 14:50, Olav Morken escribi�:

Søren Grønning Iversen

unread,
Jul 13, 2011, 8:49:22 AM7/13/11
to simple...@googlegroups.com
If you're on Debian/Ubuntu check for the following:

dpkg -l | grep php5-ldap

to check if the PHP ldap libs have been installed. If not, then simply:

sudo apt-get install php5-ldap

to add it to your installation. Restart Apache with sudo
/etc/init.d/apache2 restart and you should be up and running ...

-S�ren

Daniel Mérida

unread,
Jul 15, 2011, 6:43:44 AM7/15/11
to simple...@googlegroups.com
Thanks Soren, I didn't have installed the library for PHP.
But now, I have a new problem: I get this trace error in the browser
when I try to authenticate:


SimpleSAML_Error_Error: UNHANDLEDEXCEPTION

Backtrace:
0 /var/simplesamlphp-1.8.0/www/module.php:180 (N/A)
Caused by: SimpleSAML_Error_Exception: Library - LDAP __construct():
Unable to force TLS
Backtrace:
6 /var/simplesamlphp-1.8.0/lib/SimpleSAML/Auth/LDAP.php:134
(SimpleSAML_Auth_LDAP::makeException)
5 /var/simplesamlphp-1.8.0/lib/SimpleSAML/Auth/LDAP.php:100
(SimpleSAML_Auth_LDAP::__construct)
4 /var/simplesamlphp-1.8.0/modules/ldap/lib/ConfigHelper.php:175
(sspmod_ldap_ConfigHelper::login)
3 /var/simplesamlphp-1.8.0/modules/ldap/lib/Auth/Source/LDAP.php:52
(sspmod_ldap_Auth_Source_LDAP::login)
2 /var/simplesamlphp-1.8.0/modules/core/lib/Auth/UserPassBase.php:176
(sspmod_core_Auth_UserPassBase::handleLogin)
1 /var/simplesamlphp-1.8.0/modules/core/www/loginuserpass.php:49 (require)
0 /var/simplesamlphp-1.8.0/www/module.php:135 (N/A)

This error appears when the user/password is correct and when it's not.

Thanks in advance
Dani

El 13/07/2011 14:49, S�ren Gr�nning Iversen escribi�:

Peter Schober

unread,
Jul 15, 2011, 10:03:34 AM7/15/11
to simple...@googlegroups.com
* Daniel M�rida <dme...@lcc.uma.es> [2011-07-15 12:44]:

> Caused by: SimpleSAML_Error_Exception: Library - LDAP __construct():
> Unable to force TLS

Well, then TLS probably isn't supported or (correctly) configured in
your DSA?
As always, test all connections with ldapsearch first and only once
you have everything running transfer the working config to
SimpleSAMLphp. Until then it has nothing to do with SimpleSAMLphp, as
it's an ordinary LDAP client here.
-peter

Reply all
Reply to author
Forward
0 new messages