Samba PDC will nicht :/

I

icewave

Grünschnabel
Heyhu :D

Ich habe mich jetzt an sämtliche tutorials gehalten, die beiden Regestry-Einträge geändert und trotzdem will Samba einfach mal so garnicht als PDC klappen... :/

Hier einmal meine smb.conf:
Code:
[global]
        workgroup = LXPDC
        realm = MIDAS.INTERN
        server string = Samba (%h)
        interfaces = eth1
        bind interfaces only = Yes
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        log level = 20
        syslog = 0
        log file = /var/log/samba/%m.log
        max log size = 1000
        add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
        add group script = /usr/sbin/addgroup --force-badname %g
        add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
        logon path = \\%L\profile\%U
        logon drive = H:
        logon home = \\%L\%U
        domain logons = Yes
        domain master = Yes
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        template shell = /bin/bash
        winbind separator = +

[homes]
        comment = Home Directories
        valid users = @users
        read only = No
        create mask = 0777
        directory mask = 0777
        browseable = No

[profile]
        comment = Windows-Profile
        path = /home/samba/profile
        read only = No
        browseable = No

[netlogon]
        comment = Netlogon-Skripte
        path = /home/samba/netlogon
        browseable = No

# weitere Shares

Windows 7 (64bit) meldet mir immer "Die angegebene Domäne ist nicht vorhanden oder es konnte keine Verbindung hergestellt werden"

Ich nutze Samba 3.5.x - das ist also nicht das Problem...


Hatte vielleicht jemand schon ienmal das gleiche Problöem oder ist da ein Fehler in der smb.conf?


LG. icewave
 
Die Services nmb und winbind auf dem Samba-Server gestartet? Kannst du auf die shares zugreifen?
 
Die Services nmb und winbind auf dem Samba-Server gestartet? Kannst du auf die shares zugreifen?

winbind hab ich nachinstalliert, nbd läuft zsm. mit smbd und auf die Shares zugreifen geht auch - nur dieser **** PDC will nicht :/
 
Hast du schon probiert lokal auf dem Server mit dem smbclient auf die Domäne zuzugreifen? Hat das funktioniert?
Hast du dir die logs von winbind und samba mal angeschaut? Irgendwelche Fehler beim starten? Werden irgendwelche logs erstellt wenn du auf die Domäne zugreifen willst?
 
Hast du schon probiert lokal auf dem Server mit dem smbclient auf die Domäne zuzugreifen? Hat das funktioniert?
Hast du dir die logs von winbind und samba mal angeschaut? Irgendwelche Fehler beim starten? Werden irgendwelche logs erstellt wenn du auf die Domäne zugreifen willst?

Ich habe gerade inmal versucht, mich mit smbclient zu verbinden. Das ganze auf dem gleichen Rechner...
Code:
root@Midas:~# smbclient -d 10 -W LXPDC
INFO: Current debug levels:
  all: True/10
  tdb: False/0
  printdrivers: False/0
  lanman: False/0
  smb: False/0
  rpc_parse: False/0
  rpc_srv: False/0
  rpc_cli: False/0
  passdb: False/0
  sam: False/0
  auth: False/0
  winbind: False/0
  vfs: False/0
  idmap: False/0
  quota: False/0
  acls: False/0
  locking: False/0
  msdfs: False/0
  dmapi: False/0
  registry: False/0
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = LXPDC
doing parameter server string = Samba (%h)
doing parameter wins support = no
doing parameter dns proxy = no
doing parameter interfaces = eth1
doing parameter bind interfaces only = yes
doing parameter netbios name = Midas
handle_netbios_name: set global_myname to: MIDAS
doing parameter realm = Midas.intern
doing parameter winbind separator = +
doing parameter log file = /var/log/samba/%m.log
doing parameter log level = 20
doing parameter max log size = 1000
doing parameter syslog only = no
doing parameter syslog = 0
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter security = user
doing parameter passdb backend = tdbsam
doing parameter unix password sync = yes
doing parameter obey pam restrictions = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\sp                                                                                                                                                             assword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter domain logons = yes
doing parameter logon path = \\%L\profile\%U
doing parameter logon drive = H:
doing parameter logon home = \\%L\%U
doing parameter add user script = /usr/sbin/adduser --quiet --disabled-password                                                                                                                                                              --gecos "" %u
doing parameter add machine script = /usr/sbin/useradd -g machines -c "%u machin                                                                                                                                                             e account" -d /var/lib/samba -s /bin/false %u
doing parameter add group script = /usr/sbin/addgroup --force-badname %g
doing parameter socket options = TCP_NODELAY
doing parameter domain master = yes
doing parameter idmap uid = 10000-20000
doing parameter idmap gid = 10000-20000
doing parameter template shell = /bin/bash
doing parameter usershare max shares = 100
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_DOMAIN_PDC
Attempting to register new charset UCS-2LE
Registered charset UCS-2LE
Attempting to register new charset UTF-16LE
Registered charset UTF-16LE
Attempting to register new charset UCS-2BE
Registered charset UCS-2BE
Attempting to register new charset UTF-16BE
Registered charset UTF-16BE
Attempting to register new charset UTF8
Registered charset UTF8
Attempting to register new charset UTF-8
Registered charset UTF-8
Attempting to register new charset ASCII
Registered charset ASCII
Attempting to register new charset 646
Registered charset 646
Attempting to register new charset ISO-8859-1
Registered charset ISO-8859-1
Attempting to register new charset UCS2-HEX
Registered charset UCS2-HEX
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
added interface eth1 ip=fe80::219:66ff:fe80:462d%eth1 bcast=fe80::ffff:ffff:ffff                                                                                                                                                             :ffff%eth1 netmask=ffff:ffff:ffff:ffff::
added interface eth1 ip=192.168.1.10 bcast=192.168.1.255 netmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="MIDAS"
Verwendung: smbclient [-?EgBVNkPeC] [-?|--help] [--usage]
        [-R|--name-resolve=NAME-RESOLVE-ORDER] [-M|--message=HOST]
        [-I|--ip-address=IP] [-E|--stderr] [-L|--list=HOST]
        [-m|--max-protocol=LEVEL] [-T|--tar=<c|x>IXFqgbNan]
        [-D|--directory=DIR] [-c|--command=STRING] [-b|--send-buffer=BYTES]
        [-p|--port=PORT] [-g|--grepable] [-B|--browse]
        [-d|--debuglevel=DEBUGLEVEL] [-s|--configfile=CONFIGFILE]
        [-l|--log-basename=LOGFILEBASE] [-V|--version]
        [-O|--socket-options=SOCKETOPTIONS] [-n|--netbiosname=NETBIOSNAME]
        [-W|--workgroup=WORKGROUP] [-i|--scope=SCOPE] [-U|--user=USERNAME]
        [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file=FILE]
        [-S|--signing=on|off|required] [-P|--machine-pass] [-e|--encrypt]
        [-C|--use-ccache] service <password>
root@Midas:~# smbclient -d all -W LXPDC
debug_parse_params: unrecognized debug class name or format [all]
Verwendung: smbclient [-?EgBVNkPeC] [-?|--help] [--usage] [-R|--name-resolve=NAME-RESOLVE-ORDER] [-M|--message=HOST] [-I|--ip-address=IP] [-E|--stderr] [-L|--list=HOST] [-m|--max-protocol=LEVEL] [-T|--tar=<c|x>IXFqgbNan]
        [-D|--directory=DIR] [-c|--command=STRING] [-b|--send-buffer=BYTES] [-p|--port=PORT] [-g|--grepable] [-B|--browse] [-d|--debuglevel=DEBUGLEVEL] [-s|--configfile=CONFIGFILE] [-l|--log-basename=LOGFILEBASE] [-V|--version]
        [-O|--socket-options=SOCKETOPTIONS] [-n|--netbiosname=NETBIOSNAME] [-W|--workgroup=WORKGROUP] [-i|--scope=SCOPE] [-U|--user=USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file=FILE]
        [-S|--signing=on|off|required] [-P|--machine-pass] [-e|--encrypt] [-C|--use-ccache] service <password>
root@Midas:~# smbclient -d 1000 -W LXPDC
INFO: Current debug levels:
  all: True/1000
  tdb: False/0
  printdrivers: False/0
  lanman: False/0
  smb: False/0
  rpc_parse: False/0
  rpc_srv: False/0
  rpc_cli: False/0
  passdb: False/0
  sam: False/0
  auth: False/0
  winbind: False/0
  vfs: False/0
  idmap: False/0
  quota: False/0
  acls: False/0
  locking: False/0
  msdfs: False/0
  dmapi: False/0
  registry: False/0
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = LXPDC
doing parameter server string = Samba (%h)
doing parameter wins support = no
doing parameter dns proxy = no
doing parameter interfaces = eth1
doing parameter bind interfaces only = yes
doing parameter netbios name = Midas
handle_netbios_name: set global_myname to: MIDAS
doing parameter realm = Midas.intern
doing parameter winbind separator = +
doing parameter log file = /var/log/samba/%m.log
doing parameter log level = 20
doing parameter max log size = 1000
doing parameter syslog only = no
doing parameter syslog = 0
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter security = user
doing parameter passdb backend = tdbsam
doing parameter unix password sync = yes
doing parameter obey pam restrictions = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter domain logons = yes
doing parameter logon path = \\%L\profile\%U
doing parameter logon drive = H:
doing parameter logon home = \\%L\%U
doing parameter add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
doing parameter add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
doing parameter add group script = /usr/sbin/addgroup --force-badname %g
doing parameter socket options = TCP_NODELAY
doing parameter domain master = yes
doing parameter idmap uid = 10000-20000
doing parameter idmap gid = 10000-20000
doing parameter template shell = /bin/bash
doing parameter usershare max shares = 100
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_DOMAIN_PDC
Attempting to register new charset UCS-2LE
Registered charset UCS-2LE
Attempting to register new charset UTF-16LE
Registered charset UTF-16LE
Attempting to register new charset UCS-2BE
Registered charset UCS-2BE
Attempting to register new charset UTF-16BE
Registered charset UTF-16BE
Attempting to register new charset UTF8
Registered charset UTF8
Attempting to register new charset UTF-8
Registered charset UTF-8
Attempting to register new charset ASCII
Registered charset ASCII
Attempting to register new charset 646
Registered charset 646
Attempting to register new charset ISO-8859-1
Registered charset ISO-8859-1
Attempting to register new charset UCS2-HEX
Registered charset UCS2-HEX
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
added interface eth1 ip=fe80::219:66ff:fe80:462d%eth1 bcast=fe80::ffff:ffff:ffff:ffff%eth1 netmask=ffff:ffff:ffff:ffff::
added interface eth1 ip=192.168.1.10 bcast=192.168.1.255 netmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="MIDAS"

Ich vermute, dass eine mögliche Fehlerquelle die Zeile
Code:
lp_servicenumber: couldn't find homes
seien könnte.

Winbind erzeugt kein Log, bei smb und nmb konnte ich keine Zeilen in den Logs ausfindig machen.
 
Folgendes habe ich grade zusätztlich ausprobiert:

Code:
smbclient -U root -W LXPDC //localhost/main
Enter root's password:
Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)

Richtig getppt klappt es auch :D
Was mir das jetzt aber über die PDC-Funktionen sagen soll weiß ich nicht so wirklich...

Code:
root@Midas:~# smbclient -U root -L //192.168.1.10
Enter root's password:
Domain=[LXPDC] OS=[Unix] Server=[Samba 3.5.6]

        Sharename       Type      Comment
        ---------       ----      -------
        main            Disk
        f_office        Disk      ****
        s_office        Disk      ****
        backup_auP      Disk      ****
        IPC$            IPC       IPC Service (Samba (Midas))
        root            Disk      Home Directories
Domain=[LXPDC] OS=[Unix] Server=[Samba 3.5.6]

        Server               Comment
        ---------            -------
        MIDAS                Samba (Midas)

        Workgroup            Master
        ---------            -------
        LXPDC                MIDAS
root@Midas:~#
 
Zuletzt bearbeitet:
Okay ich glaub ich hab die Lösung gefunden...

... zumindestens klappts jetzt :D


1. Winbind installieren
2. Das fertige Reg-Patch von Samba nehmen und nicht selbst in der Registry basteln

Nun meckert der Client nur noch, dass es fehler gab, als er versucht hat den Hostname beim DNS (bind9) zu ändern...
 

Ähnliche Themen

Samba 4.9.5-Debian - Kennwort von unix übernehmen

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Samba-Server mit Univention Corporate Server

Samba Dateien und Ordner verschieben

Keine Zugriff von Windows 10 auf Sambafreigaben

Zurück
Oben