View Full Version : Inserire Win xp in dominio Samba PDC
niko_lol
22-03-2009, 03:38
Ciao,
sto porvando a inserire un pc win in domino (il dominio è Samba).
Quando mi chiede user e pass per l'accesso mi dice: "Impossibile trovare il nome utente".
Cmq, l'utente c'è in smbpasswd e per non sbaglaire ho usato password uguali.
Dove sbaglio? :help: :help: :help:
grazie a tutti.
dai un'occhiata al punto
5- Configurazione dei client
http://openskill.info/infobox.php?ID=552
niko_lol
22-03-2009, 12:33
In XP ho modificato la policy e il Dword.
Poi ho creato un user in xp uguale al smbpasswd ma nulla da fare.
Ho aggiunto anche il root in smbpasswd per poi inserire come user: root e la password: pass.
Ho provato anche ad aggiungere il nome in comemune a smbpasswd e l'user in XP ma niente da fare.
Ho creato un add user script /usr/sbin/useradd -m %u.
Più il delete sia degli users che dei gruppi e che entrabe le cose e un add machine script.
Nel netlogon ho aggiunto un validi user = %S e in profiles e hemes ho aggiunto valid user = %U
Un attimo che vi posto il file smb.conf.
Non riesco a capire perchè non va.
niko_lol
22-03-2009, 13:13
Questo è il mio smb.conf
ci sono errori?
**************************************************************************
[global]
workgroup = freenano.local
netbios name = DebianServer
; netbios aliases = Debian
preferred master = yes
local master = yes
; hosts allow 127.0.0.1 192.1668.0.0/255.255.255.0
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user from gruop script = /usr/sbin/groupmod -A %u % g
delete user to group script = /usr/sbin/groupmod -R %u %g
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u
; add machine script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u
os level = 99
security = DOMAIN
unix password sync = Yes
passwd program = /usr/bin/passwd %u
encrypt passwords = Yes
log file = /var/log/samba/%m
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
domain logons = Yes
domain master = Yes
time server = Yes
logon path = \\%L\profiles\%U
logon home = \\%L\%U\.profile
logon drive = Z:
logon script = /home/samba/script/netlogon.bat
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *Enter* new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd: *all* authentication*tokens*updated*successfully*
[netlogon]
path = /home/samba/netlogon/
valid users = %U
guest ok = no
write list = @admin
browseable = No
read only = yes
[profiles]
path = /home/samba/profiles/
valid users = %U
writeable = yes
create mask = 600
directory mask = 700
browseable = no
guest ok = no
[homes]
path = /home/samba/profiles/%U
valid users = %S
guest ok = no
browseable = no
writeable = yes
[share]
path = /home/samba/share
public =yes
writeable = yes
read only = no
browseable = no
guest ok = yes
create mask = 777
directory mask = 777
**************************************************************************
qui ci sono 2 esempi
http://openskill.info/infobox.php?ID=1167
http://daniel.fiser.cz/?go=samba
niko_lol
22-03-2009, 13:31
Ti pongo una doamnda: quì: http://daniel.fiser.cz/?go=samba
Daniel ha inserito in
[global] questa 3 stringhe + commento:
admin users = @wheel
; domain administrators
domain admin group = @wheel
domain admin users = root
lui quì ha aggiunti un gruppo wheel che ci fa perte root. Giusto?
quando XP gli chiede user e pass ci mette root come usere le pass quella che hai nserito lui.
ho creato un gruppo che si chima admin (groupadd admin), e ho inserito l'utente root in smbpasswd però non fa parte del gruppo admin, come faccio a aggiungerlo?
Oppure basta scrivere queste tre righe:
admin users = @wheel
domain admin group = @wheel
domain admin users = root
Per l'autenticazione nel dominio con XP?
grazie.
non avevi il gruppo wheel ?
http://openskill.info/topic.php?ID=27
niko_lol
22-03-2009, 19:26
no non ho quel gruppo.
Cmq l'errore era nello script di "add machine script", l'ho modificato e mi ha aggiunto xp in dominio.
Ora ho 1 altro problema; l'utente come fa acambaire le password?
mi dice che non ha le autorizzazioni.
non ho trovato molto in giro. Non uso samba+ldap ma solo samba.
grazie :)
con smbpasswd ?
che errore ?
p.s.
4- Aggiungere login e password
da: http://openskill.info/infobox.php?ID=552
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.