cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How do you uniquely identify database server?

10,598

Hello again, Is there a way in SQL Anywhere to uniquely identify the machine that runs the database? Is it possible to get mac address somehow? Or does there exist some server property which is different in every physical machine (and does not change through machine's life cycle)? Or is it possible to get external IP address?

The goal is to generate an md5 hash (password) from a date (system end of life) and some other values and one of these values should be unique so that the password wouldn't work if copied to another instance of the system.

Thanks in advance.

View Entire Topic
0 Likes

Well, I'm trying to find an answer myself but nothing came to my head simpler than this yet:

call xp_cmdshell('getmac > tmp_mac.txt');
select cast (xp_read_file('tmp_mac.txt') as long varchar) into @s;
// parse @s
VolkerBarth
Contributor
0 Likes

If you suspect malicious users, they surely are able to check which files your database is using (say, with SysInternals monitoring tools), and it might be not too difficult to replace the file with one with the wanted MAC address...

MCMartin
Participant
0 Likes

Most network drivers allow you to set the MAC-Adress explicitly, much easier than changing the file.

0 Likes

Well, thank you for all your answers. This kind of evaluation policy will be rejected.