hydrian / TTRSS-Auth-LDAP

GitHub repository for Tiny Tiny RSS's auth_ldap plugin
https://github.com/hydrian/TTRSS-Auth-LDAP/wiki
Other
28 stars 21 forks source link

SQL error syntax #6

Closed pelicangris closed 10 years ago

pelicangris commented 10 years ago

Hi,

I have an issue after enabling auth_ldap which leads to the login to fail. My LDAP server holds email addresses which are the ones that are used to log onto tt-rss. I am not sure of the issue is in tt-rss or in auth_ldap. Any hint? Many thanks!

E_USER_WARNING (512)    classes/handler/public.php:564  Failed login attempt from xx.xx.xx.xx       18:24
E_USER_ERROR (256)  classes/db/mysqli.php:33    Query INSERT INTO ttrss_error_log (errno, errstr, filename, lineno, context, owner_uid, created_at) VALUES (Unknown User, 'myaddress@example.org', '', '', '', NULL, NOW()) failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'User, 'myaddress@example.org', '', '', '', NULL, NOW())' at line 3       18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 5 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 4 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 3 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_STRICT (2048) usr/local/etc/tt-rss/plugins/auth_ldap/init.php:241 Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context     18:24
E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:267  Non-static method PEAR::isError() should not be called statically       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:267  Non-static method PEAR::isError() should not be called statically       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:221  Non-static method PEAR::isError() should not be called statically       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:367  Non-static method PEAR::isError() should not be called statically       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:367  Non-static method PEAR::isError() should not be called statically       18:24
E_USER_NOTICE (1024)    :0  Schema Cache File: /tmp/ttrss-ldapCache-localhost:389.cache     18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 5 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 4 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_WARNING (2)   classes/logger.php:24   Missing argument 3 for Logger::log_error(), called in /usr/local/etc/tt-rss/plugins/auth_ldap/init.php on line 78 and defined       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2.php:208 Non-static method PEAR::isError() should not be called statically       18:24
E_STRICT (2048) usr/share/php/Net/LDAP2.php:198 Non-static method PEAR::isError() should not be called statically
hydrian commented 10 years ago

Ok. I will take look at it. I have an idea of what the issue is.

hydrian commented 10 years ago

Change default logging values from NULL to a blank string

pelicangris commented 10 years ago

thanks. sorry for the newbie question but... what's the token that needs to be changed?