Здравствуйте. У меня возникла проблема с авторизацией в домене самба.
Суть в следующем: я добавляю пользователя на пдс:
smbpasswd -a omg
потом пытаюсь просмотреть с помощью этого пользователя другую машину
smbclient -L 192.168.1.2 -U omg
session setup failed: NT_STATUS_LOGON_FAILURE
useradd omg
smbclient -L 192.168.1.2 -U omg
не подскажите в чем проблема? Как сделать так, что бы клиенты брали свзяку «логин+пароль» с пдц?
на пдс:
[global]
workgroup = FIRE
netbios name = sunfire
wins support = Yes
domain master = yes
local master = yes
preferred master = Yes
os level= 255
security= user
encrypt passwords = yes
domain logons = yes
logon path = \\%L\profiles\%u\%m
logon drive = X:
logon home = \\sunfire\%u\.win_profile\%m
logon script = login.bat
time server =yes
# domain admin group = root
add user script = /usr/sbin/useradd -m -G users '%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 to group script = /usr/sbin/usermod -a -G '%g' '%u'
delete user from group script = /usr/bin/gpasswd -d %u %g
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody '%u'
[homes]
comment = Home Directories
read only = No
browseable = No
[netlogon]
path = /srv/samba/netlogon
browseable = No
[profiles]
path = /srv/samba/nt-prof
read only = No
create mask = 0600
directory mask = 0700
browseable = No
[dfs]
comment = Dfs share
path = /srv/samba/dfs
msdfs root = Yes
...
на клиенте:
root@debian:/etc# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[Video_vol_1]"
Processing section "[Video_vol_2]"
Processing section "[Music]"
Processing section "[Share]"
Processing section "[Soft]"
Processing section "[Rammstein]"
Processing section "[Android]"
Processing section "[Repository]"
Processing section "[WTR]"
Processing section "[BSUIR]"
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions
[global]
workgroup = FIRE
netbios name = Debian
security = domain
encrypt passwords = true
password server = *
wins server = 192.168.1.4
os level = 33
log level = 5
....
на клиенте:
root@debian:/etc# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files wins mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis