View previous topic :: View next topic |
Author |
Message |
erzhong n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Mar 2006 Posts: 12
|
Posted: Thu May 18, 2006 3:01 am Post subject: Samba error: Connection to LDAP server failed |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jmbsvicetto Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/131796264c80fa19b97a2.png)
Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Thu May 18, 2006 3:51 am Post subject: |
|
|
Hi.
What do you get from
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 |
|
![](templates/gentoo/images/spacer.gif) |
erzhong n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Mar 2006 Posts: 12
|
Posted: Thu May 18, 2006 2:20 pm Post subject: |
|
|
jmbsvicetto wrote: | Hi.
What do you get from
Did you built samba with support for ldap? |
Yes, I did.
Should I remove this use flag? Thank you! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jmbsvicetto Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/131796264c80fa19b97a2.png)
Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Thu May 18, 2006 6:38 pm Post subject: |
|
|
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:
_________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|