doubt regarding connection between db2 and freeradius

2003-10-02 Thread puneeth b

hello sir,
    this is regarding the doubt:
doubt regarding the connection between freeradius and db2.
sir, you told me to change
bob Password = "bob"   Reply-Message = "Hello, bob"make it:bob User-Password == "bob"    Reply-Message = "Hello, bob"
 
i did that
but still i'm getting the same message access-reject.
please tell me what might be my mistake.
 
also give me some more information on how to connect db2 to freeradius.
 
thanks in advance.puneeth b
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: doubts regarding connection between db2 and freeradius

2003-09-19 Thread Ulrich Walcher
Well, a part of the example on the website (FAQ/4.12) is definitely
wrong!
Anyway, a short look to the users file you edited would have solved the
problem, too.

see below

Am Fre, 2003-09-19 um 06.43 schrieb puneeth b:
> hello sir,
> i've already mailed u regarding some doubts,thanks for the
> reply.
>  
> i've few more doubts,
> Sir,
> Doubts regarding the freeradius server, kindly help me out.
> As given in section 4.12 of FAQ  Debugging it yourself , i did the
> following steps
> ---
> Step 1:
> it is given that
> 3. Ensure that you have localhost in your raddb/clients file.
> FreeRADIUS
> comes configured this way, so it should be there.
> so i found entry in
> /usr/local/etc/raddb/clients
> as
> # Client Name  Key
> # --
> #portmaster1.isp.com testing123
> #portmaster2.isp.com testing123
> #proxyradius.isp2.com TheirKey
> #localhost  testing123
> ---
> Step 2:
> 4. Ensure you have a valid user in your raddb/users file. If
> everything else
> fails, go to the top of the file and add the following entry:
> so i did entry in
> /usr/local/etc/raddb/users
> as it was given in the FAQ
> bob Password = "bob"
>i Reply-Message = "Hello, bob"
make it:
bob User-Password == "bob"
Reply-Message = "Hello, bob"

> 
> Step 3:
> it is given that
> 1. Run the server in debugging mode
> radiusd -sfxxyz -l stdout
> i got the message
> Ready to process requests.
> -
> Step 4:
> in another window i ran this command as given in the FAQ
> [EMAIL PROTECTED] root]# radtest bob bob localhost 0 testing123
> Sending Access-Request of id 185 to 127.0.0.1:1812
> User-Name = "bob"
> User-Password = "bob"
> NAS-IP-Address = localhost.localdomain
> NAS-Port = 0
> In the server side I got the below listed messages:
> rad_recv: Access-Request packet from host 127.0.0.1:1025, id=185,
> length=55
> User-Name = "bob"
> User-Password = "bob"
> NAS-IP-Address = 255.255.255.255
> NAS-Port = 0
> modcall: entering group authorize
>   modcall[authorize]: module "preprocess" returns ok
>   modcall[authorize]: module "chap" returns noop
> rlm_eap: EAP-Message not found
>   modcall[authorize]: module "eap" returns noop
> rlm_realm: No '@' in User-Name = "bob", looking up realm NULL
> rlm_realm: No such realm "NULL"
>   modcall[authorize]: module "suffix" returns noop
> users: Matched DEFAULT at 153
>   modcall[authorize]: module "files" returns ok
>   modcall[authorize]: module "mschap" returns noop
> modcall: group authorize returns ok
>   rad_check_password:  Found Auth-Type System
> auth: type "System"
> modcall: entering group authenticate
>   modcall[authenticate]: module "unix" returns notfound
> modcall: group authenticate returns notfound
> auth: Failed to validate the user.
> Delaying request 0 for 1 seconds
> Finished request 0
> Going to the next request
> --- Walking the entire request list ---
> Waking up in 1 seconds...
> --- Walking the entire request list ---
> Waking up in 1 seconds...
> --- Walking the entire request list ---
> Sending Access-Reject of id 185 to 127.0.0.1:1025
> Waking up in 4 seconds...
> --- Walking the entire request list ---
> Cleaning up request 0 ID 185 with timestamp 3f68d908
> Nothing to do.  Sleeping until we see a request.
> ---
> Later after few seconds in the Client window I got the following
> message
> [EMAIL PROTECTED] root]# radtest bob bob localhost 0 testing123
> Sending Access-Request of id 240 to 127.0.0.1:1812
> User-Name = "bob"
> User-Password = "bob"
> NAS-IP-Address = localhost.localdomain
> NAS-Port = 0
> rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=240,
> length=20
> --
> In FAQ it is given that we should get the following message:
>   Ensure that you see the Reply-Message above and that you do NOT see
> an
> "Access denied" message. If you get an Access-Accept message, this
> means that
> the server is running properly.
> 
> Sir, why am i getting the access-reject message from the server.
> Kindly help me how do i get the access-accept message from the server
> to ensure that the server is running properly?
> in anticipation of reply,
> regards,
> puneeth b.
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


doubts regarding connection between db2 and freeradius

2003-09-18 Thread puneeth b
hello sir,
    i've already mailed u regarding some doubts,thanks for the reply.
 
i've few more doubts,
Sir,Doubts regarding the freeradius server, kindly help me out.As given in section 4.12 of FAQ  Debugging it yourself , i did the following steps---Step 1:it is given that
3. Ensure that you have localhost in your raddb/clients file. FreeRADIUScomes configured this way, so it should be there.
so i found entry in/usr/local/etc/raddb/clientsas
# Client Name  Key# --#portmaster1.isp.com testing123#portmaster2.isp.com testing123#proxyradius.isp2.com TheirKey#localhost  testing123---Step 2:4. Ensure you have a valid user in your raddb/users file. If everything elsefails, go to the top of the file and add the following entry:
so i did entry in/usr/local/etc/raddb/usersas it was given in the FAQ
bob Password = "bob"    Reply-Message = "Hello, bob"Step 3:it is given that1. Run the server in debugging mode    radiusd -sfxxyz -l stdout
i got the message
Ready to process requests.-Step 4:in another window i ran this command as given in the FAQ
[EMAIL PROTECTED] root]# radtest bob bob localhost 0 testing123Sending Access-Request of id 185 to 127.0.0.1:1812    User-Name = "bob"    User-Password = "bob"    NAS-IP-Address = localhost.localdomain    NAS-Port = 0
In the server side I got the below listed messages:
rad_recv: Access-Request packet from host 127.0.0.1:1025, id=185, length=55    User-Name = "bob"    User-Password = "bob"    NAS-IP-Address = 255.255.255.255    NAS-Port = 0modcall: entering group authorize  modcall[authorize]: module "preprocess" returns ok  modcall[authorize]: module "chap" returns nooprlm_eap: EAP-Message not found  modcall[authorize]: module "eap" returns noop    rlm_realm: No '@' in User-Name = "bob", looking up realm NULL    rlm_realm: No such realm "NULL"  modcall[authorize]: module "suffix" returns noop    users: Matched DEFAULT at 153  modcall[authorize]: module "files" returns ok  modcall[authorize]: module "mschap" returns noopmodcall: group authorize returns
 ok  rad_check_password:  Found Auth-Type Systemauth: type "System"modcall: entering group authenticate  modcall[authenticate]: module "unix" returns notfoundmodcall: group authenticate returns notfoundauth: Failed to validate the user.Delaying request 0 for 1 secondsFinished request 0Going to the next request--- Walking the entire request list ---Waking up in 1 seconds...--- Walking the entire request list ---Waking up in 1 seconds...--- Walking the entire request list ---Sending Access-Reject of id 185 to 127.0.0.1:1025Waking up in 4 seconds...--- Walking the entire request list ---Cleaning up request 0 ID 185 with timestamp 3f68d908Nothing to do.  Sleeping until we see a request.---Later after few seconds in the Client window I got the following message
[EMAIL PROTECTED] root]# radtest bob bob localhost 0 testing123Sending Access-Request of id 240 to 127.0.0.1:1812    User-Name = "bob"    User-Password = "bob"    NAS-IP-Address = localhost.localdomain    NAS-Port = 0rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=240, length=20--In FAQ it is given that we should get the following message:
  Ensure that you see the Reply-Message above and that you do NOT see an"Access denied" message. If you get an Access-Accept message, this means thatthe server is running properly.Sir, why am i getting the access-reject message from the server.Kindly help me how do i get the access-accept message from the server to ensure that the server is running properly?in anticipation of reply,regards,puneeth b.
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: db2 and freeradius

2003-04-03 Thread Gregory G. V.
On 3:17am, Isnel Cantarelo wrote:

>
> I've tryed to run the radiusd process without using pthreads and It's worked
> very well
So it's linux problem, not freeradius/db2.
I think the db2 module has to be rewritten...
I can do it, but for now I don't have a needs, our freeradius do not work
with db2 directly, but through queue manager/transaction manager and for
accounting only. May be later, if nobody will do it.
And dbm module looks old, does not work with latest BerkeleyDB (I have
checked this a few monthes ago) but I have a needs to work with BerkeleDB,
so I'm thinking to implement it. It is because I do not see any needs in
MySQL (or others RDBMS) usage for a plain prepaid service (counter based
on credit, not time). For the accounting I'm going to use again existing
queue manager solution, we are quite sutisfied with it, it's allow us to
have a single database (db2) for all our CDR which come from many radius
over internet.

Gregory G. V.
---
Any opinions in this posting are my own and not those of my present
or previous employers.

According Isham Research's Devil's IT Dictionary mainframe is:
"an obsolete device still used by thousands of obsolete companies
serving billions of obsolete customers and making huge obsolete profits
for their obsolete shareholders.
And this year's run twice as fast as last year's."


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: db2 and freeradius

2003-04-03 Thread Isnel Cantarelo
I've tryed to run the radiusd process without using pthreads and It's worked 
very well.

Thank you very much Gregory.

From: "Gregory G. V." <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: db2 and freeradius
Date: Wed, 2 Apr 2003 17:12:17 +0300 (EEST)
On 1:53pm, Isnel Cantarelo wrote:

> It seems (because of settings) that's working in multithreaded mode
> I don't know if it's necessary to use that mode in my installation, I'll
> test it running radiusd in one single process
> By the way, how can I recognize wich is the function that originate the 
main
> thread? (to fix that situation in case I really need to use 
multithreaded
> mode)
main is always main :)
I meant 'main thread' a thread which started with "main()" function.
I've heard the 2.5 kernel got a normal pthread...
Because existing is not thread at all.
So - if it is a case, all connections to db2 has to be created in a thread
which started with 'main()', then that stupid architecture let other
'child' thread inherit them... absolutelly as a parent process and
children processes , and file descriptors (man fork)...
in solaris I do a thread creation each time I need to get a new connection
for any thread, and a thread can do something untill a new connection will
be ready, it is like ibm suggested - n connections by m threads.

Gregory G. V.
---
Any opinions in this posting are my own and not those of my present
or previous employers.
According Isham Research's Devil's IT Dictionary mainframe is:
"an obsolete device still used by thousands of obsolete companies
serving billions of obsolete customers and making huge obsolete profits
for their obsolete shareholders.
And this year's run twice as fast as last year's."


-
List info/subscribe/unsubscribe? See 
http://www.freeradius.org/list/users.html


_
Charla con tus amigos en línea mediante MSN Messenger: 
http://messenger.yupimsn.com/

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: db2 and freeradius

2003-04-02 Thread Gregory G. V.
On 1:53pm, Isnel Cantarelo wrote:

> It seems (because of settings) that's working in multithreaded mode
> I don't know if it's necessary to use that mode in my installation, I'll
> test it running radiusd in one single process
> By the way, how can I recognize wich is the function that originate the main
> thread? (to fix that situation in case I really need to use multithreaded
> mode)
main is always main :)
I meant 'main thread' a thread which started with "main()" function.
I've heard the 2.5 kernel got a normal pthread...
Because existing is not thread at all.
So - if it is a case, all connections to db2 has to be created in a thread
which started with 'main()', then that stupid architecture let other
'child' thread inherit them... absolutelly as a parent process and
children processes , and file descriptors (man fork)...
in solaris I do a thread creation each time I need to get a new connection
for any thread, and a thread can do something untill a new connection will
be ready, it is like ibm suggested - n connections by m threads.


Gregory G. V.
---
Any opinions in this posting are my own and not those of my present
or previous employers.

According Isham Research's Devil's IT Dictionary mainframe is:
"an obsolete device still used by thousands of obsolete companies
serving billions of obsolete customers and making huge obsolete profits
for their obsolete shareholders.
And this year's run twice as fast as last year's."



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: db2 and freeradius

2003-04-02 Thread Isnel Cantarelo
It seems (because of settings) that's working in multithreaded mode.
I don't know if it's necessary to use that mode in my installation, I'll 
test it running radiusd in one single process.
By the way, how can I recognize wich is the function that originate the main 
thread? (to fix that situation in case I really need to use multithreaded 
mode).

Thanks a lot.
Isnel.







From: "Gregory G. V." <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: db2 and freeradius
Date: Wed, 2 Apr 2003 16:23:39 +0300 (EEST)
On 1:15pm, Isnel Cantarelo wrote:

>
> Hi everybody
>
> I´m running freeradius version 7 and db2 version 7.1 under linux, 
everyting
> works fine while I'm debugging de code, but when I try to run radiusd in
> daemon mode it connects to database whell but at first intent to run a 
sql
> statement against database I always receive SQLERROR error code, and my
> session get disconnected
does freeradius work in multithread mode? does it create connection in a
'main' thread?
I had a problem with linux in multithread program, if a connection was not
created in a 'main' thread other threads could not use it. It's
undestendable if to remember that the 'threads' in linux is not
'threads'...
if you don't use multithreading, it is not your case.

Gregory G. V.
---
Any opinions in this posting are my own and not those of my present
or previous employers.
According Isham Research's Devil's IT Dictionary mainframe is:
"an obsolete device still used by thousands of obsolete companies
serving billions of obsolete customers and making huge obsolete profits
for their obsolete shareholders.
And this year's run twice as fast as last year's."
-
List info/subscribe/unsubscribe? See 
http://www.freeradius.org/list/users.html


_
Charla con tus amigos en línea mediante MSN Messenger: 
http://messenger.yupimsn.com/

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: db2 and freeradius

2003-04-02 Thread Gregory G. V.
On 1:15pm, Isnel Cantarelo wrote:

>
> Hi everybody
>
> I╢m running freeradius version 7 and db2 version 7.1 under linux, everyting
> works fine while I'm debugging de code, but when I try to run radiusd in
> daemon mode it connects to database whell but at first intent to run a sql
> statement against database I always receive SQLERROR error code, and my
> session get disconnected
does freeradius work in multithread mode? does it create connection in a
'main' thread?
I had a problem with linux in multithread program, if a connection was not
created in a 'main' thread other threads could not use it. It's
undestendable if to remember that the 'threads' in linux is not
'threads'...
if you don't use multithreading, it is not your case.


Gregory G. V.
---
Any opinions in this posting are my own and not those of my present
or previous employers.

According Isham Research's Devil's IT Dictionary mainframe is:
"an obsolete device still used by thousands of obsolete companies
serving billions of obsolete customers and making huge obsolete profits
for their obsolete shareholders.
And this year's run twice as fast as last year's."


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


db2 and freeradius

2003-04-02 Thread Isnel Cantarelo
Hi everybody.

I´m running freeradius version 7 and db2 version 7.1 under linux, everyting 
works fine while I'm debugging de code, but when I try to run radiusd in 
daemon mode it connects to database whell but at first intent to run a sql 
statement against database I always receive SQLERROR error code, and my 
session get disconnected.

Thanks in advance.
Isnel.


_
Charla con tus amigos en línea mediante MSN Messenger: 
http://messenger.yupimsn.com/

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html