Samba Troubleshooting

From SambaWiki
Jump to: navigation, search


A great resource for learning about SELinux

specific samba policy

For the most part, the information on the specific Samba policy link above should take care of the things most people need.

How to check whether your problem is already fixed:

For the server, check the release notes for the latest stable Samba (see for a list of recent releases), which contains a list of major fixes made to the server and related utilities.

For the Linux CIFS client you can see the source file fs/cifs/CHANGES to see the list of bug fixes

I can't join a example.local domain.

You will see an error with 'net -d 10 join ads ..'

[2007/10/15 19:45:30, 2] libads/ldap.c:ldap_open_with_timeout(70)
  Could not open LDAP connection to server.example.local:389: Illegal seek

This issues is caused by mDNS as .local is reserved for mDNS. Use

strace ldapsearch -x -h ldap.local
lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)

glibc 2.9 and newer

Edit /etc/nsswitch.conf and


 hosts:  files mdns4_minimal [NOTFOUND=return] dns


 hosts:  files dns

Older glibc versions

mDNS can be disabled in /ets/host.conf by adding 'mdns off' but it is currently broken in glibc 2.6.1.