mirror of
https://github.com/samba-team/samba.git
synced 2025-12-07 20:23:50 +03:00
Fetch authentication info before actually using it.
This commit is contained in:
@@ -438,6 +438,8 @@ struct smbw_server *smbw_server(char *server, char *share)
|
|||||||
ip = ipzero;
|
ip = ipzero;
|
||||||
ZERO_STRUCT(c);
|
ZERO_STRUCT(c);
|
||||||
|
|
||||||
|
get_auth_data_fn(server, share, &workgroup, &username, &password);
|
||||||
|
|
||||||
/* try to use an existing connection */
|
/* try to use an existing connection */
|
||||||
for (srv=smbw_srvs;srv;srv=srv->next) {
|
for (srv=smbw_srvs;srv;srv=srv->next) {
|
||||||
if (strcmp(server,srv->server_name)==0 &&
|
if (strcmp(server,srv->server_name)==0 &&
|
||||||
@@ -455,8 +457,6 @@ struct smbw_server *smbw_server(char *server, char *share)
|
|||||||
make_nmb_name(&calling, global_myname, 0x0);
|
make_nmb_name(&calling, global_myname, 0x0);
|
||||||
make_nmb_name(&called , server, 0x20);
|
make_nmb_name(&called , server, 0x20);
|
||||||
|
|
||||||
get_auth_data_fn(server, share, &workgroup, &username, &password);
|
|
||||||
|
|
||||||
DEBUG(4,("server_n=[%s] server=[%s]\n", server_n, server));
|
DEBUG(4,("server_n=[%s] server=[%s]\n", server_n, server));
|
||||||
|
|
||||||
if ((p=strchr(server_n,'#')) && strcmp(p+1,"1D")==0) {
|
if ((p=strchr(server_n,'#')) && strcmp(p+1,"1D")==0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user