[Samba] Strange automount problem with samba & LDAP
yusuf at ceng.metu.edu.tr
Mon Dec 5 17:44:18 GMT 2005
I've installed samba-3.0.21rc2 on a solaris 10 machine (latest patches
applied) by compiling from source:
SunOS newton 5.10 Generic_118844-20 i86pc i386 i86pc
User's home is mounted using automount without any problem. But when I
try to mount using samba, it can not access the users home directory
when it 's share is not mounted and gives following error:
[2005/12/05 15:49:30, 0] smbd/service.c:(690)
'/home/stf4/yusuf' does not exist or permission denied when connecting
to [yusuf] Error was No such file or directory
I also get following message in "/var/adm/messages" when I try to mount
a user's samba share.
Dec 5 15:49:30 newton automountd: [ID 293258 daemon.warning]
libsldap: Status: 7 Mesg: Session error no available conn.
Dec 5 15:49:30 newton last message repeated 11 times
Also following code segment I added to smbd/service.c does not work and
prints failure for both cases:
DEBUG(0,("stat to (%s) failed!\n",conn->connectpath));
DEBUG(0,("stat to (%s) suceeded.\n",conn->connectpath));
DEBUG(0,("S_ISDIR to (%s) failed!\n",conn->connectpath));
DEBUG(0,("S_ISDIR to (%s) suceeded.\n",conn->connectpath));
The same code runs without any problem alone (mounts the user's share if
not mounted and returns success) and users can login and see their home
directories without any problem.
Is samba using something else to access the filesystem other than the
system calls ? How can I make it to access using system calls or how can
I resolv the problem ?
More information about the samba