Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Gnu/Linux in genere, se l'argomento è specifico alla Slackware usate uno dei forum Slackware o Slackware64.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
root@mela:~# radiusd -X
rlm_eap: Loaded and initialized type md5
rlm_eap: Loaded and initialized type leap
gtc: challenge = "Password: "
gtc: auth_type = "PAP"
rlm_eap: Loaded and initialized type gtc
rlm_eap: Failed to link EAP-Type/tls: rlm_eap_tls.so: cannot open shared object file: No such file or directory
radiusd.conf[10]: eap: Module instantiation failed.
radiusd.conf[1961] Unknown module "eap".
radiusd.conf[1908] Failed to parse authenticate section.
Il problema DOVREBBE essere la mancanza della libreria rm_eap_tls.so che infatti sul mio sistema non esiste.
Ho cercato in rete e questo problema sembra lo abbiano molti utenti Debian/Ubuntu e le soluzioni possibili sono solo per Debian.
Cosa posso fare? Grazie anticipatamente a chiunque mi voglia dare una mano.
Ultima modifica di EMIX il sab 1 set 2007, 13:38, modificato 2 volte in totale.
Prova a scaricare il seguente pacchetto per Mandriva. Fai la conversione con rpm2tgz per portarlo da rpm a tgz (puoi anche installarlo direttamente in rpm) ed installalo. Il pacchetto contiene la libreria che ti manca. Prova a vedere se così risolvi.
Purtroppo nulla.
Ho installato il pacchetto e in effetti ora questa libreria è in /usr/lib/freeradius/file:///usr/lib/freeradius/rlm_eap_tls.so
Poi ho riavviato il pc e lanciato radius -X ma purtroppo c'è sempre il solito errore.
Devo reinstallare freeradius( ora è installato da sorgenti)?
Io non mi spiego una cosa, nel pacchetto sorgente di freeradius c'è la directory: freeradius-1.1.7/src/modules/rlm_eap/types/rlm_eap_ttls che contiene a sua volta un config, make e degli altri file. Perchè in fase di make o makeinstall non mi ha installato questa benedetta libreria? Ci può essere qualche problema con altri programmi da cui dipende (openssl?)?
GRAZIE MILLE
Don't forget to read supplied documentation first, including the configuration files. As with many free software projects, FreeRADIUS could use more documentation. Until such documentation is available, the only place that configuration items are documented is in the configuration files themselves.
If you have problems when trying to run FreeRADIUS, and you see error messages like:
rlm_sql: Could not link driver rlm_sql_mysql: file not found
Then the shared libraries on your system are misconfigured
Perchè le librerie dovrebbero essere mal configurate?
It says "Could not link ... file not found", what do I do?
You may see an error message like the one below, when you try to run the server:
Module: Loaded SQL 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[50]: sql: Module instantiation failed.
There are only a few things that can be happening:
1) The 'mysql_config' cannot be found in $PATH. Try running "./configure | grep mysql_config" and see if you get the follows:
checking for mysql_config... no
configure: WARNING: mysql libraries not found. Use --with-mysql-lib-dir=<path>.
configure: WARNING: sql submodule 'mysql' disabled
If it is, simply do something like "export $PATH=$PATH:/usr/local/mysql/bin" and "./configure | grep mysql_config" again to make sure you get:
checking for mysql_config... yes
Then you should run "make;make install" again.
2) You put shared libraries into a place where your linker cannot find them.
Everyone blames FreeRADIUS because it's the one printing the error message. But it just gets the error message from your linker.
3) You don't have static libraries for SQL clients on your system. So doing "./configure --disable-shared;make" doesn't help.
The 'make' process WILL print out error messages saying it's creating a static library which links to a dynamic one. If your linker is misconfigured (see #1), then FreeRADIUS still won't work.
So you probably ignored the error/warning messages produced during the 'make' stage. That's bad.
And libtool still does dynamic linking when told to do static linking, instead of failing to do the build. It should be taken out and shot.
There is nothing you can do to FreeRADIUS to fix issues with non-FreeRADIUS shared libraries. Fix your SQL libraries so that:
a) your linker can find them
or
b) There are static versions of those libraries available.
You can use the LD_LIBRARY_PATH environment variable in a script which starts the server, to set the paths where these libraries may be found.
One some systems, you can edit /etc/ld.so.conf, ('man ld.so', or 'man ldconfig'), and add the directory containing the dynamic libraries to that list.
See also the 'libdir' configuration directive in the 'radiusd.conf' file which is distributed with the server. It contains additional information.
If none of these solutions work, then your ONLY option is to build FreeRADIUS without dynamic libraries. This may be done via:
./configure --disable-shared
make
make install
Please READ the messages produced during the 'make' and 'make install' stages. While there is a lot of text to wade through, these messages may be the ONLY source of information as to what's wrong your system.
Il fatto che ricevi sempre lo stesso errore riferito alla libreria mancante è strano. Il riavvio dovrebbe lanciare il comando ldconfig che quindi dovrebbe rilevare le nuove librerie installate. Comunque............
...............prova ad installare (se non lo hai già fatto) la versione pacchettizata per Slackware 10.2:
read_config_files: reading dictionary
Errors reading dictionary: dict_init: /etc/raddb/dictionary[14]: Couldn't open dictionary "/usr/share/freeradius/dictionary": No such file or directory
Errors reading radiusd.conf
Cercando su google si vede che è un problema comune delle versioni di freeradius precedenti alla 1.1.0.
radiusd.conf[1682] Unknown Auth-Type "System" in authenticate section.
Alla riga 1682 inizia la parte dove evidentemente il server fa un controllo sui sistemi di autenticazione supportati dal sistema. Ho ancora provato a commentare tutta la parte inerente ad authenticate ma ho ricevuto un altro errore:
Ragazzi ho risolto il problema, ma vale SOLO se si installa da sorgenti.
Descrizione problema: il server freeradius non compila i moduli rlm_eap poichè non trova le librerie di openssl
Verificarsi del problema: ci si accorge del problema in due momenti, o nella fase di configure o nella fase di debug (radius -X)
root@mela:~# radiusd -X
rlm_eap: Loaded and initialized type md5
rlm_eap: Loaded and initialized type leap
gtc: challenge = "Password: "
gtc: auth_type = "PAP"
rlm_eap: Loaded and initialized type gtc
rlm_eap: Failed to link EAP-Type/tls: rlm_eap_tls.so: cannot open shared object file: No such file or directory
radiusd.conf[10]: eap: Module instantiation failed.
radiusd.conf[1961] Unknown module "eap".
radiusd.conf[1908] Failed to parse authenticate section.
Soluzione e passi per l'installazione:
1) PRIMA di iniziare il configure aggiungere la directory /usr/lib nel file /etc/ld.so.conf
2) digitare ldconfig
3) lanciare l'installazione ( ./configure, make, make install)