osTicket / osTicket-plugins

Core plugins for osTicket (v1.8+)
GNU General Public License v2.0
148 stars 162 forks source link

LDAP with OpenLDAP #83

Open KeithSampson opened 9 years ago

KeithSampson commented 9 years ago

Hello,

I have already installed iRedMail server with OpenLDAP. This LDAP used by owncloud, doku wiki, and some other soft. Now I've installed osTickets and want configure it to use my OpenLDAP server. I've installed plugin from GitHub configred it and enabled. My plugin config:

Default Domain: mydomain.com
LDAP servers: my_server_ip_address
Search User: cn=vmail,dc=mail,dc=mydomain,dc=com
Password: password_for_this_user
Search Base: ou=Users,domainName=mydomain.com,o=domains,dc=mail,dc=mydomain,dc=com
LDAP Schema: Automatically detect

After saving I see "LDAP configuration updated successfully" And here is example of user on my OpenLDAP server:

dn: mail=first.last@mydomain.com,ou=Users,domainName=mydomain.com,o=domains,dc=mail,dc=mydomain,dc=com
accountstatus: active
amavislocal: TRUE
cn: first last
enabledservice: mail
mail: first.last@mydomain.com
objectclass: inetOrgPerson
objectclass: mailUser
objectclass: shadowAccount
objectclass: amavisAccount
shadowlastchange: 0
sn: first.last
storagebasedirectory: /var/vmail
uid: first.last

But when I am trying add new stuff I don't see any data from LDAP. And if I type all data manually, I can't login with this user. I see blank page and in apache log I see error:

PHP Fatal error:  Call to a member function rootDse() on a non-object in .../public_html/include/plugins/auth-ldap/authentication.php on line 259,

The same problem when I was installed plugin via *.phar

Somebody know what is the problem can be?

Thank you.

greezybacon commented 8 years ago

There was a bug saving the password in a version of the main osTicket. What version are you running?

MarioGtz commented 7 years ago

I have the last versión of osTicket (v1.9.14) and I have the same problem, how do you resolve that issue with LDAP plugin?...

This is my bug...

PHP Fatal error: Call to a member function rootDse() on a non-object in phar:///var/www/html/include/plugins/auth-ldap.phar/authentication.php

ThankYou

ntozier commented 7 years ago

@MarioGtz this report is from Sept 2015 [over a year ago] which predates the release of the version that you are running. Neither the original author nor you have provided any system information, plugin version information, etc. So there is really no way to confirm that this is the exact same issue. Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance. The more information you give us the better we will be able to assist you. Thank you.