LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-28-2005, 04:57 AM   #1
MarioT
Member
 
Registered: May 2004
Posts: 52

Rep: Reputation: 15
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
 
Old 01-28-2005, 01:35 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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..

Last edited by peter_robb; 01-28-2005 at 01:40 PM.
 
Old 01-31-2005, 06:53 AM   #3
MarioT
Member
 
Registered: May 2004
Posts: 52

Original Poster
Rep: Reputation: 15
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
 
Old 01-31-2005, 07:14 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Did you build this version of samba from sources?

It's the only other way I know to force ldap..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ldap+samba musfeq Linux - Software 4 08-08-2005 04:33 AM
Samba & LDAP problem barkers Linux - Networking 8 10-06-2004 04:18 AM
Samba or ldap amir_h Linux - Networking 4 03-27-2004 10:59 PM
Samba PDC Problem or LDAP saavik Linux - Networking 2 05-05-2003 03:58 PM
Profiles problem (samba+ldap) u4113072 Linux - Software 1 02-02-2003 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration