абиллс не пишет логов

Установка, настройка, поддержка
Vasiliy

абиллс не пишет логов

Сообщение Vasiliy »

собсно сабж.
После выполнения radtest в логах радиуса появляются записи вида
Wed Apr 5 16:49:55 2006 : Auth: Login incorrect (external check said so): [testuser/testpassword] (from client localhost port 0),
а в /usr/abills/var/log пусто.
Команда chmod -R 777 /usr/abills/var/ ничего не дала...

~AsmodeuS~
Site Admin
Сообщения: 5746
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Сообщение ~AsmodeuS~ »

1 Скорее всего вы неправильно настроили радиус и он не отправляет запросы билингу

Vasiliy

Сообщение Vasiliy »

Настраивал все по инструкции.. Нет ли каких идей в чем именно я неправ?
Благодарю.

umet
Сообщения: 28
Зарегистрирован: Пт май 26, 2006 9:12 am
Контактная информация:

Сообщение umet »

Mne by problemy takie, ty by ne mog otpravit mne faily raddb/user,client.conf,radiusd.cong,crontab budu bezumno blagodaren na uabirov@mail.ru ?

umet
Сообщения: 28
Зарегистрирован: Пт май 26, 2006 9:12 am
Контактная информация:

Сообщение umet »

prosto ya chaynik chaynikom

umet
Сообщения: 28
Зарегистрирован: Пт май 26, 2006 9:12 am
Контактная информация:

Сообщение umet »

config.pl
# Template folder
$conf{TPL_DIR} = $base_dir . 'Abills/templates/';
$conf{LOG_DEBUG} = $base_dir . 'var/log/abills.debug';
$conf{WEB_LOGFILE} = 'weblog.log';
$conf{LOGFILE} = $base_dir . 'var/log/abills.log';
$conf{LOG_ACCT} = $base_dir . 'var/log/acct.log';

sozdal ya log faily v etih directoriyah vseravno abills ne pishet logov , chto delat ?

umet
Сообщения: 28
Зарегистрирован: Пт май 26, 2006 9:12 am
Контактная информация:

nadeyus otvetite ?

Сообщение umet »

i dazhe prava 777 ustanovil , chto mozhet na eto eshe povliyat ?

strochki v faile users ?
DEFAULT Auth-Type = Accept
Exec-Program-Wait = "/usr/abills/libexec/rauth.pl"

DEFAULT Acct-Status-Type == Start
Exec-Program = "/usr/abills/libexec/racct.pl"

DEFAULT Acct-Status-Type == Alive
Exec-Program = "/usr/abills/libexec/racct.pl"

DEFAULT Acct-Status-Type == Stop
Exec-Program = "/usr/abills/libexec/racct.pl" ?

axl
Сообщения: 54
Зарегистрирован: Ср май 24, 2006 8:17 am
Откуда: Stakhanov
Контактная информация:

Сообщение axl »

Или я не понял, или ты что то неправильно сделал..

Код: Выделить всё

DEFAULT Auth-Type = Accept
    Exec-Program-Wait = "/usr/abills/libexec/rauth.pl"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Это верно
А это должно быть в файле acct_users
VVVVVVVVVVVVVVVVVVVVVVV

Код: Выделить всё

DEFAULT Acct-Status-Type == Start
    Exec-Program = "/usr/abills/libexec/racct.pl"

DEFAULT Acct-Status-Type == Alive
    Exec-Program = "/usr/abills/libexec/racct.pl"

DEFAULT Acct-Status-Type == Stop
    Exec-Program = "/usr/abills/libexec/racct.pl"
Не забывай ставить пробелы перед Exec-Program, они критичны. А вообще стоит остановить радиус и запустить его из комстроки :

Код: Выделить всё

radiusd -xyz
Потом попробовать залогинить юзера. Радиус напишет тебе много интересного, у меня например ругался на горбатый модуль Cwd.pm, пришлось переустанавливать

umet
Сообщения: 28
Зарегистрирован: Пт май 26, 2006 9:12 am
Контактная информация:

Сообщение umet »

u menya radius ni s chem ne rugaetsya , avtorizaciya idet kak po maslu, a vot abills niv kakuyu

axl
Сообщения: 54
Зарегистрирован: Ср май 24, 2006 8:17 am
Откуда: Stakhanov
Контактная информация:

Сообщение axl »

Покажи, что пишет радиус в отладочном режиме?

Код: Выделить всё

radiusd -xyz
Покажи его вывод и многое прояснится..

umet
Сообщения: 28
Зарегистрирован: Пт май 26, 2006 9:12 am
Контактная информация:

Сообщение umet »

umet# radiusd -xyz
Starting - reading configuration files ...
Using deprecated naslist file. Support for this will go away soon.
Module: Loaded exec
rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Module: Instantiated exec (exec)
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded PAP
Module: Instantiated pap (pap)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded MS-CHAP
Module: Instantiated mschap (mschap)
Module: Loaded System
Module: Instantiated unix (unix)
Module: Loaded eap
rlm_eap: Loaded and initialized type md5
rlm_eap: Loaded and initialized type leap
rlm_eap: Loaded and initialized type gtc
rlm_eap: Loaded and initialized type mschapv2
Module: Instantiated eap (eap)
Module: Loaded preprocess
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
Module: Instantiated realm (suffix)
Module: Loaded files
Module: Instantiated files (files)
Module: Loaded Acct-Unique-Session-Id
Module: Instantiated acct_unique (acct_unique)
Module: Loaded detail
Module: Instantiated detail (detail)
Module: Loaded radutmp
Module: Instantiated radutmp (radutmp)
Initializing the thread pool...
Listening on authentication *:1812
Listening on accounting *:1813
Listening on proxy *:1814
Ready to process requests.

umet
Сообщения: 28
Зарегистрирован: Пт май 26, 2006 9:12 am
Контактная информация:

a esli radiusd -xxyz -l stdout

Сообщение umet »

umet# radiusd -xxyz -l stdout
Starting - reading configuration files ...
reread_config: reading radiusd.conf
Config: including file: /usr/local/etc/raddb/proxy.conf
Config: including file: /usr/local/etc/raddb/clients.conf
Config: including file: /usr/local/etc/raddb/snmp.conf
Config: including file: /usr/local/etc/raddb/eap.conf
Config: including file: /usr/local/etc/raddb/sql.conf
main: prefix = "/usr/local"
main: localstatedir = "/usr/local/var"
main: logdir = "/usr/local/var/log/radius"
main: libdir = "/usr/local/lib"
main: radacctdir = "/usr/local/var/log/radius/radacct"
main: hostname_lookups = no
main: max_request_time = 30
main: cleanup_delay = 5
main: max_requests = 1024
main: delete_blocked_requests = 0
main: port = 0
main: allow_core_dumps = yes
main: log_stripped_names = yes
main: log_file = "/usr/local/var/log/radius/radius.log"
main: log_auth = yes
main: log_auth_badpass = yes
main: log_auth_goodpass = yes
main: pidfile = "/usr/local/var/run/radiusd/radiusd.pid"
main: user = "(null)"
main: group = "(null)"
main: usercollide = no
main: lower_user = "no"
main: lower_pass = "no"
main: nospace_user = "no"
main: nospace_pass = "no"
main: checkrad = "/usr/local/sbin/checkrad"
main: proxy_requests = yes
proxy: retry_delay = 5
proxy: retry_count = 3
proxy: synchronous = no
proxy: default_fallback = yes
proxy: dead_time = 120
proxy: post_proxy_authorize = yes
proxy: wake_all_if_all_dead = no
security: max_attributes = 200
security: reject_delay = 1
security: status_server = no
main: debug_level = 0
read_config_files: reading dictionary
read_config_files: reading naslist
Using deprecated naslist file. Support for this will go away soon.
read_config_files: reading clients
read_config_files: reading realms
radiusd: entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded exec
exec: wait = yes
exec: program = "(null)"
exec: input_pairs = "request"
exec: output_pairs = "(null)"
exec: packet_type = "(null)"
rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Module: Instantiated exec (exec)
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded PAP
pap: encryption_scheme = "crypt"
Module: Instantiated pap (pap)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded MS-CHAP
mschap: use_mppe = yes
mschap: require_encryption = no
mschap: require_strong = no
mschap: with_ntdomain_hack = no
mschap: passwd = "(null)"
mschap: authtype = "MS-CHAP"
mschap: ntlm_auth = "(null)"
Module: Instantiated mschap (mschap)
Module: Loaded System
unix: cache = no
unix: passwd = "(null)"
unix: shadow = "(null)"
unix: group = "(null)"
unix: radwtmp = "/usr/local/var/log/radius/radwtmp"
unix: usegroup = no
unix: cache_reload = 600
Module: Instantiated unix (unix)
Module: Loaded eap
eap: default_eap_type = "md5"
eap: timer_expire = 60
eap: ignore_unknown_eap_types = no
eap: cisco_accounting_username_bug = no
rlm_eap: Loaded and initialized type md5
rlm_eap: Loaded and initialized type leap
gtc: challenge = "Password: "
gtc: auth_type = "PAP"
rlm_eap: Loaded and initialized type gtc
mschapv2: with_ntdomain_hack = no
rlm_eap: Loaded and initialized type mschapv2
Module: Instantiated eap (eap)
Module: Loaded preprocess
preprocess: huntgroups = "/usr/local/etc/raddb/huntgroups"
preprocess: hints = "/usr/local/etc/raddb/hints"
preprocess: with_ascend_hack = no
preprocess: ascend_channels_per_line = 23
preprocess: with_ntdomain_hack = no
preprocess: with_specialix_jetstream_hack = no
preprocess: with_cisco_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
realm: format = "suffix"
realm: delimiter = "@"
realm: ignore_default = no
realm: ignore_null = no
Module: Instantiated realm (suffix)
Module: Loaded files
files: usersfile = "/usr/local/etc/raddb/users"
files: acctusersfile = "/usr/local/etc/raddb/acct_users"
files: preproxy_usersfile = "/usr/local/etc/raddb/preproxy_users"
files: compat = "no"
Module: Instantiated files (files)
Module: Loaded Acct-Unique-Session-Id
acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"
Module: Instantiated acct_unique (acct_unique)
Module: Loaded detail
detail: detailfile = "/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d"
detail: detailperm = 384
detail: dirperm = 493
detail: locking = no
Module: Instantiated detail (detail)
Module: Loaded radutmp
radutmp: filename = "/usr/local/var/log/radius/radutmp"
radutmp: username = "%{User-Name}"
radutmp: case_sensitive = yes
radutmp: check_with_nas = yes
radutmp: perm = 384
radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Initializing the thread pool...
thread: start_servers = 5
thread: max_servers = 32
thread: min_spare_servers = 3
thread: max_spare_servers = 10
thread: max_requests_per_server = 0
thread: cleanup_delay = 5
Thread spawned new child 1. Total threads in pool: 1
Thread spawned new child 2. Total threads in pool: 2
Thread spawned new child 3. Total threads in pool: 3
Thread spawned new child 4. Total threads in pool: 4
Thread spawned new child 5. Total threads in pool: 5
Thread pool initialized
Listening on authentication *:1812
Listening on accounting *:1813
Listening on proxy *:1814
Ready to process requests.
Thread 1 waiting to be assigned a request
Thread 2 waiting to be assigned a request
Thread 3 waiting to be assigned a request
Thread 4 waiting to be assigned a request
Thread 5 waiting to be assigned a request

umet
Сообщения: 28
Зарегистрирован: Пт май 26, 2006 9:12 am
Контактная информация:

Сообщение umet »

a psle to kak protaestiroval :
radtest testuser testpassword 127.0.0.1:1812 0 radsecret 0 127.0.0.1

radius pishet :
rad_recv: Access-Request packet from host 127.0.0.1:56947, id=194, length=66
--- Walking the entire request list ---
Waking up in 31 seconds...
Threads: total/active/spare threads = 5/0/5
Thread 1 got semaphore
Thread 1 handling request 0, (1 handled so far)
User-Name = "testuser"
User-Password = "testpassword"
NAS-IP-Address = 127.0.0.1
NAS-Port = 0
Framed-Protocol = PPP
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
modcall[authorize]: module "preprocess" returns ok for request 0
modcall[authorize]: module "chap" returns noop for request 0
modcall[authorize]: module "mschap" returns noop for request 0
rlm_realm: No '@' in User-Name = "testuser", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 0
rlm_eap: No EAP-Message, not doing EAP
modcall[authorize]: module "eap" returns noop for request 0
users: Matched entry testuser at line 94
modcall[authorize]: module "files" returns ok for request 0
modcall: group authorize returns ok for request 0
rad_check_password: Found Auth-Type Local
auth: type Local
auth: user supplied User-Password matches local User-Password
radius_xlat: 'Hello, testuser'
Login OK: [testuser/testpassword] (from client localhost port 0)
Sending Access-Accept of id 194 to 127.0.0.1:56947
Reply-Message = "Hello, testuser"
Finished request 0
Going to the next request
Thread 1 waiting to be assigned a request

Stas
Сообщения: 64
Зарегистрирован: Ср май 31, 2006 6:07 am

Сообщение Stas »

umet писал(а):a psle to kak protaestiroval :
radtest testuser testpassword 127.0.0.1:1812 0 radsecret 0 127.0.0.1

radius pishet :
rad_recv: Access-Request packet from host 127.0.0.1:56947, id=194, length=66
--- Walking the entire request list ---
Waking up in 31 seconds...
Threads: total/active/spare threads = 5/0/5
Thread 1 got semaphore
Thread 1 handling request 0, (1 handled so far)
User-Name = "testuser"
User-Password = "testpassword"
NAS-IP-Address = 127.0.0.1
NAS-Port = 0
Framed-Protocol = PPP
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
modcall[authorize]: module "preprocess" returns ok for request 0
modcall[authorize]: module "chap" returns noop for request 0
modcall[authorize]: module "mschap" returns noop for request 0
rlm_realm: No '@' in User-Name = "testuser", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 0
rlm_eap: No EAP-Message, not doing EAP
modcall[authorize]: module "eap" returns noop for request 0
users: Matched entry testuser at line 94
modcall[authorize]: module "files" returns ok for request 0
modcall: group authorize returns ok for request 0
rad_check_password: Found Auth-Type Local
auth: type Local
auth: user supplied User-Password matches local User-Password
radius_xlat: 'Hello, testuser'
Login OK: [testuser/testpassword] (from client localhost port 0)
Sending Access-Accept of id 194 to 127.0.0.1:56947
Reply-Message = "Hello, testuser"
Finished request 0
Going to the next request
Thread 1 waiting to be assigned a request
У тебя нет запроса скрипта - проверь кофигурацию радиуса. И закомментируй chap, mschap, etc.

umet
Сообщения: 28
Зарегистрирован: Пт май 26, 2006 9:12 am
Контактная информация:

Сообщение umet »

Zakomentiroval moduli poluchil

rad_recv: Access-Request packet from host 127.0.0.1:58489, id=223, length=66
User-Name = "testuser"
User-Password = "testpassword"
NAS-IP-Address = 127.0.0.1
NAS-Port = 0
Framed-Protocol = PPP
Login OK: [testuser/testpassword] (from client localhost port 0)
Sending Access-Accept of id 223 to 127.0.0.1:58489
Reply-Message = "Hello, testuser"

Ответить