You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2008-01-30 18:06:21

Fred Melssen
Member
Registered: 2006-02-15
Posts: 12

Secure LDAP fails in 0.70.2 (extra information)

In addition to Eric's mail, I would like to post some supplementary findings.

Eric wrote:

>Config: Windows 2003 Server, IIS 6, MYSQL 5.0 , PHP 5.2.0
>Secure LDAP connection is working o.k. in GLPI 0.68.3
>Using the same settings in version 0.7.2 we get an Access Denied , 
>PHP erros and an empty user account is created.

We use 0.68.3 and 0.70.2 on the same server (we use different directories for these versions of GLPI on this server). We have a SSL certificate for secure LDAP running on this server, and it works fine with 0.68.3. Therefore I think it should work also for 0.70.2.

The LDAP 'test-button' works fine. However, logging in with an LDAP user works fine in 0.68.3, but it does not work with 0.70.2 (either 'access denied' or 'no such user or more users found').

If you have any question with which you can help us, or want specific screencaptures of some configuration settings, please let us know.

Thank you very much in advance,
kind regards,
Fred

Offline

#2 2008-01-30 18:59:03

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Secure LDAP fails in 0.70.2 (extra information)

is the LDAP non SSL working in 0.70.2 ?

Bind seems to work but data retrieving seems to have troubles.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#3 2008-01-30 19:29:14

Fred Melssen
Member
Registered: 2006-02-15
Posts: 12

Re: Secure LDAP fails in 0.70.2 (extra information)

MoYo wrote:

is the LDAP non SSL working in 0.70.2 ?

Bind seems to work but data retrieving seems to have troubles.

We can't test the non-SSL connection as our university's LDAP server requires it.
Of course we can setup a non-SSL LDAP server to test it, if necessary.

But we copied the entire new version into the map of the existing and working version (temporarily) to check if it could be an IIS/SSL issue. Even then it did not work.

I'ts a good idea I think to test this with a non-SSL LDAP server.

Offline

#4 2008-01-31 09:32:22

yvesdm
Member
Registered: 2007-06-27
Posts: 132

Re: Secure LDAP fails in 0.70.2 (extra information)

MoYo wrote:

is the LDAP non SSL working in 0.70.2 ?

Bind seems to work but data retrieving seems to have troubles.

I'm trying to set it up here. (0.70.2)
I've got the connection with the LDAP directory working, but fail to authenticate users from it.
So the connection test is ok, when I leave the rootdn empty. As soon as I try to add something there I get connection failed when i test connection. When i try to log in with AD credentials I get 'no such user or more users found' 

Kind regards,
Yves

Offline

#5 2008-01-31 10:34:39

Fred Melssen
Member
Registered: 2006-02-15
Posts: 12

Re: Secure LDAP fails in 0.70.2 (extra information)

yvesdm wrote:
MoYo wrote:

is the LDAP non SSL working in 0.70.2 ?

Bind seems to work but data retrieving seems to have troubles.

I'm trying to set it up here. (0.70.2)
I've got the connection with the LDAP directory working, but fail to authenticate users from it.
So the connection test is ok, when I leave the rootdn empty. As soon as I try to add something there I get connection failed when i test connection. When i try to log in with AD credentials I get 'no such user or more users found' 

Kind regards,
Yves

I notice the following:

When I add a user manually to GLPI (and this user exists in LDAP), then this user can login, authenticating with his LDAP password. When the user does not exist in GLPI, GLPI will not authenticate against LDAP and will not add this user to the GLPI database.

This means that we have to add all usernames (not the passwords) manually in GLPI?

Offline

#6 2008-01-31 11:19:25

yvesdm
Member
Registered: 2007-06-27
Posts: 132

Re: Secure LDAP fails in 0.70.2 (extra information)

Fred Melssen wrote:

This means that we have to add all usernames (not the passwords) manually in GLPI?

That can't be the way it is meant to be. I got +/- 3000 users total :-)

Offline

#7 2008-01-31 23:46:19

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Secure LDAP fails in 0.70.2 (extra information)

we will try to find why there is a problem.

Sorry for the inconvenient but we are on a Free Software Exhibition for 3 days.

Adding manually or using data injection may be a solution for the moment.

We will try to correct the problem the quicker as possible.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#8 2008-02-01 00:31:13

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Secure LDAP fails in 0.70.2 (extra information)

On openldap :
- really strange does not working on first attempt. Ok on second.
- data retrieve correctly


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#9 2008-02-01 13:49:02

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Secure LDAP fails in 0.70.2 (extra information)

on openldap over SSL :
- using TLS : unable to login
- without : need to login twice to succeed.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#10 2008-02-01 13:49:29

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Secure LDAP fails in 0.70.2 (extra information)

which information do you have in debug mode ?


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#11 2008-02-01 17:10:26

Fred Melssen
Member
Registered: 2006-02-15
Posts: 12

Re: Secure LDAP fails in 0.70.2 (extra information)

MoYo wrote:

which information do you have in debug mode ?

First, I have extra information.
I see that the problem also exist in former release: users have to be added first, after LDAP authentication can take place. So there is (I think) only one other problem:

When a user (loginname) is added, this user can authenticaty by LDAP.
However, other LDAP attributes (surname, givenname and email) are not updated in the database, in version 0.70.2 (this update works fine in former versions).
We have 'surname', 'givenname' and 'mail' defined in GLPI's LDAP configuration page.

Thank you,
Fred

Offline

#12 2008-02-01 17:23:28

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: Secure LDAP fails in 0.70.2 (extra information)

there's something I don't understand.
when you talk about secure ldap, you mean using TLS or using ldaps ?

Offline

#13 2008-02-01 17:43:02

Fred Melssen
Member
Registered: 2006-02-15
Posts: 12

Re: Secure LDAP fails in 0.70.2 (extra information)

wawa wrote:

there's something I don't understand.
when you talk about secure ldap, you mean using TLS or using ldaps ?

ldaps

Offline

#14 2008-02-01 18:13:03

Fred Melssen
Member
Registered: 2006-02-15
Posts: 12

Re: Secure LDAP fails in 0.70.2 (extra information)

Information that supports my conclusion that users have to be added first before they can authenticate by LDAP:

The 'login.php' includes the statement:

// exists=0 -> no exist (this is when the user does not exist in the database)
There is no statement that runs when this condition exist; there are statements that are runned when 'exists=1' or 'exists=2'.

Offline

#15 2008-02-01 18:35:29

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Secure LDAP fails in 0.70.2 (extra information)

if user does not exists, we cannot try its old login method. So this case does not exists here.
But all auth methods are tested just after to find the right one.

Process work fine on ldap. switching one ldaps make it working bad. Problem is not global on the login.php process but in the specific ldap auth methods used.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#16 2008-02-06 13:32:02

Eric Hofland
Member
From: Radboud Universiteit - Holland
Registered: 2006-02-15
Posts: 81

Re: Secure LDAP fails in 0.70.2 (extra information)

Is there any news about this problem ??

As long as ldaps is not working for new users we cannot upgrade to version 0.70.2

Last edited by Eric Hofland (2008-02-06 13:32:20)


Windows 2003 - IIS6  PHP 5.2.5   Mysql 5.0.51
IE8 & Fiefox 4.0

GLPI 0.72.3

Offline

#17 2008-02-06 13:38:52

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: Secure LDAP fails in 0.70.2 (extra information)

I'll work on it as soon as possible
ok  I reproduce the problem, I'm working on a solution

Last edited by wawa (2008-02-06 17:24:57)

Offline

#18 2008-02-06 20:39:41

Eric Hofland
Member
From: Radboud Universiteit - Holland
Registered: 2006-02-15
Posts: 81

Re: Secure LDAP fails in 0.70.2 (extra information)

If you need any help with testing ...just give a shout


Windows 2003 - IIS6  PHP 5.2.5   Mysql 5.0.51
IE8 & Fiefox 4.0

GLPI 0.72.3

Offline

#19 2008-02-22 09:58:33

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: Secure LDAP fails in 0.70.2 (extra information)

hello
after some testing neither MoYo nor myself could reproduce the problem on recent systems.
Could you please test a higher version of PHP, because it seems to come from here (I had another problem solved by upgrading PHP's version)

Offline

#20 2008-02-22 17:52:05

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Secure LDAP fails in 0.70.2 (extra information)

for information my php version : 5.2.3


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#21 2008-02-25 10:44:02

Eric Hofland
Member
From: Radboud Universiteit - Holland
Registered: 2006-02-15
Posts: 81

Re: Secure LDAP fails in 0.70.2 (extra information)

We already upgraded PHP to 5.2.5

If PHP version was the problem it should also fail in 0.68.3 but that version is working o.k. (running on the same system)

In 0.70.2 user gets Access Denied and an empty record is created.

If i then try to add the user manually in

Users - From an external source - Add LDAP 

The message  is: Unable to add. The user already exists.


Eric


Windows 2003 - IIS6  PHP 5.2.5   Mysql 5.0.51
IE8 & Fiefox 4.0

GLPI 0.72.3

Offline

#22 2008-02-25 16:21:44

Eric Hofland
Member
From: Radboud Universiteit - Holland
Registered: 2006-02-15
Posts: 81

Re: Secure LDAP fails in 0.70.2 (extra information)

I just tried the latest svn (glpi-unstable-2008-02-25) and the login using  ldaps is working ok in that version, user record is created and filled with Ldap data.


however if I add a user using Administration -  Users - From an external source  - and enter login - Add LDAP
the error message is: User not found or several users found


Windows 2003 - IIS6  PHP 5.2.5   Mysql 5.0.51
IE8 & Fiefox 4.0

GLPI 0.72.3

Offline

Board footer

Powered by FluxBB