wild-wolf
Goto Top

Problem bei der Anmeldung von Clients an Domäne

Hallo zusammen.
folgendes Szenario:

Debian Squeeze als DC mit Samba, LDAP & LAM
LDAP und Samba sind eingerichtet. LAM greift auf LDAP zu und legt auch die User, etc. an.
Clients lassen sich ohne Probleme in die Domäne heben.

Problem:
Wenn ich mich jetzt als User einer Domäne anmelden will, kommt entweder die Meldung dass zurzeit keine Anmeldeserver zur Verfügung stehen, oder dass die Vertrauensstellung nicht akzeptiert wird. Es handelt sich hierbei um einen Win7 und XP Rechner. Die beiden Einträge in der Registry auf dem Win7 Client wurden gemacht. Der XP war bereits vor der Neuinstallation des DC-Servers in der Domäne.
Was leider auch nicht erstellt wird, sind die Benutzerverzeichnisse in /home/ aber das liegt vermutlich daran, das sich der Benutzer janicht einmal anmelden kann.

Ich habe gerade keinen Plan mehr, woran das liegen kann.

Hier die smb.conf
[global]
workgroup = WORK
wins support = Yes
dns proxy = no
syslog = 0
log level = 2
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = ldapsam:ldap://127.0.0.1
obey pam restrictions = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
passwd chat debug = yes
domain logons = yes
logon path = \\%N\profiles\%U
logon script = logon.bat
add user script = /usr/sbin/smbldap-useradd -m "%u
delete user script = /usr/sbin/smbldap-userdel "%u%
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%u" "%g"
add machine script = /usr/sbin/smbldap-useradd –w "%u"
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=32768 SO_SNDBUF=32768
preferred master = Yes
domain master = Yes
os level = 35
ldap admin dn = cn=admin,dc=work,dc=local
ldap delete dn = Yes
ldap group suffix = ou=Groups
ldap machine suffix = ou=Computers
ldap user suffix = ou=Users
ldap passwd sync = Yes
ldap suffix = dc=work,dc=local
ldap ssl = no
host msdfs = yes
time server = Yes
use sendfile = no

ldap idmap suffix = ou=Idmap
idmap uid = 10000-20000
idmap gid = 10000-20000

large readwrite = no
max xmit = 65535
map acl inherit = yes
oplocks = yes
level2 oplocks = No
getwd cache = yes
dead time = 15
keepalive = 150
read raw = yes
write raw = yes
;client schannel = Auto
;server schannel = Auto
;client signing = Auto
;server signing = Auto
;ntlm auth = No
;client NTLMv2 auth = Yes

[homes]
comment = Persönliches Laufwerk
directory mask = 0700
read only = No
browseable = No
create mask = 0700

[admin]
comment = Administration
path = /home/samba/admin
admin users = "+Domain Admins"
read only = No

[print$]
comment = Drivers
path = /etc/samba/drivers
guest ok = Yes
write list = root, "@Domain Admins", @lpadmin, b.frank

[printers]
comment = Alle Drucker
browseable = No
printable = Yes
guest ok = Yes
valid users = root, "@Domain Admins", "@Domain Users", @lpadmin
path = /tmp

[netlogon]
browseable = No
path = /home/samba/netlogon


[public]
comment = Public share
path = /home/samba/shares/public
read only = No
guest ok = Yes

[profiles]
browseable = No
directory mask = 0700
hide files = /desktop.ini/ntuser.ini/NTUSER.*/
valid users = %U, "@Domain Admins"
path = /home/samba/profiles
read only = No
create mask = 0700


Das kommt auch gerne mal in der log.smbd:
[2013/11/01 15:49:22.309146, 0] lib/util_sock.c:1441(get_peer_addr_internal)
getpeername failed. Error was Der Socket ist nicht verbunden
read_fd_with_timeout: client 0.0.0.0 read error = Die Verbindung wurde vom Kommunikationspartner zurückgesetzt.
[2013/11/01 15:49:22.312584, 1] smbd/server.c:267(remove_child_pid)
Scheduled cleanup of brl and lock database after unclean shutdown
[2013/11/01 15:49:42.332601, 1] smbd/server.c:240(cleanup_timeout_fn)
Cleaning up brl and lock database after unclean shutdown
[2013/11/01 15:50:11.198119, 2] smbd/sesssetup.c:1391(setup_new_vc_session)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2013/11/01 15:50:11.199133, 2] smbd/sesssetup.c:1391(setup_new_vc_session)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2013/11/01 15:50:11.199373, 2] lib/smbldap.c:950(smbldap_open_connection)
smbldap_open_connection: connection opened
[2013/11/01 15:50:11.202759, 2] passdb/pdb_ldap.c:2446(init_group_from_ldap)
init_group_from_ldap: Entry found for group: 513
[2013/11/01 15:50:11.208265, 0] lib/util_sock.c:474(read_fd_with_timeout)
[2013/11/01 15:50:11.208332, 0] lib/util_sock.c:1441(get_peer_addr_internal)
getpeername failed. Error was Der Socket ist nicht verbunden
read_fd_with_timeout: client 0.0.0.0 read error = Die Verbindung wurde vom Kommunikationspartner zurückgesetzt.

Content-Key: 220980

Url: https://administrator.de/contentid/220980

Ausgedruckt am: 28.03.2024 um 13:03 Uhr

Mitglied: Kuemmel
Kuemmel 01.11.2013 um 17:34:00 Uhr
Goto Top
Welche Einstellungen hast du denn in der Registry vorgenommen ?


Grüße,
Kümmel
Mitglied: djasupport
djasupport 01.11.2013 um 18:05:56 Uhr
Goto Top
als lokale admin anmelden, raus aus der domäne und rein in die domäne.hat bei mir geklappt.
Mitglied: Wild-Wolf
Wild-Wolf 02.11.2013 aktualisiert um 11:05:39 Uhr
Goto Top
Diese hier:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation\Parameters
"DNSNameResolutionRequired"=dword:00000000
"DomainCompatibilityMode"=dword:00000001

@djasupport:
Bei mir leider nicht face-sad
Mitglied: Wild-Wolf
Wild-Wolf 15.11.2013 um 09:00:05 Uhr
Goto Top
Keiner eine Idee?