LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba and LDAP problem (https://www.linuxquestions.org/questions/linux-networking-3/samba-and-ldap-problem-283214/)

MarioT 01-28-2005 04:57 AM

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

peter_robb 01-28-2005 01:35 PM

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..

MarioT 01-31-2005 06:53 AM

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

peter_robb 01-31-2005 07:14 AM

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.