Автор: ColdSUN
Дата сообщения: 14.03.2007 12:03
А у меня проблема в следующем...
Нужно сделать файл сервер с привязкой к AD
wbinfo -u пользователей видит
на этой же машине стоит squid который исправно авторизует юзверей из AD
Комп виден в сетевом окружении и есть в AD.
Но при попытке зайти просит ввести имя пользователя и пароль. В это время в логах такая фигня: [more=Лог]
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_alloc(313)
Finding user coldsun
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_internals(262)
Trying _Get_Pwnam(), username as lowercase is coldsun
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_internals(278)
Trying _Get_Pwnam(), username as uppercase is COLDSUN
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_internals(286)
Checking combinations of 0 uppercase letters in coldsun
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_internals(290)
Get_Pwnam_internals didn't find user [coldsun]!
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_alloc(313)
Finding user coldsun
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_internals(262)
Trying _Get_Pwnam(), username as lowercase is coldsun
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_internals(278)
Trying _Get_Pwnam(), username as uppercase is COLDSUN
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_internals(286)
Checking combinations of 0 uppercase letters in coldsun
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_internals(290)
Get_Pwnam_internals didn't find user [coldsun]!
[2007/03/14 14:00:45, 3] auth/auth_util.c:make_server_info_info3(1158)
User coldsun does not exist, trying to add it
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_alloc(313)
Finding user OLMI+coldsun
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_internals(262)
Trying _Get_Pwnam(), username as lowercase is olmi+coldsun
[2007/03/14 14:00:45, 5] lib/username.c:Get_Pwnam_internals(269)
Trying _Get_Pwnam(), username as given is OLMI+coldsun
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_internals(278)
Trying _Get_Pwnam(), username as uppercase is OLMI+COLDSUN
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_internals(286)
Checking combinations of 0 uppercase letters in olmi+coldsun
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_internals(290)
Get_Pwnam_internals didn't find user [OLMI+coldsun]!
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_alloc(313)
Finding user coldsun
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_internals(262)
Trying _Get_Pwnam(), username as lowercase is coldsun
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_internals(278)
Trying _Get_Pwnam(), username as uppercase is COLDSUN
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_internals(286)
Checking combinations of 0 uppercase letters in coldsun
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_internals(290)
Get_Pwnam_internals didn't find user [coldsun]!
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_alloc(313)
Finding user coldsun
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_internals(262)
Trying _Get_Pwnam(), username as lowercase is coldsun
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_internals(278)
Trying _Get_Pwnam(), username as uppercase is COLDSUN
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_internals(286)
Checking combinations of 0 uppercase letters in coldsun
[2007/03/14 14:00:46, 5] lib/username.c:Get_Pwnam_internals(290)
Get_Pwnam_internals didn't find user [coldsun]!
[2007/03/14 14:00:46, 0] auth/auth_util.c:make_server_info_info3(1173)
make_server_info_info3: pdb_init_sam failed!
[2007/03/14 14:00:46, 5] auth/auth.c:check_ntlm_password(271)
check_ntlm_password: winbind authentication for user [coldsun] FAILED with error NT_STATUS_NO_SUCH_USER
[2007/03/14 14:00:46, 2] auth/auth.c:check_ntlm_password(317)
check_ntlm_password: Authentication for user [coldsun] -> [coldsun] FAILED with error NT_STATUS_NO_SUCH_USER
[2007/03/14 14:00:46, 5] auth/auth_util.c:free_user_info(1361)
attempting to free (and zero) a user_info structure
[2007/03/14 14:00:46, 5] lib/util.c:show_msg(476)
[2007/03/14 14:00:46, 5] lib/util.c:show_msg(486)
[/more]
[more=конфиг]конфиг
[global]
nt acl support = yes
nt status support = yes
dos charset = CP866
unix charset = KOI8-R
dns proxy = no
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
max log size = 50
hosts allow = 192.168.0.0/24 127.0.
password server = primary
allow trusted domains = yes
security = domain
unix password sync = Yes
log level = 8
local master = no
server string = Mail Server
workgroup = OLMI
log file = /var/log/samba/log.%m
netbios name = MailServer
guest account = squid
winbind separator = +
winbind use default domain = yes
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
template shell = /bin/bash
[home]
comment = ftp
path = /home/
browseable = yes
writable = yes
directory mask = 0666
[/more]
Причём если пользователя coldsun добавить на машинку локально, то его начинает пускать. Можно даже не создавать пароль для него, тоесть видимо нужно чтобы пользователь присутствовал в passwd, но всех пользователей домена я туда добавить не могу.
Упреждая вопрос:
[more=nsswich.conf]#
# /etc/nsswitch.conf
passwd: files winbind
shadow: files winbind
group: files winbind
hosts: files dns
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: nisplus
publickey: nisplus
automount: files nisplus
aliases: files nisplus
[/more]
Очень прошу помощи.