Hi Stefan,

right, the file .auth.conf is checked in /usr/local/var/lib/openvas/users, that 
is ok.

Now I've got

lib  auth:  DEBUG:2014-03-03 14h40.05 utc:2379: Authentication trial, order 1, 
method file -> 1. (w/method)
event auth:MESSAGE:2014-03-03 14h40.05 utc:2379: Authentication failure for 
user User
md   main:  DEBUG:2014-03-03 14h40.05 utc:2379: -> client: 
<authenticate_response status="400" status_text="Authentication failed"/>

 [method:file]
order=1
enabled=true

[method:ldap_connect]
order=2
enable=true
ldaphost=192.168.10.1:636
authdn=uid=%s,CN=etc,OU=...DC=domain,DC=de
allow-plaintext=false

the second method isn't checked now...

if I try this one I've got:

[method:file]
order=1
enabled=true

[method:ldap_connect]
order=2
enabled=false
...
[method:ldap]
order=3
enable=true
ldaphost=192.168.10.1:636/389
authdn=uid=%s,CN=etc.,OU=...,DC=domain,DC=de
allow-plaintext=false


lib  auth:  DEBUG:2014-03-03 14h48.02 utc:2426: Authentication trial, order 1, 
method file -> 1. (w/method)
lib  auth:  DEBUG:2014-03-03 14h48.02 utc:2426: Authentication trial, order 3, 
method ldap -> -1. (w/method)
event auth:MESSAGE:2014-03-03 14h48.02 utc:2426: Authentication error for user 
User
md   main:  DEBUG:2014-03-03 14h48.02 utc:2426: -> client: 
<authenticate_response status="500" status_text="Internal error"/>

Any ideas?

Thanks.
Regards

------------------------------------------------------------------------
 Cristian Iconaru

 just network services GmbH
 klausenburger str. 9
 81677 münchen
 fon +49 89 16785623
 fax +49 89 167856-75
 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.-----Ursprüngliche Nachricht-----
Von: Stefan Schwarz [mailto:[email protected]]
Gesendet: Montag, 3. März 2014 15:36
An: Cristian Iconaru
Cc: [email protected]
Betreff: Re: [Openvas-discuss] OpenVAS 6 LDAP/ADS Authentication Error

Hi Cristian,

please check that you're using the correct name and location. There was
a change some versions before from var/lib/openvas/users/.auth.conf to
var/lib/openvas/auth.conf.

My auth.conf (running OpenVAS Manager 5.0+beta7.SVN.r18806) is
configured for LDAP-usage like:

[method:ldap_connect]
enable=true
order=2
ldaphost=<yourhost>:636
authdn=uid=%s,ou=people,dc=...,dc=de
allow-plaintext=false

Stefan

Am 03.03.2014 14:23, schrieb Cristian Iconaru:
> Hi Stefan,
>
> auth.conf is in /usr/local/var/lib/openvas/users
>
> [method:file]
> order=1
> enabled=true
>
> ...the other methods are disabled till
>
> [method:ads]
> order=3
> enable=true
> # Might contain port like "host.domain:123"
> ldaphost=192.168.10.1
> authdn=%s@domain
> domain=domain.de
> role-attribute=memberof
> role-user-values=CN=user,OU=..,OU=..,OU=..,DC=domina,DC=de
> role-admin-values=CN=admin,OU=..,OU=..,OU=..,DC=domain,DC=de
> rule-attribute=rules
> ruletype-attribute=ruletype
>
> What would be the right values for the role attributes?
>
> Thanks.
> Regards
>
> ------------------------------------------------------------------------
>   Cristian Iconaru
>
>   just network services GmbH
>   klausenburger str. 9
>   81677 münchen
>   fon +49 89 16785623
>   fax +49 89 167856-75
>   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.-----Ursprüngliche 
> Nachricht-----
> Von: Openvas-discuss [mailto:[email protected]] Im 
> Auftrag von Stefan Schwarz
> Gesendet: Montag, 3. März 2014 14:14
> An: [email protected]
> Betreff: Re: [Openvas-discuss] OpenVAS 6 LDAP/ADS Authentication Error
>
> Hi,
>
> what's the content of your auth.conf and where it's located?
>
>          Stefan
>
> Am 03.03.2014 14:09, schrieb Cristian Iconaru:
>> Hi all,
>>
>> I've configured OpenVAS to authenticate to a LDAP/ADS Server but I've got 
>> this error in the logs.
>>
>> event auth:MESSAGE:2014-03-03 12h55.28 utc:1872: Authentication error for 
>> user User
>> md   main:  DEBUG:2014-03-03 12h55.28 utc:1872: -> client: 
>> <authenticate_response status="500" status_text="Internal error"/>
>>
>> Does anyone know what that means? Internal error is a bit ambiguous... I use 
>> OpenVAS 6 and both methods ldap/ads throw this error.
>> Has anyone had a working config for LDAP/ADS?
>>
>> Thanks.
>> Best regards
>>
>> Cristian Iconaru
> []

_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to