postgresql + freeradius

2002-11-21 Thread mcelleri

Hi, I'm working with postgresql and pap authorize module..I have an entry in the
radcheck table of my database that contains a clear text passwod for the user,
so I change this value in the pap module in radius.conf like this:

pap {
encryption_scheme = clear
}

and this is my entry:

 id | username |   attribute   |  value   | op
+--+---+--+
  1 | mcelleri | User-Password | camaleon | :=



but when I prove to login with radtest ...the debug mode radiusd -X , gives me
this :


rad_recv: Access-Request packet from host 127.0.0.1:1148, id=224, length=58
User-Name = "mcelleri"
User-Password = "\025\361)\306e\206X\300v\373\216\213\235\016\354\360"
NAS-IP-Address = 255.255.255.255
NAS-Port-Id = "10"
rad_rmspace_pair:  User-Name now 'mcelleri'
rad_rmspace_pair:  User-Password now 'camaleon'
modcall: entering group authorize
  modcall[authorize]: module "preprocess" returns ok
rlm_realm: Looking up realm NULL for User-Name = "mcelleri"
rlm_realm: No such realm NULL
  modcall[authorize]: module "suffix" returns noop
users: Matched mcelleri at 2
  modcall[authorize]: module "files" returns ok
modcall: group authorize returns ok
  rad_check_password:  Found Auth-Type PAP
auth: type "PAP"
modcall: entering group authtype
rlm_pap: login attempt by "mcelleri" with password camaleon
rlm_pap: Could not find password for user mcelleri
  modcall[authenticate]: module "pap" returns invalid
modcall: group authtype returns invalid
auth: Failed to validate the user.
Login incorrect (rlm_pap: User password not available): [mcelleri/camaleon]
(from client localhost port 0)
Delaying request 0 for 1 seconds
Finished request 0
Going to the next request

I should use another type of authorization module?


-
This mail sent through IMP: http://horde.org/imp/

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



(no subject)

2002-11-21 Thread mcelleri


Hi,
I'm working with postgresql and pap authorize module..I have an entry in the
radcheck table of my database that contains a clear text passwod for the user,
so I change this value in the pap module in radius.conf like this:

pap {
encryption_scheme = clear
}


-
This mail sent through IMP: http://horde.org/imp/

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



freeradius + postgresql

2002-11-18 Thread mcelleri
Hi everybody ...At my company we were working with the Cistron Radius...but now 
we have to upgrade it to the freeradius server, we were working with 
authentication based in the shadow and the passwd files in our Linux 8.0 Sever
but now we want to make the freeradius work with a postgreslq database, I 
modified the module for accounting at the radius.conf and then I made the 
changes at the postgresql.conf file to make it work with our database..., but  
I need to know where we have to specified that the authentication for everyone 
of our users has to be done with the database too...For the Cistron radius we 
have to set the type of authentication to Mysql or postgresql in the users file 
for every entry ... but in the freeradius this is not an attribute for 
users ..., by the way ...if I make it works ...I have another question..in the 
configuration for the Cistron radius ..the passwords for the users were created 
by Linux in the shadow file ..but now, how I could get the same cyptology for 
the password field when I have to create a new user in the database ...


Thanks ..



-
This mail sent through IMP: http://horde.org/imp/

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