SAMBA and LDAP configuration issues
I am running an LDAP server (openldap version 2.3.27) on RHEL 5 server.
It is configured correctly to allow remote linux logins. I am also trying to use it as the user database for a SAMBA server running on the same machine. I have version 3.0.23 of SAMBA. I can successfully join my windows server to the domain using the samba administrator credentials. I can successfully login to the windows server using the samba administrator credentials and i get the correct home directory mounted on my H: drive. However, I am unable to login as a user from the LDAP database at the windows login screen. I get the following message from windows: The system cannot log you on due to the following error: A device attached to the system is not functioning. This is very strange because, if I login locally to the windows server and browse to the samba server in Windows Explorer, I can click on the server and it will ask me for a user name and password. If I put any username and password in the LDAP database, I can see the contents of the server applicable to that user. I even get the correct home directory (shown in network places but not mounted on H:) and permissions! I would really appreciate some help here. This is a very frustrating problem and no amount of googleing has produced the solution. Sincerely Tristan p.s. I am posting this here because the SAMBA mailing list keeps bouncing it. p.p.s. Another weird phenomenon has arisen in the last two days. I can join the domain using the SAMBA administrator's credentials from only two machines. None of the other machines I have tried will join. They all give me a message saying cannot find user. |
Enter the exact error message in Google surrounded in double quotes.
|
Been there, done that. There are a large amount of solutions returned by google, none of which apply to this specific situation. I have tried most of them and none of them work for me. I spent approximately three days trying to solve this problem by following tutorials and suggested solutions returned by googleing the error.
It seems that SAMBA is not using the LDAP database correctly and I suspect that this is a problem with my SAMBA configuration file. I will post my samba configuration file here when I return to work tomorrow. |
Look for a samba-doc package. The "Samba-3 By Example" and "Samba 3 Howto & Reference Guide" books cover LDAP. Look at the troubleshooting section as well.
|
I have not found anything in the SAMBA manuals, books or troubleshooting sections that will help me.
smb.conf Code:
# Samba config file created using SWAT The samba message log for the host I am trying to login from shows the following: Code:
_net_sam_logon: user username has user sid S-1-5-21-1121210806-1153956821-1881123185 Code:
[2007/10/23 12:01:47, 0] lib/util_sock.c:get_peer_addr(1229) |
I think you're best bet would be to reconfigure samba and smbldap-tools packages to not use any kind of encryption when talking to you're ldap server. It's far easier to troubleshoot when the data is in the clear. You can always enable encryption later.
Also, I'm going to assume in your smb.conf the line passdb backend = ldapsam:ldap://example.com/ was you just hiding the true name of your ldap server. If not, that needs to get fixed asap :) After that I would watch both the ldap logs and traffic to see what happens when samba troes to talk to ldap. zen0n |
Hi zenOn
Yes: example.com is simply hiding the name of my ldap server. SAMBA can communicate with the LDAP server because I can authenticate with LDAP credentials when viewing the Samba server from Network Neighbourhood on another Windows machine. The problem arises when I try and log on to the domain using LDAP credentials. I have tried without encryption but I still seem to get the same problem. I don't really need encryption sice both the SAMBA server and the LDAP server run on the same host. I never thought of looking at the LDAP logs. I will give that a try next week. A note: I am also exporting the home directories with NFS for the linux boxes on my network. Yesterday I tried turning the NFS server off and then logging into the SAMBA domain and I still get the same error message: A device attached to the system is not functioning. |
This seems out of place if you are using ldap:
Code:
passwd program = /usr/bin/passwd %u http://lists.samba.org/archive/samba...il/084342.html ---- Maybe this explains why (from the smbslapd-tools.pdf): Code:
6.8 The directive passwd program = /usr/local/sbin/smbldap-passwd -u %u |
I've changed the password program. In fact, becuase I am using OpenLDAP I have removed the directive complete according to the second part of jschiwal's reply. I have also removed the unix password sync directive and the ldap password sync was always set to yes.
Here is the new version of the config file: Code:
The error message has changed! I now get: Quote:
Code:
smbpasswd username Quote:
Code:
ldap ssl = no Do I need to tell Samba where the ldap server certificate is? How do I do that? |
All times are GMT -5. The time now is 10:27 AM. |