[Samba] oplock problem with teracopy (oplock_timeout_handler)

2008-07-23 Thread Adam Rosi-Kessel

Using Samba 1:3.0.28a-3 from Debian sid with a Windows XP SP3 client.

I'm have an odd problem using the third-party copy utility teracopy. 
Although copying from a samba share works fine with the default Windows 
Explorer client, if I use teracopy, the operation frequently gets stuck, 
and I see the following sort of errors repeatedly on the server:


smbd[24922]: [2008/07/19 10:30:31, 0] 
smbd/oplock.c:oplock_timeout_handler(356)

smbd[24922]:   Oplock break failed for file [...] -- replying anyway

Any ideas? Is there some reason teracopy would provoke an oplock issue 
but regular copy would not? Any settings that I might use as a workaround?


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Re: Can't mount samba drive or join domain with W2K3 server

2004-09-02 Thread Adam Rosi-Kessel
Paul Gienger wrote:
> ># net join -l -n my_computer_name -I shared_server_ip_address -U
> > kerberos_kinit_password my_username at my_domain failed: Improper
> > format of Kerberos configuration file
> This screams "you haven't set up kerberos yet".  Start reading here
> http://www.samba.org/samba/docs/man/Samba-Guide/unixclients.html#adssdm
> I know that doesn't have everything you need, but I can't find the link 
> I used to set up domain membership in active directory ATM.

Thanks, that's a good start.

Now I get a much shorter message:

##
# net ads join -Umy_username
my_username's password:
[2004/09/02 11:33:19, 0] libads/ldap.c:ads_add_machine_acct(1283)
  ads_add_machine_acct: Host account for my_machine already exists - modifying old 
account
[2004/09/02 11:33:19, 0] libads/ldap.c:ads_join_realm(1617)
  ads_add_machine_acct (akessel-linux): Insufficient access 
ads_join_realm: Insufficient access
##

I'm not sure why I have insufficient access; the machine was configured
before without a problem (originally a Windows box).

On the other hand:

##
# net rpc join -Umy_username
Password:
Joined domain .
##

So it looks like I can join successfully with rpc.

I still can't mount:

##
# mount shared_drive
cli_negprot: SMB signing is mandatory and we have disabled it.
16495: protocol negotiation failed
SMB connection failed
##

I'm unclear as to whether the ADS issue is linked with this mounting
issue.  Do I need to join with ADS before I'll be able mount the drive?
Or is there some way I can get SMB signing to work without getting ADS
to work?
-- 
Adam Rosi-Kessel
http://adam.rosi-kessel.org
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Can't mount samba drive or join domain with W2K3 server

2004-09-02 Thread Adam Rosi-Kessel
Please cc me on replies.

My employer recently upgraded to W2K3.  I have no control over the
employer's set up and limited access to information.  Under the old
server, everything was working fine.  Now I can't mount the shared drive
anymore.

I'm running Debian sid; samba 3.0.6-3.


# mount shared_drive
cli_negprot: SMB signing is mandatory and we have disabled it.
13681: protocol negotiation failed
SMB connection failed


I have added to smb.conf:


client use spnego = yes
client signing = mandatory 


This makes no difference.

I never had to join the domain/workgroup before, but I thought I would
try it as I've seen that suggested in some postings.  That doesn't work
either (output slightly sanitized for confidentiality):


# net join -l -n my_computer_name -I shared_server_ip_address -U my_username
my_username's password:
[2004/09/02 10:44:17, 0] utils/net_ads.c:ads_startup(183)
  ads_connect: No such file or directory
[2004/09/02 10:44:17, 0]
rpc_client/cli_netlogon.c:cli_nt_setup_creds(256)
  cli_nt_setup_creds: request challenge failed
[2004/09/02 10:44:17, 0]
rpc_client/cli_netlogon.c:cli_nt_setup_creds(256)
  cli_nt_setup_creds: request challenge failed
[2004/09/02 10:44:17, 0] utils/net_rpc_join.c:net_rpc_join_newstyle(319)
  Error domain join verification (reused connection):
NT_STATUS_INVALID_COMPUTER_NAME

Unable to join domain .


I tried adding a workgroup and realm line to /etc/samba/smb.conf:

realm = 
workgroup = 

Now I get:


# net join -l -n my_computer_name -I shared_server_ip_address -U my_username
my_username's password:
[2004/09/02 10:45:59, 0] libads/kerberos.c:ads_kinit_password(136)
  kerberos_kinit_password [EMAIL PROTECTED] failed: Improper format of
Kerberos configuration file
[2004/09/02 10:45:59, 0] utils/net_ads.c:ads_startup(183)
  ads_connect: Improper format of Kerberos configuration file
[2004/09/02 10:45:59, 0]
rpc_client/cli_netlogon.c:cli_nt_setup_creds(256)
  cli_nt_setup_creds: request challenge failed
[2004/09/02 10:46:00, 0]
rpc_client/cli_netlogon.c:cli_nt_setup_creds(256)
  cli_nt_setup_creds: request challenge failed
[2004/09/02 10:46:00, 0] utils/net_rpc_join.c:net_rpc_join_newstyle(319)
  Error domain join verification (reused connection):
NT_STATUS_INVALID_COMPUTER_NAME

Unable to join domain .


If I type the wrong password, it says "The username or password was not
correct." So it's clearly getting through one stage of authentication.

I am limited in my ability to ask IT staff here any questions, so I
basically need to figure this out on my own.

Any suggestions?
-- 
Adam Rosi-Kessel
http://adam.rosi-kessel.org
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba