Samba 3.0.23 introduced support for adding printer ports
remotely using the Windows "Add Standard TCP/IP Port Wizard".
This option defines an external program to be executed when
smbd receives a request to add a new Port to the system.
The script is passed two parameters:
port name
device URI
The deviceURI is in the format of socket://<hostname>[:<portnumber>]
or lpd://<hostname>/<queuename>.
enum ports command
/etc/samba/scripts/addport.sh