Re: Freeradius with either LDAP or Mysql Error lib not found

2013-03-08 Thread Muhammad Nadeem
Fri Mar  8 13:44:46 2013 : Error: Could not link driver rlm_sql_mysql:
rlm_sql_mysql.so: cannot open shared object file: No such file or directory
It seems that your mysql drivers have not been installed successfully,
thanks to freeradius, it has the option to install mysql server along free
radius . (use this command sudo apt-get install mysql-server (somthing like
that if not work,, google it).
Hopefully problem will be solve


On Fri, Mar 8, 2013 at 12:51 PM, Iftakhul Anwar an...@meruvian.org wrote:

 Hi All

 I just try to config freeradius using either Mysql or LDAP.

 But i get same error like bellow :

 [errror Mysq]

 Fri Mar  8 13:44:46 2013 : Error: Could not link driver rlm_sql_mysql:
 rlm_sql_mysql.so: cannot open shared object file: No such file or directory
 Fri Mar  8 13:44:46 2013 : Error: Make sure it (and all its dependent
 libraries!) are in the search path of your system's ld.
 Fri Mar  8 13:44:46 2013 : Error: /usr/local/etc/raddb/sql.conf[22]:
 Instantiation failed for module sql
 Fri Mar  8 13:44:46 2013 : Error:
 /usr/local/etc/raddb/sites-enabled/default[177]: Failed to find sql in
 the modules section.
 Fri Mar  8 13:44:46 2013 : Error:
 /usr/local/etc/raddb/sites-enabled/default[69]: Errors parsing authorize
 section.

 i've read in some article that it's solved by installed  mysql-devel
 package.
 In this case i've installed  libmysqlclient-dev on my ubuntu 12.04

 But still get same error.

 It's also happen on my freeradius ldap?

 [error LDAP]
 /usr/local/etc/raddb/modules/ldap[29]: Failed to link to module
 'rlm_ldap': rlm_ldap.so: cannot open shared object file: No such file or
 directory
 /usr/local/etc/raddb/sites-enabled/default[305]: Failed to find ldap in
 the modules section.
 /usr/local/etc/raddb/sites-enabled/default[305]: Failed to parse ldap

 How i can solve this issue ?

 Thanks

 --
 *M.Iftakhul Anwar*
 Meruvian Integrator
 High Performance Computing / Cloud Computing (HPC/CC)


 Office Phone  : 021-93586577
 Mobile Phone : 085215331477
 Blog   :  http://blog.mervpolis.com/roller/anwar
 FB :  http://www.facebook.com/troya.adromeda
 Website : www.meruvian.org


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




-- 
Best Regards
Muhammad Nadeem
Muhammad Ali Jinnah University
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Freeradius with either LDAP or Mysql Error lib not found

2013-03-08 Thread Iftakhul Anwar
I've installed mysql-server on my system even before i installed freeradius
server.

Any another tips to solve this ?

On Fri, Mar 8, 2013 at 2:59 PM, Muhammad Nadeem mnadeem8...@gmail.comwrote:

 Fri Mar  8 13:44:46 2013 : Error: Could not link driver rlm_sql_mysql:
 rlm_sql_mysql.so: cannot open shared object file: No such file or directory
 It seems that your mysql drivers have not been installed successfully,
 thanks to freeradius, it has the option to install mysql server along free
 radius . (use this command sudo apt-get install mysql-server (somthing
 like that if not work,, google it).
 Hopefully problem will be solve


 On Fri, Mar 8, 2013 at 12:51 PM, Iftakhul Anwar an...@meruvian.orgwrote:

 Hi All

 I just try to config freeradius using either Mysql or LDAP.

 But i get same error like bellow :

 [errror Mysq]

  Fri Mar  8 13:44:46 2013 : Error: Could not link driver rlm_sql_mysql:
 rlm_sql_mysql.so: cannot open shared object file: No such file or directory
 Fri Mar  8 13:44:46 2013 : Error: Make sure it (and all its dependent
 libraries!) are in the search path of your system's ld.
 Fri Mar  8 13:44:46 2013 : Error: /usr/local/etc/raddb/sql.conf[22]:
 Instantiation failed for module sql
 Fri Mar  8 13:44:46 2013 : Error:
 /usr/local/etc/raddb/sites-enabled/default[177]: Failed to find sql in
 the modules section.
 Fri Mar  8 13:44:46 2013 : Error:
 /usr/local/etc/raddb/sites-enabled/default[69]: Errors parsing authorize
 section.

 i've read in some article that it's solved by installed  mysql-devel
 package.
 In this case i've installed  libmysqlclient-dev on my ubuntu 12.04

 But still get same error.

 It's also happen on my freeradius ldap?

 [error LDAP]
 /usr/local/etc/raddb/modules/ldap[29]: Failed to link to module
 'rlm_ldap': rlm_ldap.so: cannot open shared object file: No such file or
 directory
 /usr/local/etc/raddb/sites-enabled/default[305]: Failed to find ldap in
 the modules section.
 /usr/local/etc/raddb/sites-enabled/default[305]: Failed to parse ldap

 How i can solve this issue ?

 Thanks

 --
 *M.Iftakhul Anwar*
 Meruvian Integrator
 High Performance Computing / Cloud Computing (HPC/CC)


 Office Phone  : 021-93586577
 Mobile Phone : 085215331477
 Blog   :  http://blog.mervpolis.com/roller/anwar
 FB :  http://www.facebook.com/troya.adromeda
 Website : www.meruvian.org


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




 --
 Best Regards
 Muhammad Nadeem
 Muhammad Ali Jinnah University

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




-- 
*M.Iftakhul Anwar*
Meruvian Integrator
High Performance Computing / Cloud Computing (HPC/CC)


Office Phone  : 021-93586577
Mobile Phone : 085215331477
Blog   :  http://blog.mervpolis.com/roller/anwar
FB :  http://www.facebook.com/troya.adromeda
Website : www.meruvian.org
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Freeradius with either LDAP or Mysql Error lib not found

2013-03-08 Thread Muhammad Nadeem
Ok man..
set LD_LIBRARY_PATH to your mysql drivers,,
like for oracle it will be SET PATH=LD_LIBRARY_PATH=$ORACLE_HOME/lib


On Fri, Mar 8, 2013 at 1:02 PM, Iftakhul Anwar an...@meruvian.org wrote:

 I've installed mysql-server on my system even before i installed
 freeradius server.

 Any another tips to solve this ?


 On Fri, Mar 8, 2013 at 2:59 PM, Muhammad Nadeem mnadeem8...@gmail.comwrote:

 Fri Mar  8 13:44:46 2013 : Error: Could not link driver rlm_sql_mysql:
 rlm_sql_mysql.so: cannot open shared object file: No such file or directory
 It seems that your mysql drivers have not been installed successfully,
 thanks to freeradius, it has the option to install mysql server along free
 radius . (use this command sudo apt-get install mysql-server (somthing
 like that if not work,, google it).
 Hopefully problem will be solve


 On Fri, Mar 8, 2013 at 12:51 PM, Iftakhul Anwar an...@meruvian.orgwrote:

  Hi All

 I just try to config freeradius using either Mysql or LDAP.

 But i get same error like bellow :

 [errror Mysq]

  Fri Mar  8 13:44:46 2013 : Error: Could not link driver rlm_sql_mysql:
 rlm_sql_mysql.so: cannot open shared object file: No such file or directory
 Fri Mar  8 13:44:46 2013 : Error: Make sure it (and all its dependent
 libraries!) are in the search path of your system's ld.
 Fri Mar  8 13:44:46 2013 : Error: /usr/local/etc/raddb/sql.conf[22]:
 Instantiation failed for module sql
 Fri Mar  8 13:44:46 2013 : Error:
 /usr/local/etc/raddb/sites-enabled/default[177]: Failed to find sql in
 the modules section.
 Fri Mar  8 13:44:46 2013 : Error:
 /usr/local/etc/raddb/sites-enabled/default[69]: Errors parsing authorize
 section.

 i've read in some article that it's solved by installed  mysql-devel
 package.
 In this case i've installed  libmysqlclient-dev on my ubuntu 12.04

 But still get same error.

 It's also happen on my freeradius ldap?

 [error LDAP]
 /usr/local/etc/raddb/modules/ldap[29]: Failed to link to module
 'rlm_ldap': rlm_ldap.so: cannot open shared object file: No such file or
 directory
 /usr/local/etc/raddb/sites-enabled/default[305]: Failed to find ldap
 in the modules section.
 /usr/local/etc/raddb/sites-enabled/default[305]: Failed to parse ldap

 How i can solve this issue ?

 Thanks

 --
 *M.Iftakhul Anwar*
 Meruvian Integrator
 High Performance Computing / Cloud Computing (HPC/CC)


 Office Phone  : 021-93586577
 Mobile Phone : 085215331477
 Blog   :  http://blog.mervpolis.com/roller/anwar
 FB :  http://www.facebook.com/troya.adromeda
 Website : www.meruvian.org


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




 --
 Best Regards
 Muhammad Nadeem
 Muhammad Ali Jinnah University

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




 --
 *M.Iftakhul Anwar*
 Meruvian Integrator
 High Performance Computing / Cloud Computing (HPC/CC)


 Office Phone  : 021-93586577
 Mobile Phone : 085215331477
 Blog   :  http://blog.mervpolis.com/roller/anwar
 FB :  http://www.facebook.com/troya.adromeda
 Website : www.meruvian.org


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




-- 
Best Regards
Muhammad Nadeem
Muhammad Ali Jinnah University
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Freeradius with either LDAP or Mysql Error lib not found

2013-03-08 Thread Fajar A. Nugraha
If you install using packages, it's usually contained on separate
packages. For example:
http://packages.ubuntu.com/search?suite=quantalkeywords=freeradius

i.e. freeradius-mysql, freeradius-ldap.

-- 
Fajar



On Fri, Mar 8, 2013 at 7:02 PM, Iftakhul Anwar an...@meruvian.org wrote:
 I've installed mysql-server on my system even before i installed freeradius
 server.

 Any another tips to solve this ?


 On Fri, Mar 8, 2013 at 2:59 PM, Muhammad Nadeem mnadeem8...@gmail.com
 wrote:

 Fri Mar  8 13:44:46 2013 : Error: Could not link driver rlm_sql_mysql:
 rlm_sql_mysql.so: cannot open shared object file: No such file or directory
 It seems that your mysql drivers have not been installed successfully,
  thanks to freeradius, it has the option to install mysql server along free
  radius . (use this command sudo apt-get install mysql-server (somthing 
  like
  that if not work,, google it).
 Hopefully problem will be solve


 On Fri, Mar 8, 2013 at 12:51 PM, Iftakhul Anwar an...@meruvian.org
 wrote:

 Hi All

 I just try to config freeradius using either Mysql or LDAP.

 But i get same error like bellow :

 [errror Mysq]

 Fri Mar  8 13:44:46 2013 : Error: Could not link driver rlm_sql_mysql:
 rlm_sql_mysql.so: cannot open shared object file: No such file or directory
 Fri Mar  8 13:44:46 2013 : Error: Make sure it (and all its dependent
 libraries!) are in the search path of your system's ld.
 Fri Mar  8 13:44:46 2013 : Error: /usr/local/etc/raddb/sql.conf[22]:
 Instantiation failed for module sql
 Fri Mar  8 13:44:46 2013 : Error:
 /usr/local/etc/raddb/sites-enabled/default[177]: Failed to find sql in the
 modules section.
 Fri Mar  8 13:44:46 2013 : Error:
 /usr/local/etc/raddb/sites-enabled/default[69]: Errors parsing authorize
 section.

 i've read in some article that it's solved by installed  mysql-devel
 package.
 In this case i've installed  libmysqlclient-dev on my ubuntu 12.04

 But still get same error.

 It's also happen on my freeradius ldap?

 [error LDAP]
 /usr/local/etc/raddb/modules/ldap[29]: Failed to link to module
 'rlm_ldap': rlm_ldap.so: cannot open shared object file: No such file or
 directory
 /usr/local/etc/raddb/sites-enabled/default[305]: Failed to find ldap in
 the modules section.
 /usr/local/etc/raddb/sites-enabled/default[305]: Failed to parse ldap
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Freeradius with either LDAP or Mysql Error lib not found

2013-03-08 Thread Alan Buxey
As Fajar says, some distros split up the functions into separate packages (so 
you don't need to install loads of things just to have a basic server) use your 
package manager to find/install the sub packages


alan

--
This smartphone uses free WiFi around the world with eduroam, now that's what I 
call smart.

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

Re: Freeradius with either LDAP or Mysql Error lib not found

2013-03-08 Thread Iftakhul Anwar
HI All,

I just recompile my freeadius with specific directory library.I use command
:

 ./configure --with-mysql-lib-dir=/usr/lib/mysql
--with-ldap-lib-dir=/usr/lib/ldap

Now ldap and mysql running well :D

Thanks all

On Fri, Mar 8, 2013 at 3:41 PM, Alan Buxey a.l.m.bu...@lboro.ac.uk wrote:

  As Fajar says, some distros split up the functions into separate packages
 (so you don't need to install loads of things just to have a basic server)
 use your package manager to find/install the sub packages


 alan

 --
 This smartphone uses free WiFi around the world with eduroam, now that's
 what I call smart.




-- 
*M.Iftakhul Anwar*
Meruvian Integrator
High Performance Computing / Cloud Computing (HPC/CC)


Office Phone  : 021-93586577
Mobile Phone : 085215331477
Blog   :  http://blog.mervpolis.com/roller/anwar
FB :  http://www.facebook.com/troya.adromeda
Website : www.meruvian.org
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Freeradius with either LDAP or Mysql Error lib not found

2013-03-07 Thread Iftakhul Anwar
Hi All

I just try to config freeradius using either Mysql or LDAP.

But i get same error like bellow :

[errror Mysq]

Fri Mar  8 13:44:46 2013 : Error: Could not link driver rlm_sql_mysql:
rlm_sql_mysql.so: cannot open shared object file: No such file or directory
Fri Mar  8 13:44:46 2013 : Error: Make sure it (and all its dependent
libraries!) are in the search path of your system's ld.
Fri Mar  8 13:44:46 2013 : Error: /usr/local/etc/raddb/sql.conf[22]:
Instantiation failed for module sql
Fri Mar  8 13:44:46 2013 : Error:
/usr/local/etc/raddb/sites-enabled/default[177]: Failed to find sql in
the modules section.
Fri Mar  8 13:44:46 2013 : Error:
/usr/local/etc/raddb/sites-enabled/default[69]: Errors parsing authorize
section.

i've read in some article that it's solved by installed  mysql-devel
package.
In this case i've installed  libmysqlclient-dev on my ubuntu 12.04

But still get same error.

It's also happen on my freeradius ldap?

[error LDAP]
/usr/local/etc/raddb/modules/ldap[29]: Failed to link to module 'rlm_ldap':
rlm_ldap.so: cannot open shared object file: No such file or directory
/usr/local/etc/raddb/sites-enabled/default[305]: Failed to find ldap in
the modules section.
/usr/local/etc/raddb/sites-enabled/default[305]: Failed to parse ldap

How i can solve this issue ?

Thanks

-- 
*M.Iftakhul Anwar*
Meruvian Integrator
High Performance Computing / Cloud Computing (HPC/CC)


Office Phone  : 021-93586577
Mobile Phone : 085215331477
Blog   :  http://blog.mervpolis.com/roller/anwar
FB :  http://www.facebook.com/troya.adromeda
Website : www.meruvian.org
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Can't authenticate using LDAP (ldap+mysql+eap_ttls)

2011-02-07 Thread Alan Buxey
Hi,

 *It says Found Auth-Type = EAP although in sites-enabled/inner-tunnel I
 have uncommented:
 
 Auth-Type LDAP {
 ldap
 }

but if inner-tunnel is invoked that means its an EAP session being used

 By the way, if I try to autnenticate using same user via radtest server,
 of course, don't go into the inner-tunnel and so I get authenticated.

if you read the config files you will see that you can directly poke
the inner-tunnel on the localhost by using the right port - assuming
you are using a recent version of freeradius.  you should also be using
the eap testing tools rather than radtest if you want to directly
simulate the types of packets being sent to your server  (otherwise
you are comparing apples and oranges...or HTTP to SSH!)

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


Re: Can't authenticate using LDAP (ldap+mysql+eap_ttls)

2011-02-07 Thread Edgaras

 Hi,

 *It says Found Auth-Type = EAP although in sites-enabled/inner-tunnel
 I
 have uncommented:

 Auth-Type LDAP {
 ldap
 }

 but if inner-tunnel is invoked that means its an EAP session being
 used

Of course! How did I miss that!

So I should use EAP-TTLS/PAP? But how do I do that?



 By the way, if I try to autnenticate using same user via radtest server,
 of course, don't go into the inner-tunnel and so I get authenticated.

 if you read the config files you will see that you can directly poke
 the inner-tunnel on the localhost by using the right port - assuming
 you are using a recent version of freeradius.  you should also be using
 the eap testing tools rather than radtest if you want to directly
 simulate the types of packets being sent to your server  (otherwise
 you are comparing apples and oranges...or HTTP to SSH!)

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



-- 
Pagarbiai,

Edgaras Lukoševičius
Kauno kolegijos kompiuterių centro administratorius
Pramones 20, Kaunas.
edga...@kauko.lt

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

Re: LDAP and mySQL

2006-11-16 Thread Stefan Winter
Hello,

 The second and more important problem is this: I configured my freeradius
 server, I can authenticate with my users ldap... but I configured my mysql
 server too, but I can't to authenticate with the mysql users... the access
 is denied... even when the user and password is correct...
 ho
 I think that the server isn't looking for my users in mysql database.
 Someone knows how I can to test if the freeradius is looking for my users
 in my mysql database too?

The first step is: tell us exactly what you are trying to do. Do you want to 
use LDAP in combination with mySQL, or do you want to move from LDAP to 
mySQL.

In both cases: make sure sql.conf is configured correctly and that in the 
sections authorize {} and authenticate {} the sql line is activated.

Then, if you get back to the list, provide a debug output (start FreeRADIUS 
with radiusd -X), so that we know what's going on.

Oh, and please reply with a subject line that tells people a little more 
than Re: Digest 

Greetings,

Stefan Winter

-- 
Stefan WINTER

Stiftung RESTENA - Réseau Téléinformatique de l'Education Nationale et de 
la Recherche
Ingenieur Forschung  Entwicklung

6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg
E-Mail: [EMAIL PROTECTED]     Tel.:     +352 424409-1
http://www.restena.lu                Fax:      +352 422473


pgpmsQljKnilO.pgp
Description: PGP signature
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

LDAP and mySQL

2006-07-27 Thread Bubuk Gabrok

I have came thru a number of references which states that LDAP are
specialised database and optimized for read.

Would that make it a good idea to authenticate thru LDAP *but* the
accounting is handled thru mySQL ? Anybody have done this or am I
talking nonsense here?
(am 2 days old with RADIUS)
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: LDAP and mySQL

2006-07-27 Thread Nicolas Baradakis
Bubuk Gabrok wrote:

 I have came thru a number of references which states that LDAP are
 specialised database and optimized for read.

You should setup the system you're the most familiar with. Unless
you've *huge* RADIUS traffic on your site (more than 500 req/s) you
won't notice the performance differences.

 Would that make it a good idea to authenticate thru LDAP *but* the
 accounting is handled thru mySQL ? Anybody have done this or am I
 talking nonsense here?

This is common to use OpenLDAP for auth and MySQL for acct.

http://freeradius.org/radiusd/doc/ldap_howto.txt

-- 
Nicolas Baradakis

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


Re: LDAP and mySQL

2006-07-27 Thread Roger Thomas
Quoting Nicolas Baradakis [EMAIL PROTECTED]:
 
 This is common to use OpenLDAP for auth and MySQL for acct.
 
 http://freeradius.org/radiusd/doc/ldap_howto.txt

In that howto on the 2nd para of OVERVIEW: 
The radius servers will be accepting Radius auth packets and Radius
acct packets.  The accounting packets will be stored locally on each
radius server and then forwarded to the Accounting radius server,
using radrelay.  The Accounting radius server will store all the
radius information in some sort of database such as MySQL, Postgres,
or Oracle.

Question: My setup is rather simple. Just one server at the moment that houses 
the LDAP, RADIUS and mySQL server. Would it be possible to make mySQL accept 
the acct packets by default and thus making no use of radrelay altogether?

--
Roger


---
Sign Up for free Email at http://ureg.home.net.my/
---
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: LDAP and mySQL

2006-07-27 Thread Alan DeKok
Roger Thomas [EMAIL PROTECTED] wrote:
 Question: My setup is rather simple. Just one server at the moment
 that houses the LDAP, RADIUS and mySQL server. Would it be possible
 to make mySQL accept the acct packets by default and thus making no
 use of radrelay altogether?

  Yes.  radrelay is used only if you have two or more RADIUS servers.

  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


better LDAP or MYSQL ?

2004-02-08 Thread Ciolo_-^DusT^-_WebMaster
what is better to use to have the best performance, security and
flexibility... LDAP or MYSQL ?

byez
CioloWeb



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