Автор Тема: School Server член Active Directory 2003 [решено]  (Прочитано 13615 раз)

Оффлайн Melges

  • Участник
  • *
  • Сообщений: 5
Есть Windows Server 2003 на нём весит Active Directory с кучой машин под windows. Задача включить School Server в этот домен, да так чтоб пользователи этого домена могли работать с файлами на School Server'е.

Уже пытался что нибудь сделать:

/etc/samba/smb.conf

#
#======================= Global Settings =====================================
[global]

   dos charset = CP866
   unix charset = CP1251
   display charset = LOCALE

   printcap name = cups
   load printers = yes
   printing = cups
   log file = /var/log/samba/log.%m
   max log size = 50
   log level = 2
   security = ads
   auth methods = winbind
   password server = serv32.lyceum
   realm = LYCEUM
   password level = 8
   username level = 8
  winbind uid = 10000-20000
  winbind gid = 10000-20000
  winbind separator = \
  winbind use default domain = yes
  template homedir = /home/%D/%U
  template shell = /bin/bash
   socket options = TCP_NODELAY
    local master = no
    domain master = no
    preferred master = no
    domain logons = no
    add machine script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M %u
    dns proxy = no
    use sendfile = yes
   

#============================ Share Definitions ==============================
[homes]
   comment = Home Directory for '%u'
   path = /home/%U
   browseable = no
   writable = yes
   root preexec = /etc/samba/scripts/preexec.sh -u %U -d %D

/etc/krb5.conf
[logging]
 default = FILE:/var/log/krb5libs.log
 kdc = FILE:/var/log/krb5kdc.log
 admin_server = FILE:/var/log/kadmind.log

[libdefaults]
 ticket_lifetime = 24000
 default_realm = LYCEUM
 dns_lookup_realm = false
 dns_lookup_kdc = false

[realms]
 LYCEUM = {
  kdc = server32.lyceum
  admin_server = kerberos.example.com:749
  default_domain = lyceum
 }

[domain_realm]
 .lyceum = LYCEUM
 lyceum = LYCEUM

[kdc]
 profile = /var/lib/kerberos/krb5kdc/kdc.conf

[pam]
 debug = false
 ticket_lifetime = 36000
 renew_lifetime = 36000
 forwardable = true
 krb4_convert = false

nsswith.conf
#
# Please refer to nsswitch.conf(5) for more information on this file.
#
# This is the Name Service Switch configuration file.  This file should
# be sorted with the most-used databases at the beginning.
#
# Specifying '[NOTFOUND=return]' means that the search for an entry
# should stop if the search with the previous service turned up nothing.
# Note that if the search failed due to some other reason (like no NIS
# server responding) then the search continues with the next service.
#
# Legal name services are:
#
# files Use local files
# tcb Use local tcb shadow files, see tcb(5)
# db Use local database files under /var/db
# nis or yp Use NIS (NIS version 2), also called YP
# nisplus or nis+ Use NIS+ (NIS version 3)
# dns Use DNS (Domain Name Service)
# compat Use NIS in compatibility mode
# hesiod Use Hesiod for user lookups
# [NOTFOUND=return] Stop searching if not found so far
#

passwd: files ldap compat winbind
shadow: tcb files ldap compat winbind
group:  files ldap compat winbind

hosts:      files nisplus nis dns


ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files


bootparams: nisplus [NOTFOUND=return] files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus


wbinfo -t выдаёт:
checking the trust secret via RPC calls failed
error code was NT_STATUS_CONTROLLER_NOT_FOUND (0xc0000233)
Could not check secret
wbinfo -u
Error looking up domain users

net time set прописывал
net join тоже - успешно, на windows появился, добавил linux'овом серваке поставил галочку , что может запрашивать авторизацию пользователей.
Вот лог машины с которой пытаюсь подсоединиться к linux'u
[2009/03/05 03:22:04, 1] libads/kerberos_verify.c:ads_verify_ticket(375)
  ads_verify_ticket: smb_krb5_parse_name(project$) failed (Configuration file does not specify default realm)
[2009/03/05 03:22:04, 1] smbd/sesssetup.c:reply_spnego_kerberos(316)
  Failed to verify incoming ticket with error NT_STATUS_LOGON_FAILURE!
[2009/03/05 03:22:04, 1] libads/kerberos_verify.c:ads_verify_ticket(375)
  ads_verify_ticket: smb_krb5_parse_name(project$) failed (Configuration file does not specify default realm)
[2009/03/05 03:22:04, 1] smbd/sesssetup.c:reply_spnego_kerberos(316)
  Failed to verify incoming ticket with error NT_STATUS_LOGON_FAILURE!
[2009/03/05 03:22:11, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 192.168.1.12. Error Connection reset by peer
[2009/03/05 03:22:11, 0] lib/util_sock.c:send_smb(761)
  Error writing 4 bytes to client. -1. (Connection reset by peer)
[2009/03/05 03:29:42, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
[2009/03/05 03:29:42, 0] lib/util_sock.c:send_smb(761)
  Error writing 4 bytes to client. -1. (Connection reset by peer)
[2009/03/05 03:41:28, 1] smbd/sesssetup.c:reply_spnego_kerberos(316)
  Failed to verify incoming ticket with error NT_STATUS_LOGON_FAILURE!
[2009/03/05 03:41:28, 1] smbd/sesssetup.c:reply_spnego_kerberos(316)
  Failed to verify incoming ticket with error NT_STATUS_LOGON_FAILURE!
[2009/03/05 03:41:34, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 192.168.1.12. Error Connection reset by peer
[2009/03/05 03:41:34, 0] lib/util_sock.c:send_smb(761)
  Error writing 4 bytes to client. -1. (Connection reset by peer)
[2009/03/04 19:47:51, 1] smbd/sesssetup.c:reply_spnego_kerberos(439)
  Username LYCEUM#Melges is invalid on this system

Точно так делал на Office Server и на Ubuntu server всё работало!

Помогите, кто как может!
« Последнее редактирование: 27.04.2010 14:36:53 от Skull »

Оффлайн ab

  • alt linux team
  • ***
  • Сообщений: 36
  • Непарный валенок
Re: School Server член Active Directory 2003
« Ответ #1 : 05.03.2009 00:44:19 »
Судя по логам, krb5 не может правильно разобраться с realm, несмотря на прописанные настройки по умолчанию, он его просто не видит. В smb.conf  realm должен быть указан правильно в виде домена.

Оффлайн Melges

  • Участник
  • *
  • Сообщений: 5
Re: School Server член Active Directory 2003
« Ответ #2 : 06.03.2009 12:19:42 »
Не подскажите как?

Оффлайн Melges

  • Участник
  • *
  • Сообщений: 5
Re: School Server член Active Directory 2003
« Ответ #3 : 08.03.2009 13:52:55 »
Решил проблему: пересоздал файл krb5.conf и всё заработало.

Оффлайн bigzom

  • Участник
  • *
  • Сообщений: 25
Re: School Server член Active Directory 2003 [решено]
« Ответ #4 : 06.02.2012 13:51:38 »
привет Всем! у меня сервер виндоус 2003,  клиент альтлинукс 6 КДесктоп , сделал вс е как написал Melges , но я немогу понять где вводить команду wbinfo -t  писал ее в терминале выдет ошибку - bash: wbinfo: команда не найдена , Народ ПАМАГИТЕ пожалуйста новичку - может есть где нибудь мануал где пошаговое описание с нуля, или в alt linux 6 kdesctop как то по проще может настраивается подключение к windows server 2003 active directory? 
 
Свобода слова - свобода Linux !

Оффлайн Andrey

  • Участник
  • *
  • Сообщений: 734
Re: School Server член Active Directory 2003 [решено]
« Ответ #5 : 06.02.2012 17:26:29 »
#wbinfo -tДелали это от root?

Оффлайн bigzom

  • Участник
  • *
  • Сообщений: 25
Re: School Server член Active Directory 2003 [решено]
« Ответ #6 : 07.02.2012 06:57:39 »
#wbinfo -tДелали это от root?
да от root
Свобода слова - свобода Linux !

Оффлайн Andrey

  • Участник
  • *
  • Сообщений: 734
Re: School Server член Active Directory 2003 [решено]
« Ответ #7 : 07.02.2012 12:01:52 »
а в root как попадали?
#rpm -qa|grep winbindчто выдает?

Оффлайн bigzom

  • Участник
  • *
  • Сообщений: 25
Re: School Server член Active Directory 2003 [решено]
« Ответ #8 : 07.02.2012 14:02:01 »
а в root как попадали?
команда su далее пароль
#rpm -qa|grep winbindчто выдает?

выдает -
samba-winbind-clients-3.5.10-alt2
Свобода слова - свобода Linux !

Оффлайн Skull

  • Глобальный модератор
  • *****
  • Сообщений: 20 166
    • Домашняя страница
Re: School Server член Active Directory 2003 [решено]
« Ответ #9 : 07.02.2012 14:06:11 »
команда su далее пароль
Нужно su -Подробности: http://www.altlinux.org/Su
Андрей Черепанов (cas@)

Оффлайн bigzom

  • Участник
  • *
  • Сообщений: 25
Re: School Server член Active Directory 2003 [решено]
« Ответ #10 : 07.02.2012 17:14:00 »
да спасибо,набрал su - , все равно при наборе команды wbinfo -t так же пишет мол команда не найдена
Свобода слова - свобода Linux !

Оффлайн Andrey

  • Участник
  • *
  • Сообщений: 734
Re: School Server член Active Directory 2003 [решено]
« Ответ #11 : 08.02.2012 05:36:37 »
Поставте samba-winbind.

Оффлайн bigzom

  • Участник
  • *
  • Сообщений: 25
Re: School Server член Active Directory 2003 [решено]
« Ответ #12 : 08.02.2012 07:46:36 »
Поставте samba-winbind.
нашел линк http://sisyphus.ru/ru/srpm/Sisyphus/samba/get - но там по каким то причинам не качается  :(  далее пшел сюда http://ftp.altlinux.org/pub/distributions/ALTLinux/5.1/branch/ - но тут я не знаю какой выбрать. помогите с выбором   :) на самой машине с альт линуксом нету выхода в интернет , вся работа проходит локально, может есть линк на последний пакет samba ?
Свобода слова - свобода Linux !

Оффлайн ksa

  • Модератор глобальный
  • *****
  • Сообщений: 9 049
Re: School Server член Active Directory 2003 [решено]
« Ответ #13 : 08.02.2012 09:16:54 »
Дистрибутив у вас какой, на пятой или шестой платформе ? Пакет желательно ставить именно с того бранча, на котором собран дистрибутив.

Оффлайн bigzom

  • Участник
  • *
  • Сообщений: 25
Re: School Server член Active Directory 2003 [решено]
« Ответ #14 : 08.02.2012 12:03:41 »
Дистрибутив у вас какой, на пятой или шестой платформе ?
на шестой платформе ALTLinux 6 KDesktop
Свобода слова - свобода Linux !