Windows Server 2003 Enterprise edition. Он же AD, DHCP, DNS, шлюз. NETBIOS: SERVERN. Его IP: 192.168.1.1
Машинка с FreeBSD IP 192.168.1.206
Домен: ac-construction.local
Вторую сетевую карточку в машинку с Фришкой пока не ставил, поэтому и настроек для второй сетевухи нет.
/etc/krb5.conf
Код: Выделить всё
# cat /etc/krb5.conf
[libdefaults]
default_realm = AC-CONSTRUCTION.LOCAL
clockskew = 300
v4_instance_resolve = false
v4_name_convert = {
host = {
rcmd = host
ftp = ftp
}
plain = {
something = something-else
}
}
[realms]
AC-CONSTRUCTION.LOCAL = {
kdc = 192.168.1.1
admin_server = 192.168.1.1
kpasswd_server = 192.168.1.1
}
[domain_realm]
.ac-construction = AC-CONSTRUCTION.LOCAL
/usr/local/etc/smb.conf
Код: Выделить всё
#======================= Global Settings =====================================
[global]
workgroup = AC-CONSTRUCTION
server string = Sams server
security = ADS
hosts allow = 192.168.1. 127.
log file = /var/log/samba/log.%m
max log size = 50
password server = servern.ac-construction.local
realm = AC-CONSTRUCTION.LOCAL
dns proxy = no
display charset = koi8-r
unix charset = koi8-r
dos charset = cp866
winbind separator = +
winbind use default domain = yes
winbind uid = 10000-15000
winbind gid = 10000-15000
winbind enum users = yes
winbind enum groups = yes
/etc/nsswitch.conf
Код: Выделить всё
# cat /etc/nsswitch.conf
#
# nsswitch.conf(5) - name service switch configuration file
# $FreeBSD: src/etc/nsswitch.conf,v 1.1.10.1.2.1 2009/10/25 01:10:29 kensmith Exp $
#
group: files winbind
group_compat: nis
hosts: files dns
networks: files
passwd: files winbind
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files
/etc/resolv.conf
resolv.conf
Код: Выделить всё
# cat /etc/resolv.conf
ac-construction ac-construction.local
nameserver 192.168.1.1
/etc/hosts
Код: Выделить всё
# cat /etc/hosts
# $FreeBSD: src/etc/hosts,v 1.16.34.1.2.1 2009/10/25 01:10:29 kensmith Exp $
#
# Host Database
#
# This file should contain the addresses and aliases for local hosts that
# share this file. Replace 'my.domain' below with the domainname of your
# machine.
#
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
#
#
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain
#
# Imaginary network.
192.168.1.206 sams.ac-construction.local sams
192.168.1.206 sams.ac-construction.local
# Контроллер домена он же DNS и DHCP
192.168.1.1 servern.ac-construction.local servern
#
# According to RFC 1918, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
# 10.0.0.0 - 10.255.255.255
# 172.16.0.0 - 172.31.255.255
# 192.168.0.0 - 192.168.255.255
#
# In case you want to be able to connect to the Internet, you need
# real official assigned numbers. Do not try to invent your own network
# numbers but instead get one from your network provider (if any) or
# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)