Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Connexion LDAP
 
Notifications
Clear all

Connexion LDAP

9 Posts
3 Users
0 Reactions
17.2 K Views
(@tomea)
Posts: 20
Active Member
Topic starter
 
[#1488]

Bonjour,

J'ai réussi a faire la connexion avec LDAP.
Par contre si je me reconnecte avec le même utilisateur la connexion est refusé :

2013-11-22 11:20:39 ** ERROR ** on file 'C:wampwwwPROJECTORRIAmodelUser.php' at line (761)
2013-11-22 11:20:39 ** ERROR ** cause = ldap_bind(): Unable to bind to server: Invalid credentials

En mettant le mot de passe de projeqtor ou celui du ldap cela ne fonctionne pas.

En supprimant l'utilisateur puis en essayant a nouveau de me connecter cela ne fonctionne pas.
Alors qu'avec un autre cela fonctionne (mais juste la première fois).

Est ce que j'ai loupé une étape ?

Merci par avance
Cordialement


Thomas.

 
Posted : 22 Nov 2013 13H33
(@babynus)
Posts: 14952
Member Admin
 

Please post in English.


 
Posted : 22 Nov 2013 17H04
(@babynus)
Posts: 14952
Member Admin
 

Could you precise :
- after first connexion from LDAP, what are the values of fileds isLdap and crypto for the corresponding line of table Resource. Are the fileds password and salt set or not ?
- after first connexion, were you routed to "change password" screen or not ?
Regards.


 
Posted : 22 Nov 2013 17H11
(@babynus)
Posts: 14952
Member Admin
 

This is a bug !
In /tool/getHash.php, replace line 14

 if (isset($user->crypto)) { 

with

 if (isset($user->crypto) and ! $user->isLdap) { 

Patch will be deployed very soon.


 
Posted : 24 Nov 2013 15H42
(@tomea)
Posts: 20
Active Member
Topic starter
 

Thank you

That's why it failed


Thomas.

 
Posted : 25 Nov 2013 17H11
 Soji
(@soji)
Posts: 21
Active Member
 

Hello,

I have the same problem, I use projeqtor v.4.0.5.

For example, the command line dsquery user -name "user1" return:
"CN=user1,OU=Sub-Organization,OU=Organization1,OU=Users,DC=domain,DC=lan"

The parameters are:
LDAP base dn: OU=Sub-Organization,OU=Organization1,OU=Users,DC=domain,DC=lan
LDAP user: "CN=user1,OU=Sub-Organization,OU=Organization1,OU=Users,DC=domain,DC=lan"
LDAP user filter: uid=%USERNAME%

It's correct?

When I connect, I use domainuser1 or directly user1 ?

I have the error messages:
2013-12-11 11:05:41 ** ERROR ** on file '/var/www/projeqtor/model/User.php' at line (753)
2013-12-11 11:05:41 ** ERROR ** cause = ldap_search(): Search: Bad search filter
2013-12-11 11:08:03 ** ERROR ** ERROR **
2013-12-11 11:08:03
** ERROR ** on file '/var/www/projeqtor/model/User.php' at line (743)
2013-12-11 11:08:03
** ERROR ** cause = ldap_bind(): Unable to bind to server: Invalid credentials
2013-12-11 11:08:08
** ERROR ** ERROR **

Thanks for your help.


 
Posted : 11 Dec 2013 13H30
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Two errors are reported :

1) line 743 : incorrect bind
This means that you cannot connect to LDAP using parameters you defined in "LDAP User" / "LDAP password"

2) line 753 : incorrect filter
It was not possible to find a user using search filter uid=UserName.
This can be due to prior error (incorrect credentials) or ldap structure that is not able to find uid with the entered login.

Please fix the first one and try again.


 
Posted : 11 Dec 2013 13H55
 Soji
(@soji)
Posts: 21
Active Member
 

I fix the problem: line 753 incorrect filter but I have still the message: line 743 incorrect bind.

In my example, user1 is not an administrator group. It's mandatory?


 
Posted : 11 Dec 2013 14H04
(@babynus)
Posts: 14952
Member Admin
 

It's not mandatory to be an administrator, but is must be valid login to your LDAP, with possibility to browser your lldap (or at least search into it).
For intance, you should be able to connect to your ldap xwith Ldap Browser using this credentials.


 
Posted : 11 Dec 2013 14H48
Share:

Scroll to Top