PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : probleme mit anmeldung an samba pdc



apt-get
06.10.04, 08:34
grüße
also ich habe hier seit ein paar tagen ein mir unlösbares problem.

1 x samba 3.0.7 (debian) pdc
3 x win2k (sp4) wks
alle rechner können sich gegenseitig pingen und die namen können aufgelöst werden.

smb.conf des pdc


[global]
workgroup = schumann.local
server string = PDC, Fileserver
obey pam restrictions = yes
logon path = \\%L\profiles\%u
logon script = %u.bat
security = USER
encrypt passwords = yes
os level = 65
local master = true
preferred master = true
domain master = true
wins support = yes
netbios name = hp2-253
domain logons = yes
guest ok = no
log level = 1
syslog = 0

[netlogon]
comment = Domain-Anmeldedienst
path = /home/domainService/netlogon
public = no
read only = yes
browseable = no

[profiles]
comment = Benutzerprofile
path = /home/domainService/profiles
public = no
read only = no
browseable = no
create mode = 0600
directory mode = 0700


weiterhin sind die maschinenkonten, die user und die group-mappings soweit nach mehrmaligem kontrolieren angelegt und richtig. Auch die SID der domain stimmt mit allen usern (win registry) überein.

das problem zeigt sich so, das ich mich nachdem ich der domain problemlos mit den w2k maschinen beitreten konnte ich mich erneurt nicht mehr anmelden kann. Der anmeldevorgang dauert sehr lang und endet mit der nachricht das dass profile des anzumeldenen nutzers nicht von der freigabe des pdc´s geladen werden kann, "der netzwerkpfad wurde nicht gefunden". Was ja unlogisch ist, da ich mich anfangs das erstemal in der domain anmelden konnte.

ich hatte auch schon eine neuinstallation der w2k wks durchgefürt aber das problem ist das selbe.

so long...

Alex10
06.10.04, 09:01
Hast du den Verzeichnissen auch die richtigen Zugriffs Berechtigungen gegeben?
Gibt es das Verzeichnis auch mit dem angegebenen Pfad in den [profiles]?
Hast du Samba von der System CD genommen, oder ne neue Version extra installiert? Wenn ja, (also ne neue Version) dann kann es sein, das der angegebene Pfad von Samba nicht berücksichtigt wird und du ein neues Verzeichnis für deine Profile erstellen musst und damit auch einen neuen Pfad anlegen.

Alex

apt-get
06.10.04, 09:42
Hi

danke für deine schnelle antwort, also..
/home/domainService hat 777 root users
/home/domainService/netlogon hat 755 root root
/home/domainService/profiles hat 777 root root
/home/domainService/profiles/(username) hat 700 (username) users

das system ist debian testing und ich hab per apt die packete samba, samba-common installiert. Was du aber mit den unberücksichtigten pfaden meinst verstehe ich nicht.

hier mal der teil der log.smbd (loglevel 2) des pdc´s (hp2-253).
es ist eine anmeldung nachdem an die wks schon sich ein benutzer das erstemal angemeldet hat und bei der wiederanmeldung dann die meldung kommt das der pfad zu der freigabe \\hp2-253\profiles nicht gefunden werden konnte.


[2004/10/06 09:33:07, 0] smbd/server.c:main(760)
smbd version 3.0.7-Debian started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2004/10/06 09:33:07, 2] param/loadparm.c:do_section(3415)
Processing section "[netlogon]"
[2004/10/06 09:33:07, 2] param/loadparm.c:do_section(3415)
Processing section "[profiles]"
[2004/10/06 09:33:07, 2] param/loadparm.c:do_section(3415)
Processing section "[mp3]"
[2004/10/06 09:33:07, 2] param/loadparm.c:do_section(3415)
Processing section "[ebook]"
[2004/10/06 09:33:07, 2] param/loadparm.c:do_section(3415)
Processing section "[software]"
[2004/10/06 09:33:07, 2] param/loadparm.c:do_section(3415)
Processing section "[treiber]"
[2004/10/06 09:33:07, 2] param/loadparm.c:do_section(3415)
Processing section "[filme]"
[2004/10/06 09:33:07, 2] lib/interface.c:add_interface(79)
added interface ip=192.168.2.253 bcast=192.168.2.255 nmask=255.255.255.0
[2004/10/06 09:33:07, 2] lib/tallocmsg.c:register_msg_pool_usage(57)
Registered MSG_REQ_POOL_USAGE
[2004/10/06 09:33:07, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2004/10/06 09:33:07, 2] smbd/reply.c:reply_special(235)
netbios connect: name1=HP2-253 name2=HP2-3
[2004/10/06 09:33:07, 2] smbd/reply.c:reply_special(242)
netbios connect: local=hp2-253 remote=hp2-3, name type = 0
[2004/10/06 09:33:07, 2] smbd/sesssetup.c:setup_new_vc_session(608)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2004/10/06 09:33:07, 2] smbd/sesssetup.c:setup_new_vc_session(608)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2004/10/06 09:33:19, 2] rpc_parse/parse_prs.c:netsec_decode(1578)
netsec_decode: FAILED: packet sequence number:
[2004/10/06 09:33:19, 2] lib/util.c:dump_data(1835)
[000] 57 DA BA 0C D8 CD 88 76 W......v
[2004/10/06 09:33:19, 2] rpc_parse/parse_prs.c:netsec_decode(1580)
should be:
[2004/10/06 09:33:19, 2] lib/util.c:dump_data(1835)
[000] 00 00 00 00 80 00 00 00 ........
[2004/10/06 09:33:19, 2] auth/auth.c:check_ntlm_password(312)
check_ntlm_password: Authentication for user [mschumann] -> [mschumann] FAILED with error NT_STATUS_WRONG_PASSWORD
[2004/10/06 09:33:27, 2] auth/auth.c:check_ntlm_password(305)
check_ntlm_password: authentication for user [mschumann] -> [mschumann] -> [mschumann] succeeded
[2004/10/06 09:33:31, 2] auth/auth.c:check_ntlm_password(305)
check_ntlm_password: authentication for user [mschumann] -> [mschumann] -> [mschumann] succeeded
[2004/10/06 09:33:31, 1] smbd/service.c:make_connection_snum(648)
hp2-3 (192.168.2.3) connect to service profiles initially as user mschumann (uid=2001, gid=100) (pid 26488)
[2004/10/06 09:33:31, 2] smbd/open.c:open_file(245)
mschumann opened file mschumann/NTUSER.DAT read=Yes write=No (numopen=1)
[2004/10/06 09:33:32, 2] smbd/open.c:open_file(245)
mschumann opened file mschumann/ntuser.ini read=Yes write=No (numopen=2)
[2004/10/06 09:33:42, 2] smbd/close.c:close_normal_file(262)
mschumann closed file mschumann/ntuser.ini (numopen=1)
[2004/10/06 09:34:49, 0] lib/util_sock.c:read_socket_data(384)
read_socket_data: recv failure for 4. Error = Connection reset by peer
[2004/10/06 09:34:49, 2] smbd/server.c:exit_server(571)
Closing connections
[2004/10/06 09:34:49, 2] smbd/close.c:close_normal_file(262)
mschumann closed file mschumann/NTUSER.DAT (numopen=0)
[2004/10/06 09:34:49, 1] smbd/service.c:close_cnum(837)
hp2-3 (192.168.2.3) closed connection to service profiles
[2004/10/06 09:35:07, 0] smbd/server.c:main(760)
smbd version 3.0.7-Debian started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2004/10/06 09:35:07, 2] param/loadparm.c:do_section(3415)
Processing section "[netlogon]"
[2004/10/06 09:35:07, 2] param/loadparm.c:do_section(3415)
Processing section "[profiles]"
[2004/10/06 09:35:07, 2] param/loadparm.c:do_section(3415)
Processing section "[mp3]"
[2004/10/06 09:35:07, 2] param/loadparm.c:do_section(3415)
Processing section "[ebook]"
[2004/10/06 09:35:07, 2] param/loadparm.c:do_section(3415)
Processing section "[software]"
[2004/10/06 09:35:07, 2] param/loadparm.c:do_section(3415)
Processing section "[treiber]"
[2004/10/06 09:35:07, 2] param/loadparm.c:do_section(3415)
Processing section "[filme]"
[2004/10/06 09:35:08, 2] lib/interface.c:add_interface(79)
added interface ip=192.168.2.253 bcast=192.168.2.255 nmask=255.255.255.0
[2004/10/06 09:35:08, 2] lib/tallocmsg.c:register_msg_pool_usage(57)
Registered MSG_REQ_POOL_USAGE
[2004/10/06 09:35:08, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2004/10/06 09:35:08, 2] smbd/reply.c:reply_special(235)
netbios connect: name1=HP2-253 name2=HP2-3
[2004/10/06 09:35:08, 2] smbd/reply.c:reply_special(242)
netbios connect: local=hp2-253 remote=hp2-3, name type = 0
[2004/10/06 09:35:08, 2] smbd/sesssetup.c:setup_new_vc_session(608)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2004/10/06 09:35:08, 2] smbd/sesssetup.c:setup_new_vc_session(608)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
[2004/10/06 09:35:08, 2] auth/auth.c:check_ntlm_password(305)
check_ntlm_password: authentication for user [mschumann] -> [mschumann] -> [mschumann] succeeded
[2004/10/06 09:35:08, 1] smbd/service.c:make_connection_snum(648)
hp2-3 (192.168.2.3) connect to service netlogon initially as user mschumann (uid=2001, gid=100) (pid 26490)
[2004/10/06 09:35:11, 0] smbd/service.c:make_connection(800)
hp2-3 (192.168.2.3) couldn't find service mschumann
[2004/10/06 09:35:11, 0] smbd/service.c:make_connection(800)
hp2-3 (192.168.2.3) couldn't find service mschumann
[2004/10/06 09:36:06, 1] smbd/service.c:close_cnum(837)
hp2-3 (192.168.2.3) closed connection to service netlogon
[2004/10/06 09:36:06, 2] smbd/server.c:exit_server(571)
Closing connections


so long...

Alex10
06.10.04, 10:28
Wenn Samba installiert wird, werden automatisch schon Pfade in der smb.conf für netlogon etc. erstellt, sowie auch die Verzeichnisse dazu.
Bsp Suse 9.0 hat Standardmässig Samba 2.2.8 mit dabei.
Die Pfade und Verzeichnisse liegen in /var/lib/samba/netlogon oder profiles,
diese können u. U. nicht funktionieren, wenn du ne andere Version von Samba installierst, welche dann aber angepasst werden müssen.
Denn so war es leider bei mir, ich hab die Profiles dann woanders plaziert und schon ging es.

Was steht in deinem Script für's netlogon?
Was sagt "testparm" ?

Übrigens, du brauchst die User in Profiles nicht anlegen, das macht Samba selbst.

Alex

apt-get
06.10.04, 10:58
grüße

das problem mit suse kenn ich nicht, habe bis heute noch an keinem etwas gemacht. aber die smb.conf müste bei mir richtig sein, zumal ich soweit es geht alle conf datei per hand bearbeite.

in meinen netlogon scripts steht bis jetzt noch nichts, an sich soll da nur ein zeitserve rein und das mapping für das homeverzeichnis des users.

und ein testparm -v bringt mir das


[global]
dos charset = CP850
unix charset = UTF-8
display charset = LOCALE
workgroup = SCHUMANN.LOCAL
realm =
netbios name = HP2-253
netbios aliases =
netbios scope =
server string = PDC, Fileserver
interfaces =
bind interfaces only = No
security = USER
auth methods =
encrypt passwords = Yes
update encrypted = No
client schannel = Auto
server schannel = Auto
allow trusted domains = Yes
hosts equiv =
min passwd length = 5
map to guest = Never
null passwords = No
obey pam restrictions = Yes
password server = *
smb passwd file = /etc/samba/smbpasswd
private dir = /etc/samba
passdb backend = smbpasswd
algorithmic rid base = 1000
root directory =
guest account = nobody
pam password change = No
passwd program =
passwd chat = *new*password* %n\n *new*password* %n\n *changed*
passwd chat debug = No
passwd chat timeout = 2
username map =
password level = 0
username level = 0
unix password sync = No
restrict anonymous = 0
lanman auth = Yes
ntlm auth = Yes
client NTLMv2 auth = No
client lanman auth = Yes
client plaintext auth = Yes
preload modules =
use kerberos keytab = No
log level = 2
syslog = 0
syslog only = No
log file =
max log size = 5000
timestamp logs = Yes
debug hires timestamp = No
debug pid = No
debug uid = No
smb ports = 445 139
protocol = NT1
large readwrite = Yes
max protocol = NT1
min protocol = CORE
read bmpx = No
read raw = Yes
write raw = Yes
disable netbios = No
acl compatibility =
defer sharing violations = Yes
nt pipe support = Yes
nt status support = Yes
announce version = 4.9
announce as = NT
max mux = 50
max xmit = 16644
name resolve order = lmhosts wins host bcast
max ttl = 259200
max wins ttl = 518400
min wins ttl = 21600
time server = No
unix extensions = Yes
use spnego = Yes
client signing = auto
server signing = No
client use spnego = Yes
change notify timeout = 60
deadtime = 0
getwd cache = Yes
keepalive = 300
kernel change notify = Yes
lpq cache time = 10
max smbd processes = 0
paranoid server security = Yes
max disk size = 0
max open files = 10000
socket options = TCP_NODELAY
use mmap = Yes
hostname lookups = No
name cache timeout = 660
load printers = Yes
printcap cache time = 0
printcap name = cups
cups server =
disable spoolss = No
enumports command =
addprinter command =
deleteprinter command =
show add printer wizard = Yes
os2 driver map =
mangling method = hash2
mangle prefix = 1
stat cache = Yes
machine password timeout = 604800
add user script =
delete user script =
add group script =
delete group script =
add user to group script =
delete user from group script =
set primary group script =
add machine script =
shutdown script =
abort shutdown script =
logon script = %u.bat
logon path = \\%L\profiles\%u
logon drive =
logon home = \\%N\%U
domain logons = Yes
os level = 65
lm announce = Auto
lm interval = 60
preferred master = Yes
local master = Yes
domain master = Yes
browse list = Yes
enhanced browsing = Yes
dns proxy = Yes
wins proxy = No
wins server =
wins support = Yes
wins hook =
wins partners =
kernel oplocks = Yes
lock spin count = 3
lock spin time = 10
oplock break wait time = 0
ldap admin dn =
ldap delete dn = No
ldap filter = (uid=%u)
ldap group suffix =
ldap idmap suffix =
ldap machine suffix =
ldap passwd sync = no
ldap replication sleep = 1000
ldap suffix =
ldap ssl =
ldap timeout = 15
ldap user suffix =
add share command =
change share command =
delete share command =
config file =
preload =
lock directory =
pid directory = /var/run/samba
utmp directory =
wtmp directory =
utmp = No
default service =
message command =
dfree command =
get quota command =
set quota command =
remote announce =
remote browse sync =
socket address = 0.0.0.0
homedir map = auto.home
afs username map =
time offset = 0
NIS homedir = No
panic action =
host msdfs = No
enable rid algorithm = Yes
idmap backend =
idmap uid =
idmap gid =
template primary group = nobody
template homedir = /home/%D/%U
template shell = /bin/false
winbind separator = \
winbind cache time = 300
winbind enable local accounts = No
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = No
winbind trusted domains only = No
winbind nested groups = No
comment =
path =
username =
invalid users =
valid users =
admin users =
read list =
write list =
printer admin =
force user =
force group =
read only = Yes
create mask = 0744
force create mode = 00
security mask = 0777
force security mode = 00
directory mask = 0755
force directory mode = 00
directory security mask = 0777
force directory security mode = 00
force unknown acl user = No
inherit permissions = No
inherit acls = No
guest only = No
guest ok = No
only user = No
hosts allow =
hosts deny =
ea support = No
nt acl support = Yes
profile acls = No
map acl inherit = No
afs share = No
block size = 1024
max connections = 0
min print space = 0
strict allocate = No
strict sync = No
sync always = No
use sendfile = Yes
write cache size = 0
max reported print jobs = 0
max print jobs = 1000
printable = No
printing = cups
cups options =
print command =
lpq command =
lprm command =
lppause command =
lpresume command =
queuepause command =
queueresume command =
printer name =
use client driver = No
default devmode = No
default case = lower
case sensitive = Auto
preserve case = Yes
short preserve case = Yes
mangling char = ~
hide dot files = Yes
hide special files = No
hide unreadable = No
hide unwriteable files = No
delete veto files = No
veto files =
hide files =
veto oplock files =
map system = No
map hidden = No
map archive = Yes
mangled names = Yes
mangled map =
store dos attributes = No
browseable = Yes
blocking locks = Yes
csc policy = manual
fake oplocks = No
locking = Yes
oplocks = Yes
level2 oplocks = Yes
oplock contention limit = 2
posix locking = Yes
strict locking = Yes
share modes = Yes
copy =
include =
exec =
preexec close = No
postexec =
root preexec =
root preexec close = No
root postexec =
available = Yes
volume =
fstype = NTFS
set directory = No
wide links = Yes
follow symlinks = Yes
dont descend =
magic script =
magic output =
delete readonly = No
dos filemode = No
dos filetimes = No
dos filetime resolution = No
fake directory create times = No
vfs objects =
msdfs root = No
msdfs proxy =

[netlogon]
comment = Domain-Anmeldedienst
path = /home/domainService/netlogon
browseable = No

[profiles]
comment = Benutzerprofile
path = /home/domainService/profiles
read only = No
create mask = 0600
directory mask = 0700
browseable = No


in wie weit ist es eigentlich schlimm das in der win2k regisrty zu dem domainkonto \\hp2-253\profiles\(username) steht aber in der smb.conf unter netbios name = HP2-253 steht. Ich kann auf der win2k konsole sowohl hp2-253 als auch HP2-253 auf die richtige ip des pdc´s auflösen.

so long...

Alex10
06.10.04, 11:18
Eigentlich sollte "testparm" nur herausbringen, was du auch eingestellt hast!? :eek:

meine profiles sieht so aus

[profiles]

path = /home/profiles
valid users = %U root @ntadmin
read only = no
browseable = no
store dos attributes = yes
guest ok = yes
profile acls = yes
hide files = /desktop.ini/
create mask = 0600
directory mask = 0700

und damit gehts! (bei mir...)

Bei dir fehlt unter [global] die "logon drive" Einstellung, dort legst du fest, wie dein Laufwerk heißt.

logon drive = H:

Alex

apt-get
06.10.04, 15:36
grüße

also ich hab halt mal ein testparm -v gemacht das man alle parameter sieht.

stimmt der logon drive parameter fehlt, aber ich habe auch noch keine logon scripte erstellt die das laufwerk welches unter logon drive genannt ist benutzen würden.

ich habe auch nochmal diverse howtos zum thema samba 3 als pdc für windows netzwerke gelesen und meine einstellungen verglichen. beim besten willen, ich kann kein fehler finden. solangsam bin ich wirklich am verzweifeln.

so long...

apt-get
07.10.04, 18:50
grüße

Ich hab mal etwas getestet.

In der smb.conf den eintrag bei der profiles freigabe die parameter public auf yes und browseable auf yes. Damit kann man die freigabe von der win2k-wks sehen. Dan mich als ein benuter (mschumann) angemeldet und (die fehlermeldung das der netzwerkpfad zu \\hp2-253\profiles\mschumann nicht gefunden werden kann bestätigt) per netzwerkumgebung auf das share \\hp2-253\profiles\mschumann zugegriffen. als ich mir aber die eigenschaften von einem ordner anschauen wolte stürtzte mir das fenzter der freigabe ab und ich habe in der log.smbd diesen eintrag erhalten


[2004/10/07 18:34:21, 2] auth/auth.c:check_ntlm_password(305)
check_ntlm_password: authentication for user [mschumann] -> [mschumann] -> [mschumann] succeeded
[2004/10/07 18:34:21, 0] smbd/service.c:make_connection(800)
hp2-1 (192.168.2.1) couldn't find service mschumann
[2004/10/07 18:34:21, 0] smbd/service.c:make_connection(800)
hp2-1 (192.168.2.1) couldn't find service mschumann
[2004/10/07 18:35:39, 2] smbd/server.c:exit_server(571)
Closing connections


Komisch das ich nach einem erfolgreichen zugriff dann ein absturtz erlebe.

also ich kann auch beim besten willen nichts im netz über dieses verhalten finden.

so long...