Re: sql - Replacing User-Password in config items with Cleartext-Password

2007-01-31 Thread Phil Mayers

TZieleniewski wrote:

the authorize section is the section which defines procedures 
responsible for granting a user an access to specific type of service.
For instance if we use sql or files module in authorize section we can 
intuitivly imagine that they do some checks about user data.
For instance checks if data are present in the users file or in the data 
base.


yes

And then in the authentication section they are for innstance 
authenticate with the pap module wich makes the verification between the 
data
received from access packet and those taken from the users file or data 
base.


yes

but there is another situation a little bit confusing when we for 
instance call the chap, mschap or ldap modules in the authorize section 
and then




in the authenticate section. Does it work this way that somehow those 
modules know that they are invoked in different phases(authorize, 
authenticate)


Yes. Taking e.g. "mschap" as an example - during the "authorize" phase, 
the module looks at the request and does this:


 * IF the ms-chap-challenge and ms-chap-response attributes exist
 * THEN set Auth-Type = MS-CHAP

During the "authenticate" phase it says:

 * Get ms-chap-challenge
 * Get User-Password from "config" items
 * Compute correct response
 * If corrct == ms-chap-response: ...


and perform different operations according to the needs??  Or for 
instance the digest module what those the authorize section really do??
Does it take any data from the users file ?? Or it just check the data 
format and stuff??

for instance

authorise {
preprocess
chap
mschap
}

authenticate {
authtype PAP {
   pap
}
authtype CHAP {
   chap
}
authtype MS-CHAP{
   mschap
}
}

I can really get the filling of those authtype declarations in the authenticate 
section
Im sure that few words of explanation will make me to understand everything.


Basically, the *algorithm* modules just check to see if they're 
applicable to a request during authorize. If they are applicable they 
arrange to run themselves again during authenticate, *after* data for 
authentication has been added to the request.


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


Re: sql - Replacing User-Password in config items with Cleartext-Password

2007-01-31 Thread TZieleniewski




Alan DeKok napisał(a):

  tzieleniewski wrote:
  
  
I am using mysql module as the authorization module and I get the following warning:
!!!
!!!Replacing User-Password in config items with Cleartext-Password. !!!
!!!
!!! Please update your configuration so that the "known good"   !!!
!!! clear text password is in Cleartext-Password, and not in User-Password. !!!
!!!

How can I force sql module to put the password value taken from the database into the Cleartext-Password instead od User-Password??

  
  
  Update the data in the SQL database?  You have the string
"User-Password".  Change it to "Cleartext-Password".

  
  
And one more question but about digest module:
Will it work if I will use a sql module in authorize section and then digest in the authentication?? 

  
  
  Yes.  You should list "digest" in the authorize section, too, as the
example config file shows.
  

Thanks for your answer.
Please answer my one more question so I will be sure I understand
matters right.

the authorize section is the section which defines procedures
responsible for granting a user an access to specific type of service.
For instance if we use sql or files module in authorize section we can
intuitivly imagine that they do some checks about user data.
For instance checks if data are present in the users file or in the
data base.
And then in the authentication section they are for innstance
authenticate with the pap module wich makes the verification between
the data 
received from access packet and those taken from the users file or data
base.
but there is another situation a little bit confusing when we for
instance call the chap, mschap or ldap modules in the authorize section
and then 
in the authenticate section. Does it work this way that somehow those
modules know that they are invoked in different phases(authorize,
authenticate)
and perform different operations according to the needs??  Or for
instance the digest module what those the authorize section really do??
Does it take any data from the users file ?? Or it just check the data
format and stuff??
for instance

authorise {
preprocess
chap
mschap
}

authenticate {
authtype PAP {
   pap
}
authtype CHAP {
   chap
}
authtype MS-CHAP{
   mschap
}
}

I can really get the filling of those authtype declarations in the authenticate section
Im sure that few words of explanation will make me to understand everything.

Thank for any help
Tomasz



  
  Alan DeKok.
--
  http://deployingradius.com   - The web site of the book
  http://deployingradius.com/blog/ - The blog
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


  




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

Re: sql - Replacing User-Password in config items with Cleartext-Password

2007-01-31 Thread Alan DeKok
tzieleniewski wrote:
> I am using mysql module as the authorization module and I get the following 
> warning:
> !!!
> !!!Replacing User-Password in config items with Cleartext-Password. 
> !!!
> !!!
> !!! Please update your configuration so that the "known good"   
> !!!
> !!! clear text password is in Cleartext-Password, and not in User-Password. 
> !!!
> !!!
> 
> How can I force sql module to put the password value taken from the database 
> into the Cleartext-Password instead od User-Password??

  Update the data in the SQL database?  You have the string
"User-Password".  Change it to "Cleartext-Password".

> And one more question but about digest module:
> Will it work if I will use a sql module in authorize section and then digest 
> in the authentication?? 

  Yes.  You should list "digest" in the authorize section, too, as the
example config file shows.

  Alan DeKok.
--
  http://deployingradius.com   - The web site of the book
  http://deployingradius.com/blog/ - The blog
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


sql - Replacing User-Password in config items with Cleartext-Password

2007-01-31 Thread tzieleniewski
Hi!

I am using mysql module as the authorization module and I get the following 
warning:
!!!
!!!Replacing User-Password in config items with Cleartext-Password. !!!
!!!
!!! Please update your configuration so that the "known good"   !!!
!!! clear text password is in Cleartext-Password, and not in User-Password. !!!
!!!

How can I force sql module to put the password value taken from the database 
into the Cleartext-Password instead od User-Password??

And one more question but about digest module:
Will it work if I will use a sql module in authorize section and then digest in 
the authentication?? 

Thank you for any help.
Bests
-Tomasz


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