TAstaClientSocket.DTUserName
Applies
to
TAstaClientSocket
Declaration
property DTUserName: string;
Description
ASTA provides powerful design time features by allowing a developer to access currently running Asta servers. This access does not require a password, a convenience that allows you to have easy access to your design time data without having to type in user names and passwords at every turn. It also opens up a potential security hole. Other ASTA developers, if they knew the IP address and the port of your ASTA server, would be able to gain access to your database if they were so inclined. One simple step that you can take to help avoid this problem is to switch your ASTA servers from the default port of 9000 to a different number above 1024.
To close the door completely, ASTA provides server-side and client-side properties that allow you to control who accesses the servers at design time. The AstaClientSocket and the AstaServerSocket both have DTUserName and DTPassword properties. Those properties are controlled by the AstaServerSocket's DTAccess property. DTAccess is defaulted to True. For maximum security, you should set DTAccess to false and then assign matching user name and password to the AstaClientSocket and AstaServerSocket DTUserName and DTPassword properties. If you set DTAccess to False, you must provide DTUserName and DTPassword values. Null values will not be accepted and the client will be terminated.