MariaDB GetServer list error

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Emil1957
Posts: 12
Joined: Thu 04 Aug 2016 12:10

MariaDB GetServer list error

Post by Emil1957 » Wed 24 Jun 2020 11:28

Hello,
we use UniDac 8.2.5 with Rad Studio 10.2.

I have MariaDB installed on my local machine (not MySQL). When trying to get a server list in the connection dialog of the TUniConnection i get an error "NetServerEnum Error 384". The same happens when I call
GetServerList('MySQL', cbxServerList.Items ).

With SQL Server it works, but only the servers are listed on other computers, not the one on localhost.

Emil1957
Posts: 12
Joined: Thu 04 Aug 2016 12:10

Re: MariaDB GetServer list error

Post by Emil1957 » Fri 26 Jun 2020 08:19

Any idea?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: MariaDB GetServer list error

Post by ViktorV » Fri 26 Jun 2020 15:02

When that method is called for the MySQL provider, it calls the Windows API NetServerEnum function. The 384 error may occur you can't connect to the file share because it's not secure. This share requires the obsolete SMB1 protocol, which is unsafe and could expose your system to attack.
Your system requires SMB2 or higher. For more info on resolving this issue, see: https://go.microsoft.com/fwlink/?linkid=852747

Post Reply