доступ организован на уровне ADS
все замечательно работает уже 2 года, но теперь необходимо организовать доступ к ресурсу 4_WG другому отделу, который ни каким макаром в домен DOM не вхошь, у них обычная рабочая группа.
был поднят дополнительный интерфейс eth2 и выделена сеть 192.168.2.0/24
была создана локальная группа WG, созданы локальные юзвери в группе WG и smb-юзвери аналогичные локальным.
проблем с доменными юзверями нет - они ресурс 4_WG видят и работают, а вот из рабочей группы получают отлуп
Код: Выделить всё
2011/03/23 12:57:31, 3] auth/auth.c:check_ntlm_password(223)
check_ntlm_password: mapped user is: [DOM]\[ingener]@[INGENERTD]
[2011/03/23 12:57:31, 3] smbd/sec_ctx.c:push_sec_ctx(224)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2011/03/23 12:57:31, 3] smbd/uid.c:push_conn_ctx(407)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2011/03/23 12:57:31, 3] smbd/sec_ctx.c:set_sec_ctx(324)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2011/03/23 12:57:31, 3] smbd/sec_ctx.c:pop_sec_ctx(432)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/03/23 12:57:31, 2] auth/auth.c:check_ntlm_password(318)
check_ntlm_password: Authentication for user [ingener] -> [ingener] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/03/23 12:57:31, 3] smbd/error.c:error_packet_set(61)
error packet at smbd/sesssetup.c(127) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FAILURE
[2011/03/23 12:57:31, 3] smbd/process.c:smbd_process(2058)
receive_message_or_smb failed: NT_STATUS_END_OF_FILE, exiting
[2011/03/23 12:57:31, 3] smbd/sec_ctx.c:set_sec_ctx(324)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/03/23 12:57:31, 3] smbd/connection.c:yield_connection(31)
Yielding connection to
[2011/03/23 12:57:31, 3] smbd/server.c:exit_server_common(953)
Server exit (normal exit)
Код: Выделить всё
# id ingener
uid=10305(ingener) gid=100(users) группы=100(users),10098(wg)
# pdbedit -L -w
ingener:10305:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:3BEE47A7E3EC727E40749D5304449168:[U ]:LCT-4D79BEF1:
Код: Выделить всё
[global]
interfaces = eth0 eth2 lo
hosts allow = 192.168.10. 192.168.2. 127.
netbios name = FileServer
workgroup = dom
password server = 192.168.10.1
server string = File Server
security = ADS
realm = DOM
passdb backend = tdbsam
allow trusted domains = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 1
preferred master = No
local master = No
domain master = No
dns proxy = No
ldap ssl = no
strict locking = No
time server = no
auth methods = winbind
encrypt passwords = yes
winbind use default domain = yes
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
log file = /var/log/samba/log.%m
max log size = 1024
log level = 3
display charset = koi8-r
unix charset = koi8-r
dos charset = cp866
nt acl support = yes
printcap name = /etc/printcap
max xmit = 65535
dead time = 15
use sendfile = no
max open files = 65535
kernel oplocks = yes
[4_WG]
comment = files for WG
path = /all/wg
admin users = @"DOM\администраторы домена", @WG
read only = no
create mask = 1775
directory mask = 1775
printable = no
available = yes
map acl inherit = yes
inherit owner = no
inherit acls = no
inherit permissions = no
acl check permissions = true
acl map full control = true
blocking locks = yes
level2 oplocks = yes
locking = yes
oplocks = yes
strict locking = no
posix locking = yes
browseable = yes
share modes = yes