Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba error: Connection to LDAP server failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
erzhong
n00b
n00b


Joined: 23 Mar 2006
Posts: 12

PostPosted: Thu May 18, 2006 3:01 am    Post subject: Samba error: Connection to LDAP server failed Reply with quote

Cannot get samba to work...

Cannot even add user:

smbpasswd -a xxx
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!
fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP server failed for the 2 try!
fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP server failed for the 3 try!
fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP server failed for the 4 try!

I do not want to use domain logon.
My smb.conf:

[global]

workgroup = NERV

netbios name = MAGI

server string = Samba Server %v

printcap name = cups
load printers = yes

printing = cups

printer admin = @adm

log file = /var/log/samba/log.%m

max log size = 50

hosts allow = 192.168.0. 127.

map to guest = bad user

security = user

encrypt passwords = yes

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

domain logons = no

dns proxy = no



#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
writable = no
printable = yes
create mode = 0700
# =====================================
# print command: see above for details.
# =====================================
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.

[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = @adm root
guest ok = yes



[public]
comment = public
path = /var/public
valid users = xxx
public = no
writable = yes
printable = no


Does anyone have an idea how to fix this? Thank you!
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Thu May 18, 2006 3:51 am    Post subject: Reply with quote

Hi.

What do you get from
Code:
# emerge -pv samba

Did you built samba with support for ldap?
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
erzhong
n00b
n00b


Joined: 23 Mar 2006
Posts: 12

PostPosted: Thu May 18, 2006 2:20 pm    Post subject: Reply with quote

jmbsvicetto wrote:
Hi.

What do you get from
Code:
# emerge -pv samba

Did you built samba with support for ldap?


Yes, I did.
Should I remove this use flag? Thank you!
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Thu May 18, 2006 6:38 pm    Post subject: Reply with quote

If you don't want to use Samba with LDAP, you should emerge Samba again without the ldap use flag.
In case you don't know, the preferred way is to add the following to /etc/portage/package.use:
Code:
net-fs/samba -ldap

_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum