You are not logged in.
Pages: 1
Hi!
I'm a long term follower and I have a GLPI 0.68 running without big trouble for almost a year now.
All the users are authenticated with an OpenLDAP server. When a new user wants to open a ticket, the GLPI-LDAP bind adds the user to the database and everything goes fine. The users authenticate on their PCs, their mail accounts and their apps using the LDAP server.
But now I'm having trouble with a new user. Everything works fine for him: he can log on the PCs, he can receive and send mails and he can enter all the apps... but GLPI.
I've reviewed the GLPI configuration, and nothing has changed in the last year. And all the users but this one can access GLPI.
When he authenticates on GLPI he receives an error message:
User not found or several users found
I've tried to add the user from the 'Add user from external source' option, and... voilà! . But that way GLPI don't charge the name, phone, etc. fields.
I'm worried because I can manually insert a new user on GLPI, but I really don't want to insert all the new ones. And I think the LDAP authentication should work, as it is doing for all the rest of the users...
Any idea? Why the user can be retrieved with the 'Add user from external source' option but he can't authenticate with LDAP? Maybe the 200 results limit for OpenLDAP when opening a branch can be a problem?
Thanks for your great app, thanks in advance for your reply, and regards,
Francisco
GLPI 0.70, Linux Fedora 4, Apache/2.2.0 (Unix), PHP/4.4.1, MySQL 5.0.18
Offline
something specific in its login ?
duplicate item in the LDAP ?
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Nothing different. Created just like the other ones.
No duplicate in the LDAP. I've verified it a couple of times.
In fact, I touched a bit the code of auth.class.php->ldap_get_dn function:
$info = ldap_get_entries ( $ds, $sr );
if ( $info["count"] != 1 )
{
$this->err.="User not found or several users found.<br>\n";
ldap_free_result ( $sr );
ldap_close ( $ds );
return false;
}
Just under
$info = ldap_get_entries ( $ds, $sr );
I've inserted
if ( $info["count"] == 0 )
{
$this->err.="User not found.<br>\n";
ldap_free_result ( $sr );
ldap_close ( $ds );
return false;
}
And I get the 'User not found message', so GLPI doesn't find the user as duplicate.
As I said, the user logs on other apps using the LDAP server without any problem.
Any idea?
Thank you very much,
Francisco
GLPI 0.70, Linux Fedora 4, Apache/2.2.0 (Unix), PHP/4.4.1, MySQL 5.0.18
Offline
do you trace the LDAP requests send to the LDAP server ?
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
do you trace the LDAP requests send to the LDAP server ?
Mmmm, nope.
I really have no idea on how could I do that. Any tip, please?
Thank you again,
Francisco
GLPI 0.70, Linux Fedora 4, Apache/2.2.0 (Unix), PHP/4.4.1, MySQL 5.0.18
Offline
you can use software like ethereal to snif the network or activate log on you ldap server ?
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Thank you for your help!
After some time bugging around, I found that the DNS name of the LDAP server was pointing to the old LDAP server, not the actual, so it was getting the old data, but not the new.
I'm sorry for the inconvenience.
Regards,
Francisco
GLPI 0.70, Linux Fedora 4, Apache/2.2.0 (Unix), PHP/4.4.1, MySQL 5.0.18
Offline
Pages: 1