Operating System - HP-UX
1829930 Members
2126 Online
109998 Solutions
New Discussion

Samba loses connection with domain

 
Shawn McConnell!
Occasional Advisor

Samba loses connection with domain

I have samba set up on an HP-Ux server it runs fine except once in a while I will get a message like this.

\\servername\ is not accessible. you might not have permission to use this network resource. Contact the administrator of this server to see if you have access permissions.
The security database on the server does not have a computer account for the workstation trust relationship.

Now what we have done in the past is the following.

1. Delete the server from active directory
2. Add the server back and be sure to check the
"Allow Pre-Windows 2000 computers to use this account" box.
3. Delete /var/opt/samba/private/secrets.tdb
4. net rpc join –w charlotte –S "servername" –U [-d 10]
“-d 10” is optional debug level

At times we have also just been able to run the net rpc join and that would clear up the problem.

Here is the smb.conf

# Samba config file created using SWAT
# from 10.69.100.76 (10.69.100.76)
# Date: 2006/07/31 14:21:25

# Global parameters
[global]
workgroup = CHARLOTTE
server string = myrs-umsdbts-01 Samba Server
security = DOMAIN
password server = 10.69.10.65 10.31.0.16 10.19.0.12
username map = /etc/opt/samba/smbusers.map
log file = /var/opt/samba/log.%m
max log size = 10000
# log level = 10
log level = 3
keepalive = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
domain master = No
read only = No
hosts allow = myrs-umsdbts-01, 10.69., 10.31., 10.20., 127.0.0.1, 10.19.
hosts deny = ALL
case sensitive = No
preserve case = Yes
short preserve case = Yes
default case = lower
map archive = No
dos filetime resolution = Yes
guest ok = yes
map to guest = bad uid

[adv_db]
path = /u01/app/advantage
valid users = @starteam

[scripts]
# path = /nfs/scripts
path = /u01/scripts
valid users = @starteam

[ums-files]
# default case = UPPER
path = /u01/ums-files
read only = yes
guest only = yes
guest ok = yes
browseable = yes

I don't have this issue with any of our linux servers.

here are the samba versions

CIFS-Client A.02.02 CIFS Client
CIFS-Development A.02.02.01 HP CIFS Server Source Code Files
CIFS-Server A.02.02.01 HP CIFS Server (Samba) File and Print Services


Any help would be great.

Thanks

Shawn
1 REPLY 1
Steven E. Protter
Exalted Contributor

Re: Samba loses connection with domain

Shalom Shawn,

Though for security reasons, I'd patch my HP-UX CIFS/Samba the cause is probably not your setup.

I would suspect the Windows Samba Server is the cause as I saw this behavior after a security patch to Windows a year or so ago.

Look there first.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com