ubuntuusers.de

Samba und LDAP ...

Status: Ungelöst | Ubuntu-Version: Server 8.04 (Hardy Heron)
Antworten |

Franzle

Anmeldungsdatum:
16. November 2008

Beiträge: Zähle...

Hallo,

ich habe Probleme mit dem SAMBA mit LDAP-Unterstützung. Ich kann den Server unter Windows meistens nur unter der IP erreichen. (\\192.168.1.3\) Dann läuft der Server aber elend langsam. Er braucht ca. 5 Minuten um die freigegebenen Ordner darzustellen. Er fragt aber dann auch nicht nach einer Authentifizierung, sondern lässt mich einfach darauf zugreifen. Auch Dateivorgänge und das Browsing dauern mehr als einige Minuten.

Ich danke euch schonmal jetzt, bin äußerst verzweifelt. smb.conf

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

[global]
   workgroup = HEIMNETZ
   dns proxy = no
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   invalid users = root
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user

   passdb backend = ldapsam_compat:ldap://ldap.heim.netz
   ldap admin dn = cn=admin,dc=heim,dc=netz
   ldap ssl = no
   ldap suffix = dc=heim,dc=netz 
   ldap user suffix = ou=People
   ldap group suffix = ou=group
   ldap machine suffix = ou=Machine


[tausch]
path = /home/
read only = no
guest ok = yes
valid users = testuser, sambauser

[public]
path = /srv/public
read only = yes
guest ok = yes

log.smbd

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

  smbd version 3.0.28a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/12/07 11:22:04, 1] param/params.c:Parameter(383)
  params.c:Parameter() - Ignoring badly formed line in configuration file: server string is the equivalent of the NT Description field
[2008/12/07 11:22:04, 0] printing/print_cups.c:cups_connect(69)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2008/12/07 11:22:04, 0] printing/print_cups.c:cups_connect(69)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2008/12/07 11:22:05, 0] passdb/secrets.c:fetch_ldap_pw(821)
  fetch_ldap_pw: neither ldap secret retrieved!
[2008/12/07 11:22:05, 0] lib/smbldap.c:smbldap_connect_system(942)
  ldap_connect_system: Failed to retrieve password from secrets.tdb
[2008/12/07 11:22:05, 1] lib/smbldap.c:another_ldap_try(1153)
  Connection to LDAP server failed for the 1 try!
[2008/12/07 11:22:06, 0] passdb/secrets.c:fetch_ldap_pw(821)
  fetch_ldap_pw: neither ldap secret retrieved!
[2008/12/07 11:22:06, 0] lib/smbldap.c:smbldap_connect_system(942)
  ldap_connect_system: Failed to retrieve password from secrets.tdb
[2008/12/07 11:22:06, 1] lib/smbldap.c:another_ldap_try(1153)
  Connection to LDAP server failed for the 2 try!
[2008/12/07 11:22:07, 0] passdb/secrets.c:fetch_ldap_pw(821)
  fetch_ldap_pw: neither ldap secret retrieved!
[2008/12/07 11:22:07, 0] lib/smbldap.c:smbldap_connect_system(942)
  ldap_connect_system: Failed to retrieve password from secrets.tdb
[2008/12/07 11:22:07, 1] lib/smbldap.c:another_ldap_try(1153)
  Connection to LDAP server failed for the 3 try!
[2008/12/07 11:22:08, 0] passdb/secrets.c:fetch_ldap_pw(821)
  fetch_ldap_pw: neither ldap secret retrieved!
[2008/12/07 11:22:08, 0] lib/smbldap.c:smbldap_connect_system(942)
  ldap_connect_system: Failed to retrieve password from secrets.tdb
[2008/12/07 11:22:08, 1] lib/smbldap.c:another_ldap_try(1153)
  Connection to LDAP server failed for the 4 try!
[2008/12/07 11:22:09, 0] passdb/secrets.c:fetch_ldap_pw(821)
  fetch_ldap_pw: neither ldap secret retrieved!
[2008/12/07 11:22:09, 0] lib/smbldap.c:smbldap_connect_system(942)
  ldap_connect_system: Failed to retrieve password from secrets.tdb
[2008/12/07 11:22:09, 1] lib/smbldap.c:another_ldap_try(1153)
  Connection to LDAP server failed for the 5 try!
[2008/12/07 11:22:10, 0] passdb/secrets.c:fetch_ldap_pw(821)
  fetch_ldap_pw: neither ldap secret retrieved!
[2008/12/07 11:22:10, 0] lib/smbldap.c:smbldap_connect_system(942)
  ldap_connect_system: Failed to retrieve password from secrets.tdb
[2008/12/07 11:22:10, 1] lib/smbldap.c:another_ldap_try(1153)
  Connection to LDAP server failed for the 6 try!
[2008/12/07 11:22:11, 0] passdb/secrets.c:fetch_ldap_pw(821)
  fetch_ldap_pw: neither ldap secret retrieved!
[2008/12/07 11:22:11, 0] lib/smbldap.c:smbldap_connect_system(942)
  ldap_connect_system: Failed to retrieve password from secrets.tdb
[2008/12/07 11:22:11, 1] lib/smbldap.c:another_ldap_try(1153)
  Connection to LDAP server failed for the 7 try!

Hanse

Anmeldungsdatum:
4. Dezember 2008

Beiträge: Zähle...

So wie ich das Logfile interpretiere gibs Probleme bei der Verbindung von SAMBA zum LDAP Dienst auf dem loclahost. Poste mal den output von ~:netstat -tap

DarkY87

Avatar von DarkY87

Anmeldungsdatum:
30. Dezember 2008

Beiträge: Zähle...

Du musst mit smbpasswd -w *passwort* das LDAP Admin Passwort setzten. Es wird dann in die Datei secret.tdb geschrieben und Samba erhält Zugriff auf den LDAP Server.

Antworten |