Вход для пользователей

samsredir - ошибка работы с MySQL

При запуске squid с указанием параметра
redirect_program /usr/local/bin/samsredir
squid падает.

В логах:
(samsredir): MySQL query error: 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 'null).sams' at line 1

sams-1.0.1. Обновлен с предыдущей версии.
Скрипт обновления базы MySQL отработал без ошибок и изменений.

Без редиректора все работет отлично.

OC: RHEL4
БД: MySQL-4.1.20-2.RHEL4.1
КС: Squid-2.5.STABLE14-1.4E

samsredir -d что показывает?

[root@omega squid]# samsredir -d
Connected database: squidctrl:localhost user=sams
authentification: NCSA
Get SAMS users: 10 users found
0: asa akz 0. 0. 0. 0 1 479720214a437 1111111 0 - 1439 0 0 1 0
1: bvv akz 0. 0. 0. 0 1 479725cc54c47 0111111 360 - 1199 0 0 1 0
2: fender akz 0. 0. 0. 0 1 479722f6d588c 1111111 0 - 1439 0 0 1 0
3: fursov akz 0. 0. 0. 0 -1 479720214a437 1111111 0 - 1439 0 0 1 0
4: liga akz 0. 0. 0. 0 1 479725cc54c47 0111111 360 - 1199 0 0 1 0
5: popx akz 0. 0. 0. 0 1 479725cc54c47 0111111 360 - 1199 0 0 1 0
6: poterba akz 0. 0. 0. 0 1 479725cc54c47 0111111 360 - 1199 0 0 1 0
7: razard 0. 0. 0. 0 1 479720214a437 1111111 0 - 1439 0 0 1 0
8: trans akz 0. 0. 0. 0 1 479725ffdbe5c 0111111 360 - 1199 0 0 1 0
9: zzz akz 0. 0. 0. 0 -1 479720214a437 1111111 0 - 1439 0 0 1 0

Search URL lists in the users templates: found 0 URL lists

Sorting URL lists in the users templates: found 5 URL lists
Found 1 URL in the SAMS URL lists

Есть варианты?

Изображение пользователя Eagle.

Если я правильно понял, то было обновление ... samsredir точно обновился?

sams-1.0.1
PHP 5.2.2
Apache/1.3.37
squid 2.6.10
mysql 4.0.27
samba 3.0.24
freebsd 6.2-RELEASE
redirector sams
auth ntlm+ip

Да.
samsredir имеет дату создания на момент обновления. Никаких ошибок при компиляции и обновлении не было.

Изображение пользователя Eagle.

таблицу тестировали из SAMS ?
или таблица покривела или ...
sams-1.0.1
PHP 5.2.2
Apache/1.3.37
squid 2.6.10
mysql 4.0.27
samba 3.0.24
freebsd 6.2-RELEASE
redirector sams
auth ntlm+ip

Checking the SAMS database tables for the errors

check table globalsettings: OK -
check table groups: OK -
check table ipreplace: OK -
check table log: OK -
check table passwd: OK -
check table proxyes: OK -
check table reconfig: OK -
check table redirect: OK -
check table sams: OK -
check table sconfig: OK -
check table sguard: OK -
check table shablons: OK -
check table squidusers: OK -
check table tree: OK -
check table urlreplace: OK -
check table urls: OK -

check table cache: OK -
check table cachesum: OK -
check table files: OK -

There were found damaged tables in squidctrl: 0
There were found damaged tables in squidctrl: 0

Или?..

Изображение пользователя Eagle.

Странно все ...
Я пока не уверен ... влияет ли указание версии mysql в sams.conf ...
Может попробывать пересоздать базу(предварительно сделав дам)? А потом залить дамп ...
Или попробывать на чистой базе ...

sams-1.0.1
PHP 5.2.2
Apache/1.3.37
squid 2.6.10
mysql 4.0.27
samba 3.0.24
freebsd 6.2-RELEASE
redirector sams
auth ntlm+ip