Forum

Connexion LDAP
 
Notifications
Retirer tout

Connexion LDAP

9 Posts
3 Utilisateurs
0 Reactions
17.2 {numéro}K Vu
(@tomea)
Posts: 20
Active Member
Début du sujet
 
[#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.

 
Posté : 22 Nov PM 13:1111
(@babynus)
Posts: 14952
Membre Admin
 

Please post in English.


 
Posté : 22 Nov PM 17:1111
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 22 Nov PM 17:1111
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 24 Nov PM 15:1111
(@tomea)
Posts: 20
Active Member
Début du sujet
 

Thank you

That's why it failed


Thomas.

 
Posté : 25 Nov PM 17:1111
 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.


 
Posté : 11 Déc PM 13:1212
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 11 Déc PM 13:1212
 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?


 
Posté : 11 Déc PM 14:1212
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 11 Déc PM 14:1212
Share:
Retour en haut