2011-11-02 3 views
1

System.IO.File.Copy를 사용하여 로컬 Windows/Sharepoint 서버에서 samba 공유로 파일을 복사하고 있습니다. 하지만 예외가 발생합니다.Sharepoint 웹 파트에서 samba 공유에 액세스 할 때의 문제

Logon failure: unknown user name or bad password. 
: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 
    at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) 
    at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) 

내가 로그온 한 사용자는 실제로 해당 공유에 액세스 할 수 있습니다. 나는. 수동으로 로컬 셰어 포인트 서버에서 드라이브를 매핑 할 수 있습니다.

sharepoint에서 공유에 대한 액세스 권한을 실행하는 서비스 계정도 지정하면 System.IO.File.Copy 작업이 제대로 작동합니다.

Samba 로그에서 sharepoint/windows가 내 사용자 이름을 Samba에 전달하지 않는다는 것을 알았습니다. 참조 : (check_ntlm_password : 매핑되지 않은 사용자 [] [] @ [FODV-SHRPT-01]의 비밀번호 확인 중) 아래 FAILED 로그를 참조하십시오. 사람이 I '에 도움이 되거 수 있다면

:

2 내 로그인을위한 하나의 실패, 1 상승 된 권한으로 서비스 계정의 성공적인 (I 다음은 삼바 로그의 관련 부분 믿는다) d 감사합니다. 성공적인 :

get_dc_list: preferred server list: "COPP-DC-01, copp-dc-01" 
[2011/11/02 11:01:27, 3] libsmb/namequery_dc.c:rpc_dc_name(117) 
    rpc_dc_name: Returning DC COPP-DC-01 (172.16.11.205) for domain OAKS 
[2011/11/02 11:01:27, 3] libsmb/cliconnect.c:cli_start_connection(1417) 
    Connecting to host=COPP-DC-01 
[2011/11/02 11:01:27, 3] lib/util_sock.c:open_socket_out(874) 
    Connecting to 172.16.11.205 at port 445 
[2011/11/02 11:01:27, 3] rpc_client/cli_pipe.c:rpc_pipe_bind(2081) 
    rpc_pipe_bind: Remote machine COPP-DC-01 pipe \lsarpc fnum 0x8005 bind request returned ok. 
[2011/11/02 11:01:27, 3] rpc_parse/parse_lsa.c:lsa_io_sec_qos(224) 
    lsa_io_sec_qos: length c does not match size 8 
[2011/11/02 11:01:27, 3] auth/auth.c:check_ntlm_password(221) 
    check_ntlm_password: Checking password for unmapped user [OAKS]\[dev_shrpt_app]@[FODV-SHRPT-01] with the new password interface 
[2011/11/02 11:01:27, 3] auth/auth.c:check_ntlm_password(224) 
    check_ntlm_password: mapped user is: [OAKS]\[dev_shrpt_app]@[FODV-SHRPT-01] 
[2011/11/02 11:01:27, 3] smbd/sec_ctx.c:push_sec_ctx(208) 
    push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 
[2011/11/02 11:01:27, 3] smbd/uid.c:push_conn_ctx(345) 
    push_conn_ctx(0) : conn_ctx_stack_ndx = 0 
[2011/11/02 11:01:27, 3] smbd/sec_ctx.c:set_sec_ctx(241) 
    setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 
[2011/11/02 11:01:27, 3] smbd/sec_ctx.c:pop_sec_ctx(339) 
    pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 
[2011/11/02 11:01:27, 3] libsmb/namequery.c:get_dc_list(1426) 
    get_dc_list: preferred server list: "COPP-DC-01, copp-dc-01" 
[2011/11/02 11:01:27, 3] libsmb/namequery_dc.c:rpc_dc_name(117) 
    rpc_dc_name: Returning DC COPP-DC-01 (172.16.11.205) for domain OAKS 
[2011/11/02 11:01:27, 3] libsmb/cliconnect.c:cli_start_connection(1417) 
    Connecting to host=COPP-DC-01 
[2011/11/02 11:01:27, 3] lib/util_sock.c:open_socket_out(874) 
    Connecting to 172.16.11.205 at port 445 
[2011/11/02 11:01:27, 3] rpc_client/cli_pipe.c:rpc_pipe_bind(2081) 
    rpc_pipe_bind: Remote machine COPP-DC-01 pipe \NETLOGON fnum 0x8016 bind request returned ok. 
[2011/11/02 11:01:27, 3] rpc_client/cli_pipe.c:rpc_pipe_bind(2081) 
    rpc_pipe_bind: Remote machine COPP-DC-01 pipe \NETLOGON fnum 0x8017 bind request returned ok. 
[2011/11/02 11:01:27, 3] auth/auth.c:check_ntlm_password(270) 
    check_ntlm_password: winbind authentication for user [dev_shrpt_app] succeeded 

실패 :

[2011/11/02 11:05:36, 3] libsmb/namequery.c:get_dc_list(1426) 
    get_dc_list: preferred server list: "COPP-DC-01, copp-dc-01" 
[2011/11/02 11:05:36, 3] libsmb/namequery_dc.c:rpc_dc_name(117) 
    rpc_dc_name: Returning DC COPP-DC-01 (172.16.11.205) for domain OAKS 
[2011/11/02 11:05:36, 3] libsmb/cliconnect.c:cli_start_connection(1417) 
    Connecting to host=COPP-DC-01 
[2011/11/02 11:05:36, 3] lib/util_sock.c:open_socket_out(874) 
    Connecting to 172.16.11.205 at port 445 
[2011/11/02 11:05:36, 3] rpc_client/cli_pipe.c:rpc_pipe_bind(2081) 
    rpc_pipe_bind: Remote machine COPP-DC-01 pipe \lsarpc fnum 0x8016 bind request returned ok. 
[2011/11/02 11:05:36, 3] rpc_parse/parse_lsa.c:lsa_io_sec_qos(224) 
    lsa_io_sec_qos: length c does not match size 8 
[2011/11/02 11:05:36, 3] auth/auth.c:check_ntlm_password(221) 
    check_ntlm_password: Checking password for unmapped user []\[]@[FODV-SHRPT-01] with the new password interface 
[2011/11/02 11:05:36, 3] auth/auth.c:check_ntlm_password(224) 
    check_ntlm_password: mapped user is: [OAKS]\[]@[FODV-SHRPT-01] 
[2011/11/02 11:05:36, 3] smbd/sec_ctx.c:push_sec_ctx(208) 
    push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 
[2011/11/02 11:05:36, 3] smbd/uid.c:push_conn_ctx(345) 
    push_conn_ctx(0) : conn_ctx_stack_ndx = 0 
[2011/11/02 11:05:36, 3] smbd/sec_ctx.c:set_sec_ctx(241) 
    setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 
[2011/11/02 11:05:36, 3] smbd/sec_ctx.c:pop_sec_ctx(339) 
    pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 
[2011/11/02 11:05:36, 3] auth/auth.c:check_ntlm_password(270) 
    check_ntlm_password: guest authentication for user [] succeeded 
[2011/11/02 11:05:36, 3] smbd/sec_ctx.c:push_sec_ctx(208) 
SNIP 
SNIP 
SNIP 
[2011/11/02 11:05:36, 3] smbd/connection.c:yield_connection(69) 
    Yielding connection to expest 
[2011/11/02 11:05:36, 3] smbd/error.c:error_packet(146) 
    error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_LOGON_FAILURE 
[2011/11/02 11:05:36, 3] smbd/process.c:process_smb(1110) 
    Transaction 4 of length 43 
[2011/11/02 11:05:36, 3] smbd/process.c:switch_message(914) 
    switch message SMBulogoffX (pid 3748242) conn 0x0 
[2011/11/02 11:05:36, 3] smbd/sec_ctx.c:set_sec_ctx(241) 
    setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 
[2011/11/02 11:05:36, 3] smbd/reply.c:reply_ulogoffX(1618) 
    ulogoffX vuid=101 
[2011/11/02 11:05:36, 3] smbd/process.c:timeout_processing(1359) 
    timeout_processing: End of file from client (client has disconnected). 
[2011/11/02 11:05:36, 3] smbd/sec_ctx.c:set_sec_ctx(241) 
    setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 
[2011/11/02 11:05:36, 3] smbd/connection.c:yield_connection(69) 
    Yielding connection to 
[2011/11/02 11:05:36, 3] smbd/server.c:exit_server_common(675) 
    Server exit (normal exit) 

답변

관련 문제