Changeset 645 for trunk/client/src
- Timestamp:
- Oct 25, 2011, 9:14:03 PM (14 years ago)
- Location:
- trunk/client/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/src/Config.km_
r631 r645 16 16 # libz is needed by samba client, if it's found in the path leave the below definition blank. otherwise set it 17 17 Z_LIBDIR = 18 18 # set this to where the gcc_libs are. right now used to find binmode.obj 19 GCC_LIB=e:/usr/lib 19 20 # libsmb 3.3 is threadunsafe, change =0 to =1 if it works again 20 21 LIBSMB_THREAD_UNSAFE = LIBSMB_THREAD_SAFE=0 -
trunk/client/src/Makefile.kmk
r627 r645 54 54 $(SAMBA)/librpc \ 55 55 $(SAMBA)/lib/tdb/include \ 56 $(SAMBA)/lib/tevent \ 57 $(GCC_INC) 56 $(SAMBA)/lib/tevent 58 57 59 58 ndpsmb_LIBS = libsmbclient.a socket.a libtalloc.a libtdb.a libwbclient.a z 59 ndpsmb_LIBS += $(GCC_LIB)/binmode.obj 60 60 ndpsmb_LIBPATH = $(SAMBA)/source3/bin $(Z_LIBDIR) 61 61 -
trunk/client/src/smbwrp.c
r630 r645 465 465 char* dev_type; 466 466 int loginerror = 0; 467 NTSTATUS status; 467 468 468 469 zero_sockaddr(&ss); … … 550 551 551 552 /* try an anonymous login if it failed */ 552 if (!NT_STATUS_IS_OK(cli_session_setup(c, "", "", 1,"", 0, workgroup))) {553 debuglocal(4,"Anonymous login failed ");553 if (!NT_STATUS_IS_OK(cli_session_setup(c, "", "", 0,"", 0, workgroup))) { 554 debuglocal(4,"Anonymous login failed\n"); 554 555 cli_shutdown(c); 555 556 return 6; 556 557 } 558 debuglocal(4,"Anonymous login successful\n"); 559 status = cli_init_creds(c, "", lp_workgroup(), ""); 560 } else { 561 status = cli_init_creds(c, srv->username, workgroup, srv->password); 562 } 563 564 if (!NT_STATUS_IS_OK(status)) { 565 debuglocal(4,"cli_init_creds() failed\n"); 566 cli_shutdown(c); 567 // if loginerror is != 0 means normal login failed, but anonymous login worked 568 if (loginerror !=0) 569 return 6; 570 else 571 return 7; 557 572 } 558 573
Note:
See TracChangeset
for help on using the changeset viewer.