osTicket / osTicket-plugins

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

auth-ldap and Openldap #93

Open tuudik opened 8 years ago

tuudik commented 8 years ago

Hi, I have successfully configured auth-ldap for my openldap. When I configured, i saq following in ldap logs: Dec 30 14:47:08 ip-_--**-_ slapd[32349]: conn=1017 fd=22 ACCEPT from IP=.**._.:60877 (IP=0.0.0.0:110) Dec 30 14:47:08 ip-**-_--** slapd[32349]: conn=1017 op=0 SRCH base="" scope=0 deref=0 filter="(objectClass=)" Dec 30 14:47:08 ip----* slapd[32349]: conn=1017 op=0 SRCH attr=vendorName vendorVersion namingContexts altServer supportedExtension supportedControl supportedSASLMechanisms supportedLDAPVersion subschemaSubentry Dec 30 14:47:08 ip-_--**-_ slapd[32349]: conn=1017 op=0 SEARCH RESULT tag=101 err=53 nentries=0 text=authentication required Dec 30 14:47:08 ip--**-_- slapd[32349]: conn=1017 op=1 EXT oid=1.3.6.1.4.1.1466.20037 Dec 30 14:47:08 ip-**-_--** slapd[32349]: conn=1017 op=1 STARTTLS Dec 30 14:47:08 ip-_--**-_ slapd[32349]: conn=1017 op=1 RESULT oid= err=0 text= Dec 30 14:47:08 ip--**-_-_ slapd[32349]: conn=1017 fd=22 TLS established tlsssf=256 ssf=256 Dec 30 14:47:08 ip-**-_--** slapd[32349]: conn=1017 op=2 BIND dn="cn=osticket,ou=users,dc=ldap,dc=helpme,dc=net" method=128 Dec 30 14:47:08 ip-_--**-_ slapd[32349]: conn=1017 op=2 BIND dn="cn=osticket,ou=users,dc=ldap,dc=helpme,dc=net" mech=SIMPLE ssf=0 Dec 30 14:47:08 ip--**-_- slapd[32349]: conn=1017 op=2 RESULT tag=97 err=0 text= Dec 30 14:47:08 ip-**-_--** slapd[32349]: conn=1017 op=3 UNBIND Dec 30 14:47:08 ip-_--**-**_ slapd[32349]: conn=1017 fd=22 closed

But when trying to log in, then: Dec 30 14:47:49 ip-_--**-_ slapd[32349]: conn=1018 fd=22 ACCEPT from IP=.**._.:60886 (IP=0.0.0.0:110) Dec 30 14:47:49 ip-**-_--** slapd[32349]: conn=1018 op=0 SRCH base="" scope=0 deref=0 filter="(objectClass=)" Dec 30 14:47:49 ip----* slapd[32349]: conn=1018 op=0 SRCH attr=vendorName vendorVersion namingContexts altServer supportedExtension supportedControl supportedSASLMechanisms supportedLDAPVersion subschemaSubentry Dec 30 14:47:49 ip-_--**-_ slapd[32349]: conn=1018 op=0 SEARCH RESULT tag=101 err=53 nentries=0 text=authentication required Dec 30 14:47:49 ip--**-_- slapd[32349]: conn=1018 op=1 EXT oid=1.3.6.1.4.1.1466.20037 Dec 30 14:47:49 ip-**-_--** slapd[32349]: conn=1018 op=1 STARTTLS Dec 30 14:47:49 ip-_--**-_ slapd[32349]: conn=1018 op=1 RESULT oid= err=0 text= Dec 30 14:47:49 ip--**-_-_ slapd[32349]: conn=1018 fd=22 TLS established tlsssf=256 ssf=256 Dec 30 14:47:49 ip-**-_--** slapd[32349]: conn=1018 op=2 BIND dn="" method=128 Dec 30 14:47:49 ip-_--**-_ slapd[32349]: conn=1018 op=2 RESULT tag=97 err=0 text= Dec 30 14:47:49 ip--**-_- slapd[32349]: conn=1018 op=3 SRCH base="" scope=0 deref=0 filter="(objectClass=)" Dec 30 14:47:49 ip----* slapd[32349]: conn=1018 op=3 SRCH attr=supportedCapabilities Dec 30 14:47:49 ip-**-_--** slapd[32349]: conn=1018 op=3 SEARCH RESULT tag=101 err=53 nentries=0 text=authentication required Dec 30 14:47:49 ip-_--**-_ slapd[32349]: conn=1018 op=4 UNBIND Dec 30 14:47:49 ip--**-_-_ slapd[32349]: conn=1018 fd=22 closed

I have enabled TLS. What could be the issue?

In PHP Error log: PHP Fatal error: Call to undefined method Net_LDAP2_Error::getValue() in /home/helpme/public_html/support/include/plugins/auth-ldap/authentication.php on line 261

ntozier commented 8 years ago

Did you compile the plugin yourself or use the one from http://osticket/com/download