Hi everybody.
I am doing a simple app that look for shared folders in a remote computer, using QProcess class to launch the smbclient process.
When I execute in a system console the following command:
smbclient -L IP -U student%1234567
smbclient -L IP -U student%1234567
To copy to clipboard, switch view to plain text mode
where IP is the computer address, student is the user on the remote computer, and 1234567 his password to access it, I get a list of shared resources, otherwise, with the following code in QT4:
params <<"-L" << lineEdit->text()<<"-U student%1234567" ;
miProceso->start("smbclient",parametros);
QStringList params;
params <<"-L" << lineEdit->text()<<"-U student%1234567" ;
miProceso->start("smbclient",parametros);
To copy to clipboard, switch view to plain text mode
I got just a session setup failed: NT_STATUS_LOGON_FAILURE .
lineEdit is used to enter manually the IP address of the computer.
miProceso is an object of type QProcess.
Some help would be fine.
Regards!
Bookmarks