|
Lines 461-466
Link Here
|
| 461 |
{ |
470 |
{ |
| 462 |
struct cli_state *cli; /* New connection */ |
471 |
struct cli_state *cli; /* New connection */ |
| 463 |
pstring myname; /* Client name */ |
472 |
pstring myname; /* Client name */ |
|
|
473 |
struct passwd *pwd; |
| 464 |
|
474 |
|
| 465 |
/* |
475 |
/* |
| 466 |
* Get the names and addresses of the client and server... |
476 |
* Get the names and addresses of the client and server... |
|
Lines 491-499
Link Here
|
| 491 |
/* |
501 |
/* |
| 492 |
* last try. Use anonymous authentication |
502 |
* last try. Use anonymous authentication |
| 493 |
*/ |
503 |
*/ |
|
|
504 |
|
| 494 |
cli = smb_complete_connection(myname, server, port, "", "", |
505 |
cli = smb_complete_connection(myname, server, port, "", "", |
| 495 |
workgroup, share, 0); |
506 |
workgroup, share, 0); |
|
|
507 |
if (cli) { return cli; } |
| 496 |
|
508 |
|
|
|
509 |
/* give a chance for a passwordless NTLMSSP session setup */ |
| 510 |
|
| 511 |
pwd = getpwuid(geteuid()); |
| 512 |
if (pwd == NULL) { |
| 513 |
return NULL; |
| 514 |
} |
| 515 |
|
| 516 |
cli = smb_complete_connection(myname, server, port, pwd->pw_name, "", |
| 517 |
workgroup, share, 0); |
| 518 |
|
| 497 |
/* |
519 |
/* |
| 498 |
* Return the new connection... |
520 |
* Return the new connection... |
| 499 |
*/ |
521 |
*/ |