Closed kapcom01 closed 1 year ago
Here is the issue ... with this and other login plugins the username and email has to be unique it cannot create a user without a email address. While the modification you made is sensible the plugin cant find the email from that because it does not exist in AD. for its point of view it is blank.
I dont know how its finding multiple objects with the same information osticket but it is ... and AD objects should have a email attribute even if its internal only but the plugin syncs this to send users email from OSticket but it can be turn off manually. The error does not make any sense.
You need to find and remove any object that conflicts. Seems you have some house cleaning to do.
I made some tests, and I cannot replicate the state which caused the "multiple objects in the database" error. I am not sure it is related to this plugin or the modifications I made.
There were double records in the user_account
table with the same user_id
one of which had NULL in every other field except id
and user_id
. I deleted the ones with the NULL fields and now everything seems to be working OK. I noticed by the way that these records were about users who had been registered before the installation of this plugin.
Anyway I decided to disable the official LDAP plugin and use exclusively this one with the following strategy because client users don't have an email address in AD. The staff members are created manually by the administrator and we just need to check for their password in AD.
The error does not make any sense.
I agree. I am closing this issue for now :) Thanks.
Hello and thank you for this great plugin!
I am using this plugin for the clients authentication and the official LDAP plugin for the staff. I am on osticket v1.15.8 and PHP v7.3.31.
Everything was working as expected when suddenly I am getting
500 Internal Server Error
when some clients try to login. If I delete these clients from osticket then they can login again. But this is not an adequate solution because some of them have already opened tickets and I will lose them.I should note that I changed the following line in the plugin to
$info['email'] = $info['username'] . "@MY-DOMAIN.gr";
because our users in AD don't have email address. https://github.com/philbertphotos/osticket-multildap-auth/blob/dea65810f9a8e8f168992904fd84534bbb0c82ec/multi-ldap/auth.php#L696/var/log/apache2/error.log:
/var/log/mysql/mysql.log: