(no subject)

2002-04-25 Thread bash


Hi,

You need to use the := operator and not the = operator (in the check)

DEFAULT Auth-Type := Accept

bash


On Thu, 25 Apr 2002, Daniel Salamanca wrote:

> 5.5   How do I permit access to any user regardless of password?
>
>
>   DEFAULT Auth-Type = Accept
>
>
> the solution in the faq.
>
> sorry for the email.
>
> - Original Message -
> From: "Victor Sanchez" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 25, 2002 10:58 AM
> Subject: authorize a user without pass
>
>
> > hello, i am a new user of freeradius and have a litlle cuestions.
> >
> > i have radiusd configured and tested with the sql module, I used the guide
> > of Scott Bartlett and all work fine.
> >
> > my question are.
> >
> > How i configure a user without PASS ?? y test to save the user and value
> > User-Password = '' a empty string, because if a put a NULL String the
> server
> > have a core dump. but the server say
> >
> >
> > rad_recv: Access-Request packet from host 195.57.80.215:53213, id=12,
> > length=26
> > User-Name = "paco"
> > rlm_sql: Reserving sql socket id: 4
> > SELECT id,UserName,Attribute,Value,op FROM radcheck WHERE Username =
> 'paco'
> > ORDER BY id
> > SELECT
> >
> radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupche
> > ck.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE
> > usergroup.Username = 'DEFAULT' AND usergroup.GroupName =
> > radgroupcheck.GroupName ORDER BY radgroupcheck.id
> > SELECT
> >
> radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgrouprep
> > ly.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE
> > usergroup.Username = 'DEFAULT' AND usergroup.GroupName =
> > radgroupreply.GroupName ORDER BY radgroupreply.id
> > rlm_sql: User DEFAULT not found and DEFAULT not found
> > rlm_sql: Released sql socket id: 4
> > Login incorrect: [paco/] (from nas UNKNOWN-NAS
> > port 0)
> >
> >
> > if no have login y put the correct values for DEFAULT and work, but for a
> > user without pass don't work.
> >
> > thanks for all and escuse for my poor english.
> >
> > Victor Sanchez.
> > --
> --
> > --
> > En español.
> >
> > Hola soy nuevo con el freeradius y tengo una pequeña pregunta.
> >
> > tengo el radiusd configurado y probado con autentificacion por sql, he
> usado
> > la guia de Scott Bartlett y todo funciona bien
> >
> > mi pregunta es:
> >
> > Como configuro un usuario sin clave ?? he probado con grabar el usuario y
> > como User-Password='' osea, la cadena vacia, porque si pongo NULL el
> > servidor da un core dump y se cierra. pero el server dice
> >
> >
> > rad_recv: Access-Request packet from host , id=12, length=26
> > User-Name = "paco"
> > rlm_sql: Reserving sql socket id: 4
> > SELECT id,UserName,Attribute,Value,op FROM radcheck WHERE Username =
> 'paco'
> > ORDER BY id
> > SELECT
> >
> radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupche
> > ck.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE
> > usergroup.Username = 'DEFAULT' AND usergroup.GroupName =
> > radgroupcheck.GroupName ORDER BY radgroupcheck.id
> > SELECT
> >
> radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgrouprep
> > ly.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE
> > usergroup.Username = 'DEFAULT' AND usergroup.GroupName =
> > radgroupreply.GroupName ORDER BY radgroupreply.id
> > rlm_sql: User DEFAULT not found and DEFAULT not found
> > rlm_sql: Released sql socket id: 4
> > Login incorrect: [paco/] (from nas UNKNOWN-NAS
> > port 0)
> >
> > si no tengo login, yo pongo los valores correctos con el usuario DEFAULT y
> > listo, pero con un usuario sin pass no funciona.
> >
> > gracias por todo y perdon por mi pobre ingles :)
> >
> > Victor Sanchez.
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> >
>
>
> -
> 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: Solaris 8 and rlm_sql_mysql library link problem

2002-03-28 Thread bash


Hi,

Do an ldd of the .so (in the lib dir)

ldd rlm_sql_mysql.so
libmysqlclient.so.10 =>  (file not found)
libnsl.so.1 =>   /usr/lib/libnsl.so.1
libresolv.so.2 =>/usr/lib/libresolv.so.2
libsocket.so.1 =>/usr/lib/libsocket.so.1
... etc.

Look on your system where this lib is and then put that specific dir
in the LD_LIBRARY_PATH. (probably /usr/local/lib/mysql/ for your install)

The ldd will show then if it found the module (like the other libs).

bash


On Thu, 28 Mar 2002, Marcello Lupo wrote:

> Ho to all,
> I'm tyying to installa freeradius 0.5 on a Sun Solaris 5.8.
> I had some problem while compiling the mysql module due to fact i was
> using the binary release of mysql, it don't find the libmysqlclient.
> After i get the source distribution of mysql, compiled and installed the
> rlm_sql_mysql module compile fine and was installed in /usr/local/lib .
>
> But the system is giving me this error (the same as before):
>
> rlm_sql: Could not link driver rlm_sql_mysql: file not found
> rlm_sql: Make sure it (and all its dependent libraries!) are in the
> search path of your system's ld.
> radiusd.conf[4]: sql: Module instantiation failed.
>
> this time the file il present but the system don't see it.
> I think may be a problem of the LD_LIBRARY_PATH that on SOlaris (i read)
> is not supported and there is not a ldconfig tool.
>
> So have you any idea to let Solaris see that libraries?
> Thank you in Advice.
> MArcello
>
> -
> 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: Bug vith Vendor-Specific?

2002-01-25 Thread bash

Hi,

Use +=:

> Cisco-AVPair += "unknown:service=ppp",
> Cisco-AVPair += "unknown:protocol=ip",
> Cisco-AVPair += "ip:dns-servers=192.168.0.250",

bash

On Fri, 25 Jan 2002, Stig Andersson wrote:

> Hi,
>
> Using Freeradius 0.3
>
> The user has this setting:
>
> hjg  Auth-Type := local, Password == "1234"
> Framed-IP-Address = 192.168.0.1+,
> Framed-IP-Netmask = 255.255.255.255,
> Cisco-AVPair = "unknown:service=ppp",
> Cisco-AVPair = "unknown:protocol=ip",
> Cisco-AVPair = "ip:dns-servers=192.168.0.250",
>
> But only ine of the Cisco-AVpairs is handled.
> See exerp from log ( -X) below:
> --
> rad_recv: Access-Request packet from host 193.15.69.149:1645, id=205, length=86
> NAS-IP-Address = 193.15.69.149
> NAS-Port = 18
> NAS-Port-Type = Async
> User-Name = "hjg"
> Calling-Station-Id = "0611555"
> CHAP-Password = "\221x\337\222,%+\221\345\215\3436\031*\211##"
> Service-Type = Framed-User
> Framed-Protocol = PPP
> modcall: entering group authorize
>   modcall[authorize]: module "preprocess" returns ok
>   modcall[authorize]: module "suffix" returns ok
> users: Matched DEFAULT at 12
> users: Matched DEFAULT at 45
>   modcall[authorize]: module "files" returns ok
> modcall: group authorize returns ok
>   rad_check_password:  Found Auth-Type Accept
>   rad_check_password: Auth-Type = Accept, accepting the user
> Login OK: [hjg/] (from nas as5200 port 18 cli 0611555)
> Sending Access-Accept of id 205 to 193.15.69.149:1645
> Framed-IP-Address = 192.168.0.1+
> Framed-IP-Netmask = 255.255.255.255
> Cisco-AVPair = "unknown:service=ppp"
> Finished request 5
> Going to the next request
>
>
> Anyone know why or how to get around?
>
> /Stig
> -
> N Y H E T E R!
> - Internetaccess (Modem/ISDN64+128 via Ymex - utan abonnemangskostnad!!!
>   ONLINE-registrering på www.ymex.se
> - Uppringd SMTP, slut på Telias monopol, nu kan även Ymex erbjuda!
> - Surf24 - en billig bredbandstjänst från Ymex för kunder i Härnösand/Älandsbro.
> -
> Get your emailed Web-forms into a database of your choice!!!
>   Checkout DBFORM V1.0, see details at http://www.ymex.se
> UucpGate V1.3a - The No:1 UUCP gateway for allmost any Email server!
> New release! Mailcoach V2.27 - The business E-mail solution. 
>http://www.mailcoach.com/
> -
> Ymex AB| Alvägen 7 | 871 52 Härnösand | Sweden | http://www.ymex.se/
>
> -
> 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: rlm_sql_mysql operator patch

2002-01-10 Thread bash

Hi,

Look in src/modules/rlm_sql/sql.c function: sql_userparse it is the
"mode/row[4]". The schema update is in the latest CVS.

bash

On Wed, 9 Jan 2002, Steve Sobol wrote:

> OK, this is getting aggravating. I built the 1/9 nightly snapshot off the
> ftp site (id's itself as FR 0.5) and... nothing.
> Searched through the source for rlm_sql and rlm_sql_mysql for any mention
> of the word "operator" - not found.
>
> Same with the latest source off CVS.
>
> I hope this is just a result of me being stupid. (It's happened before. :)
> Maybe I missed something.
>
> Does someone have a tarball with working operator code?
>
> Please? :)
>
>
>
> --
> JustThe.net LLC - Steve "Web Dude" Sobol, CTO  ICQ: 56972932/WebDude216
> website: http://JustThe.net  email: [EMAIL PROTECTED]  phone: 216.619.2NET
> postal: 5686 Davis Drive, Mentor On The Lake, OH 44060-2752  DalNet: ZX-2
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>
>


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