Well.

I think that correct location of auth.conf is
OPENVAS_STATE_DIR/AUTH_CONF_FILE so this might be like
/usr/local/var/lib/openvas/openvasmd/auth.conf

because:

#define AUTH_CONF_FILE "openvasmd/auth.conf"


maybe documentation is a bit out of date?

--
Eero

2015-04-14 15:08 GMT+03:00 Eero Volotinen <[email protected]>:

>
> Well, by looking sources:
>
>  key_file = g_key_file_new ();
>
>   config_file = g_build_filename (OPENVAS_STATE_DIR, AUTH_CONF_FILE, NULL);
>
>
>   if (!g_file_test (config_file, G_FILE_TEST_EXISTS))
>
>     {
>
>       g_log ("lib auth", G_LOG_LEVEL_INFO,
>
>              "Authentication configuration not found.\n");
>
>       initialized = TRUE;
>
>       return 0;
>
>     }
>
>
>   g_debug ("loading auth: %s", config_file);
>
> It says "Authentication configuration not found", if file does not
> exists. I cannot say much more without modifying source code.
> You could try starting openvasmd process under strace like that:
>
> strace -f -e open,g_build_filename,g_file_test -o
> /tmp/openvasmd.strace.log /usr/local/sbin/openvasmd and then
> then grep auth /tmp/openvasmd.strace.log to find correct location of auth
> config filename
>
> Eero
>
>
> 2015-04-14 14:57 GMT+03:00 Cristian Iconaru <[email protected]>:
>
>> Yes I have it here: /usr/local/var/lib/openvas and it is readable.
>>
>>
>>
>>     Cristian Iconaru
>>   just network services gmbh klausenburger str. 9 81677 münchen fon +49
>> 89 16785623 fax +49 89 16785675 www.junese.de   geht nicht gibt's nicht!
>> registergericht: münchen HRB 12 41 39, Steuernummer 829/29256, UstID
>> DE199333706, geschäftsführer: Oliver Prebeck, Martin Baumgartner
>>
>> Der Inhalt dieser E-Mail ist ausschließlich für den bezeichneten
>> Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail
>> oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form
>> der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des
>> Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall
>> mit dem Absender der E-Mail in Verbindung zu setzen.
>> The information contained in this email is intended solely for the
>> addressee. Access to this email by anyone else is unauthorized. If you are
>> not the intended recipient, any form of disclosure, reproduction,
>> distribution or any action taken or refrained from in reliance on it, is
>> prohibited and may be unlawful. Please notify the sender immediately.
>>
>> *Von:* [email protected] [mailto:[email protected]] *Im
>> Auftrag von *Eero Volotinen
>> *Gesendet:* Dienstag, 14. April 2015 13:55
>> *An:* Cristian Iconaru
>> *Cc:* [email protected]
>> *Betreff:* Re: [Openvas-discuss] OpenVAS 8 LDAP Authentication
>>
>>
>>
>> Well. auth.conf is not in "PREFIX/var/lib/openvas/"
>> (/usr/local/var/lib/openvas/auth.conf) or it is unreadable?
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> Eero
>>
>>
>>
>> 2015-04-14 14:39 GMT+03:00 Cristian Iconaru <[email protected]>:
>>
>> Any idea regarding the error?
>>
>>
>>
>> Thanks
>>
>>
>>
>>
>>
>>
>>
>> Cristian Iconaru
>>
>>
>> just network services gmbh
>>
>> klausenburger str. 9
>>
>> 81677 münchen
>>
>> fon +49 89 16785623
>>
>> fax +49 89 16785675
>>
>> www.junese.de
>>
>>
>>
>> *geht nicht gibt's nicht!*
>>
>>
>> registergericht: münchen HRB 12 41 39, Steuernummer 829/29256, UstID
>> DE199333706, geschäftsführer: Oliver Prebeck, Martin Baumgartner
>>
>> Der Inhalt dieser E-Mail ist ausschließlich für den bezeichneten
>> Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail
>> oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form
>> der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des
>> Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall
>> mit dem Absender der E-Mail in Verbindung zu setzen.
>> The information contained in this email is intended solely for the
>> addressee. Access to this email by anyone else is unauthorized. If you are
>> not the intended recipient, any form of disclosure, reproduction,
>> distribution or any action taken or refrained from in reliance on it, is
>> prohibited and may be unlawful. Please notify the sender immediately.
>>
>>
>>
>> *Von:* Cristian Iconaru
>> *Gesendet:* Dienstag, 14. April 2015 13:17
>> *An:* Eero Volotinen
>> *Cc:* [email protected]
>> *Betreff:* AW: [Openvas-discuss] OpenVAS 8 LDAP Authentication
>>
>>
>>
>> Sorry, yes, I installed ldap/ldap-devel before compiling the libraries.
>> It’s on.
>>
>>
>>
>>
>>
>> Cristian Iconaru
>>
>>
>> just network services gmbh
>>
>> klausenburger str. 9
>>
>> 81677 münchen
>>
>> fon +49 89 16785623
>>
>> fax +49 89 16785675
>>
>> www.junese.de
>>
>> *geht nicht gibt's nicht!*
>>
>>
>> registergericht: münchen HRB 12 41 39, Steuernummer 829/29256, UstID
>> DE199333706, geschäftsführer: Oliver Prebeck, Martin Baumgartner
>>
>> Der Inhalt dieser E-Mail ist ausschließlich für den bezeichneten
>> Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail
>> oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form
>> der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des
>> Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall
>> mit dem Absender der E-Mail in Verbindung zu setzen.
>> The information contained in this email is intended solely for the
>> addressee. Access to this email by anyone else is unauthorized. If you are
>> not the intended recipient, any form of disclosure, reproduction,
>> distribution or any action taken or refrained from in reliance on it, is
>> prohibited and may be unlawful. Please notify the sender immediately.
>>
>>
>>
>> *Von:* [email protected] [mailto:[email protected]
>> <[email protected]>] *Im Auftrag von *Eero Volotinen
>> *Gesendet:* Dienstag, 14. April 2015 13:05
>> *An:* Cristian Iconaru
>> *Cc:* [email protected]
>> *Betreff:* Re: [Openvas-discuss] OpenVAS 8 LDAP Authentication
>>
>>
>>
>> What you mean by default? Think ldap support is compiled only, if
>> ldap-devel package is installed in system before compilation.
>>
>> This is just a  my guess based on sources:
>>
>>
>>
>> -- Looking for libldap...
>>
>> --   No ldap library found - ldap support disabled
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> Eero
>>
>>
>>
>> 2015-04-14 13:53 GMT+03:00 Cristian Iconaru <[email protected]>:
>>
>> It has it on by default now
>>
>>
>>
>>
>>
>>
>>
>> Cristian Iconaru
>>
>>
>> just network services gmbh
>>
>> klausenburger str. 9
>>
>> 81677 münchen
>>
>> fon +49 89 16785623
>>
>> fax +49 89 16785675
>>
>> www.junese.de
>>
>>
>>
>> *geht nicht gibt's nicht!*
>>
>>
>> registergericht: münchen HRB 12 41 39, Steuernummer 829/29256, UstID
>> DE199333706, geschäftsführer: Oliver Prebeck, Martin Baumgartner
>>
>> Der Inhalt dieser E-Mail ist ausschließlich für den bezeichneten
>> Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail
>> oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form
>> der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des
>> Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall
>> mit dem Absender der E-Mail in Verbindung zu setzen.
>> The information contained in this email is intended solely for the
>> addressee. Access to this email by anyone else is unauthorized. If you are
>> not the intended recipient, any form of disclosure, reproduction,
>> distribution or any action taken or refrained from in reliance on it, is
>> prohibited and may be unlawful. Please notify the sender immediately.
>>
>>
>>
>> *Von:* [email protected] [mailto:[email protected]] *Im
>> Auftrag von *Eero Volotinen
>> *Gesendet:* Dienstag, 14. April 2015 12:50
>> *An:* Cristian Iconaru
>> *Cc:* [email protected]
>> *Betreff:* Re: [Openvas-discuss] OpenVAS 8 LDAP Authentication
>>
>>
>>
>> Did you compiled with ldap support? It requires something like
>> openldap-devel package during the compilation of software.
>>
>>
>>
>> --
>>
>> Eero
>>
>>
>>
>> 2015-04-14 13:23 GMT+03:00 Cristian Iconaru <[email protected]>:
>>
>> Hi,
>>
>>
>>
>> does anyone know if LDAP authentication works with Version 8?
>>
>> In the example.auth.conf it says that the file auth.conf should be copied
>> to PREFIX/var/lib/openvas/.
>>
>> Still I got this in the openvasmd logs:
>>
>>
>>
>> md   main:   INFO:2015-04-14 10h18.10 utc:15997:    OpenVAS Manager
>> version 6.0.1 (DB revision 146)
>>
>> md   main:   INFO:2015-04-14 10h18.11 utc:15998:    Manager bound to
>> address * port 9390
>>
>> lib auth:   INFO:2015-04-14 10h18.11 utc:15998: Authentication
>> configuration not found.
>>
>>
>>
>> Thanks.
>>
>> Best regards
>>
>>
>>
>>
>>
>> Cristian Iconaru
>>
>>
>> just network services gmbh
>>
>> klausenburger str. 9
>>
>> 81677 münchen
>>
>> fon +49 89 16785623
>>
>> fax +49 89 16785675
>>
>> www.junese.de
>>
>>
>>
>> *geht nicht gibt's nicht!*
>>
>>
>> registergericht: münchen HRB 12 41 39, Steuernummer 829/29256, UstID
>> DE199333706, geschäftsführer: Oliver Prebeck, Martin Baumgartner
>>
>> Der Inhalt dieser E-Mail ist ausschließlich für den bezeichneten
>> Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail
>> oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form
>> der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des
>> Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall
>> mit dem Absender der E-Mail in Verbindung zu setzen.
>> The information contained in this email is intended solely for the
>> addressee. Access to this email by anyone else is unauthorized. If you are
>> not the intended recipient, any form of disclosure, reproduction,
>> distribution or any action taken or refrained from in reliance on it, is
>> prohibited and may be unlawful. Please notify the sender immediately.
>>
>>
>>
>>
>> _______________________________________________
>> Openvas-discuss mailing list
>> [email protected]
>> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
>>
>>
>>
>>
>>
>>
>>
>
>
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to