Samba and LDAP problem
I'm trying to configure samba to share files,
my smb.conf is: [global] netbios name = pcname workgroup = domainname os level = 8 security = user smb passwd file = /etc/samba/smbpasswd encrypt passwords = yes [tmp] path = /tmp [homes] comment = Home Directories browseable = no writable = yes valid users = %S create mode = 0664 directory mode = 0775 I have done cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd smbpasswd -a myusername and I get New SMB password: Retype new SMB password: fetch_ldap_pw: neither ldap secret retrieved! ldap_connect_system: Failed to retrieve password from secrets.tdb Connection to LDAP Server failed for the 1 try! smbldap_search_suffix: Problem during the LDAP search: (unknown) (Invalid credentials) fetch_ldap_pw: neither ldap secret retrieved! ldap_connect_system: Failed to retrieve password from secrets.tdb Connection to LDAP Server failed for the 1 try! ldapsam_search_one_group: Problem during the LDAP search: LDAP error: (unknown) (Invalid credentials)fetch_ldap_pw: neither ldap secret retrieved! ldap_connect_system: Failed to retrieve password from secrets.tdb Connection to LDAP Server failed for the 1 try! smbldap_search_suffix: Problem during the LDAP search: (unknown) (Invalid credentials) Failed to add entry for user myusername. Failed to modify password entry for user myusername I don't understand why it's trying to connect to LDAP. I just want to get authentication by typing username and passwd when connecting. Samba is 3.0.01, distro RH 9.0. Thanks for your help. Mario |
Check the file /etc/pam.d/samba and make sure it doesn't specify an ldap target..
You may have problems with the smbpasswd file too.. I don't know what the script you have used does, but if it uses the M$ username and logon password from the M$ clients, they can connect after logging on, without having to re-enter their details.. |
It doesn't specify,
this is content: auth required pam_nologin.so auth required pam_stack.so service=system-auth account required pam_stack.so service=system-auth session required pam_stack.so service=system-auth password required pam_stack.so service=system-auth I also tryed to comment all thos things but with the same result. Mario |
Did you build this version of samba from sources?
It's the only other way I know to force ldap.. |
All times are GMT -5. The time now is 06:02 AM. |