Open-AudIT
https://www.open-audit.org/phpBB3/

No credentials returned from database Discovery Log error
https://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=6690
Page 1 of 1

Author:  Gwahlers [ Mon Nov 12, 2018 9:45 pm ]
Post subject:  No credentials returned from database Discovery Log error

Hello!

In the last few months im getting this error in my discovery log for every device:

2,469,592 2018-11-12 07:47:18 input discoveries No credentials returned from database 0.000000

If i click on the discovery button in device details page, the discovery can read the credentials correctly.
I attached both discovery logs.

Does somebody has any idea?

Some other Questions to the devoloper:
(1) Is there any possibility to migrate OA 2.2.7 on newer XAMPP versions with PHP 7.2 supported?
(2) In OA 1.X in device details page there were links for HTTP, HTTPS, VNC, RDP, etc. Any plans for bringing them back to OA 2.X?

OpenAudIT Details:
OpenAudit 2.2.7
Discovery running in five simultaneously for-loops reading .csv-Files with Networks started by Windows Task-Planner on Windows Server 2016

Greeting from germany
Gerrit Wahlers

Attachments:
2018-11-12 12_44_45-comparison discovery task vs button.pdf - Adobe Acrobat Reader DC.png
2018-11-12 12_44_45-comparison discovery task vs button.pdf - Adobe Acrobat Reader DC.png [ 143.41 KiB | Viewed 26618 times ]

Author:  Gwahlers [ Mon Nov 19, 2018 5:32 pm ]
Post subject:  Re: No credentials returned from database Discovery Log erro

After a fresh reinstall of OA 2.2.7 the problems are the same. Bulk Edit discovery works, running the script directly did'nt work.
Here some additional infos:

The parameters:
[code]set url=http://172.26.21.141/open-audit/index.php/input/discoveries
set logpath=D:\LOGS\
set submit_online=y
set echo_output=n
set create_file=n
set debugging=1
set os_scan=n[/code]

The command:
[code]cscript //nologo C:\xampplite\open-audit\other\discover_subnet.vbs subnet_range=%%e url=!url! submit_online=!submit_online! echo_output=!echo_output! create_file=!create_file! debugging=!debugging! discovery_id=%%a os_scan=!os_scan!>>!LOG![/code]

The CSV-File:
[code]Discovery_ID;Discovery_Name;Discovery_Desc;Subnet
1;00-Stade-01;1;Subnet - 172.26.21.0/24;172.26.21.0/24[/code]

My script works, but the discover_subnet.vbs retrieves the error shown above.

Author:  jpa [ Tue Nov 20, 2018 2:33 am ]
Post subject:  Re: No credentials returned from database Discovery Log erro

Maybe the discovery script not having org_id set is causing this? As a test set org_id in your discovery script. org_id is on the details tab of the Organization in Open-AudIT. If you have more than one use the Organization associated with the Credentials you want to use.

I don't use any of this functionality so this is just from reading the code and guessing. Maybe helps, maybe not.

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/