Glocke
Anmeldungsdatum: 1. März 2009
Beiträge: 880
Wohnort: Thüringen
|
Hi, nachdem auf meinem Server nun DHCP und DNS (via bind9 , Samba ist auch mit BIND9_DLZ eingerichtet) laufen, habe ich angefangen Samba als Active Directory Domain Controller für FSG.EDU (server.fsg.edu ) einzurichten. Provisioning ist durch, allerdings können _ldap._tcp.fsg.edu und _kerberos._udp.fsg.edu nicht gefunden werden. | fsgadmin@server:~$ host -t SRV _ldap._tcp.fsg.edu
Host _ldap._tcp.fsg.edu not found: 3(NXDOMAIN)
fsgadmin@server:~$ host -t SRV _kerberos._udp.fsg.edu
Host _kerberos._udp.fsg.edu not found: 3(NXDOMAIN)
|
DNS läuft:
| fsgadmin@server:~$ sudo netstat -tpln | grep "named"
tcp 0 0 10.0.0.1:53 0.0.0.0:* LISTEN 997/named
tcp 0 0 192.168.0.254:53 0.0.0.0:* LISTEN 997/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 997/named
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 997/named
tcp6 0 0 :::53 :::* LISTEN 997/named
tcp6 0 0 ::1:953 :::* LISTEN 997/named
|
| fsgadmin@server:~$ nslookup server.fsg.edu
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: server.fsg.edu
Address: 10.0.0.1
|
Samba läuft (bis auf das Problem, dass es keine ordentliche IP bekommt):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 | fsgadmin@server:~$ sudo netstat -tpln | grep "samba"
tcp 0 0 0.0.0.0:49153 0.0.0.0:* LISTEN 1525/samba
tcp 0 0 0.0.0.0:49154 0.0.0.0:* LISTEN 1525/samba
tcp 0 0 0.0.0.0:3268 0.0.0.0:* LISTEN 1528/samba
tcp 0 0 0.0.0.0:3269 0.0.0.0:* LISTEN 1528/samba
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 1528/samba
tcp 0 0 0.0.0.0:135 0.0.0.0:* LISTEN 1525/samba
tcp 0 0 0.0.0.0:464 0.0.0.0:* LISTEN 1532/samba
tcp 0 0 0.0.0.0:88 0.0.0.0:* LISTEN 1532/samba
tcp 0 0 0.0.0.0:636 0.0.0.0:* LISTEN 1528/samba
tcp 0 0 0.0.0.0:49152 0.0.0.0:* LISTEN 1525/samba
tcp6 0 0 :::49153 :::* LISTEN 1525/samba
tcp6 0 0 :::49154 :::* LISTEN 1525/samba
tcp6 0 0 :::3268 :::* LISTEN 1528/samba
tcp6 0 0 :::3269 :::* LISTEN 1528/samba
tcp6 0 0 :::389 :::* LISTEN 1528/samba
tcp6 0 0 :::135 :::* LISTEN 1525/samba
tcp6 0 0 :::464 :::* LISTEN 1532/samba
tcp6 0 0 :::88 :::* LISTEN 1532/samba
tcp6 0 0 :::636 :::* LISTEN 1528/samba
tcp6 0 0 :::49152 :::* LISTEN 1525/samba
|
| fsgadmin@server:~$ wbinfo -u
FSG\administrator
FSG\guest
FSG\krbtgt
FSG\dns-server
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | fsgadmin@server:~$ smbclient -L server.fsg.edu -U%
Sharename Type Comment
--------- ---- -------
netlogon Disk
sysvol Disk
IPC$ IPC IPC Service (Samba 4.7.6-Ubuntu)
Reconnecting with SMB1 for workgroup listing.
Server Comment
--------- -------
Workgroup Master
--------- -------
WORKGROUP SERVER
|
Kerberos läuft:
| fsgadmin@server:~$ kinit administrator
Password for administrator@FSG.EDU:
Warning: Your password will expire in 41 days on Fr 22 Jun 2018 08:05:39 UTC
|
| fsgadmin@server:~$ klist
Ticket cache: FILE:/tmp/krb5cc_1000
Default principal: administrator@FSG.EDU
Valid starting Expires Service principal
11.05.2018 08:43:47 11.05.2018 18:43:47 krbtgt/FSG.EDU@FSG.EDU
renew until 12.05.2018 08:43:44
fsgadmin@server:~$
|
Und hier noch ein paar Configs... bind9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | fsgadmin@server:~$ cat /etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "fsg.edu" {
type master;
file "/etc/bind/db.fsg.edu";
};
zone "0.0.10.in-addr.arpa" {
type master;
file "/etc/bind/0.0.10.zone";
};
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14 | fsgadmin@server:~$ cat /etc/bind/db.fsg.edu
;; db.fsg.edu
;; Forward Lookup Zone für fsg.edu (10.0.0.0/24)
;;
$TTL 2D
@ IN SOA server.fsg.edu. root.fsg.edu. (
2018051102 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
3H ) ; TTL Negativ Cache
IN NS server.fsg.edu.
server.fsg.edu. IN A 10.0.0.1
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | fsgadmin@server:~$ cat /etc/bind/0.0.10.zone
;; 0.0.10.zone
;; Reverse Loopup Zone für fsg.edu (10.0.0.0/24)
;;
$TTL 2D
@ IN SOA server.fsg.edu. root.fsg.edu (
2018051102 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
2D ) ; TTL Negativ Cache
IN NS server.fsg.edu.
1 IN PTR server.fsg.edu. ; 10.0.0.1
|
samba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | fsgadmin@server:~$ cat /etc/samba/smb.conf
# Global parameters
[global]
netbios name = SERVER
realm = FSG.EDU
server role = active directory domain controller
server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate
workgroup = FSG
idmap_ldb:use rfc2307 = yes
[netlogon]
path = /var/lib/samba/sysvol/fsg.edu/scripts
read only = No
[sysvol]
path = /var/lib/samba/sysvol
read only = No
|
| fsgadmin@server:~$ cat /etc/krb5.conf
[libdefaults]
default_realm = FSG.EDU
dns_lookup_realm = false
dns_lookup_kdc = true
|
Ich bin für Vorschläge zu haben ☺ Wer hat 'ne Idee? LG Glocke /EDIT: Beim Start von Samba kommt in /var/log/samba/log.samba das folgende zum Vorschein:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 | [2018/05/11 08:52:01.171482, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
[2018/05/11 08:52:01.183199, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
[2018/05/11 08:52:01.201562, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: return self.run(*args, **kwargs)
[2018/05/11 08:52:01.202896, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
[2018/05/11 08:52:01.226658, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: raise e
[2018/05/11 08:52:01.546219, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
[2018/05/11 08:52:01.548326, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
[2018/05/11 08:52:01.548847, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: return self.run(*args, **kwargs)
[2018/05/11 08:52:01.549416, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
[2018/05/11 08:52:01.549928, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: raise e
[2018/05/11 08:52:01.613576, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
[2018/05/11 08:52:01.615151, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
[2018/05/11 08:52:01.616457, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: return self.run(*args, **kwargs)
[2018/05/11 08:52:01.618252, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
[2018/05/11 08:52:01.618372, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: raise e
[2018/05/11 08:52:01.686226, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
[2018/05/11 08:52:01.687514, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
[2018/05/11 08:52:01.688330, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: return self.run(*args, **kwargs)
[2018/05/11 08:52:01.688841, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
[2018/05/11 08:52:01.689382, 0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
/usr/sbin/samba_dnsupdate: raise e
usw. immer weiter bis
[2018/05/11 08:52:03.923376, 0] ../source4/dsdb/dns/dns_update.c:290(dnsupdate_nameupdate_done)
../source4/dsdb/dns/dns_update.c:290: Failed DNS update - with error code 3
|
|
misterunknown
Ehemalige
Anmeldungsdatum: 28. Oktober 2009
Beiträge: 4403
Wohnort: Sachsen
|
Samba als AD DC zu betreiben ist nicht ganz trivial, da DNS ja ein Kernstück von Active Directory ist. Es gibt prinzipiell zwei Möglichkeiten: Den internen DNS von Samba zu nutzen, oder Bind für dynamische Updates zu konfigurieren. Ich würde den internen Dienst von Samba nehmen, notfalls in einer Sub-Zone, die nur für AD zuständig ist, beispielsweise ad.fsg.edu. Dann kannst du für fsg.edu einen normalen Bind nehmen.
|
Glocke
(Themenstarter)
Anmeldungsdatum: 1. März 2009
Beiträge: 880
Wohnort: Thüringen
|
cflinux schrieb: Hier ist beschrieben, wie ein bind mit Samba4 benutzt wird https://wiki.samba.org/index.php/BIND9_DLZ_DNS_Back_End
Habe ich gerade noch nachgeholt (mit angepassten Pfaden, die stimmten für meinen Fall nicht). Der Test der Dynamic DNS Updates schlägt mit der gleichen Meldung (WERR_DNS_ERROR_RECORD_ALREADY_EXISTS ) fehl:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143 | fsgadmin@server:~$ sudo samba_dnsupdate --verbose --all-names
IPs: ['10.0.0.1', '192.168.0.254']
force update: A server.fsg.edu 10.0.0.1
force update: NS fsg.edu server.fsg.edu
force update: NS _msdcs.fsg.edu server.fsg.edu
force update: A fsg.edu 10.0.0.1
force update: SRV _ldap._tcp.fsg.edu server.fsg.edu 389
force update: SRV _ldap._tcp.dc._msdcs.fsg.edu server.fsg.edu 389
force update: SRV _ldap._tcp.d3046be0-3c90-4987-b1c9-4e1a3630c9b3.domains._msdcs.fsg.edu server.fsg.edu 389
force update: SRV _kerberos._tcp.fsg.edu server.fsg.edu 88
force update: SRV _kerberos._udp.fsg.edu server.fsg.edu 88
force update: SRV _kerberos._tcp.dc._msdcs.fsg.edu server.fsg.edu 88
force update: SRV _kpasswd._tcp.fsg.edu server.fsg.edu 464
force update: SRV _kpasswd._udp.fsg.edu server.fsg.edu 464
force update: CNAME 91c61ea6-b369-4804-8bfd-06d3c821f1fc._msdcs.fsg.edu server.fsg.edu
force update: SRV _ldap._tcp.Default-First-Site-Name._sites.fsg.edu server.fsg.edu 389
force update: SRV _ldap._tcp.Default-First-Site-Name._sites.dc._msdcs.fsg.edu server.fsg.edu 389
force update: SRV _kerberos._tcp.Default-First-Site-Name._sites.fsg.edu server.fsg.edu 88
force update: SRV _kerberos._tcp.Default-First-Site-Name._sites.dc._msdcs.fsg.edu server.fsg.edu 88
force update: SRV _ldap._tcp.pdc._msdcs.fsg.edu server.fsg.edu 389
force update: A gc._msdcs.fsg.edu 10.0.0.1
force update: SRV _gc._tcp.fsg.edu server.fsg.edu 3268
force update: SRV _ldap._tcp.gc._msdcs.fsg.edu server.fsg.edu 3268
force update: SRV _gc._tcp.Default-First-Site-Name._sites.fsg.edu server.fsg.edu 3268
force update: SRV _ldap._tcp.Default-First-Site-Name._sites.gc._msdcs.fsg.edu server.fsg.edu 3268
force update: A DomainDnsZones.fsg.edu 10.0.0.1
force update: SRV _ldap._tcp.DomainDnsZones.fsg.edu server.fsg.edu 389
force update: SRV _ldap._tcp.Default-First-Site-Name._sites.DomainDnsZones.fsg.edu server.fsg.edu 389
force update: A ForestDnsZones.fsg.edu 10.0.0.1
force update: SRV _ldap._tcp.ForestDnsZones.fsg.edu server.fsg.edu 389
force update: SRV _ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones.fsg.edu server.fsg.edu 389
force update: A server.fsg.edu 192.168.0.254
force update: A fsg.edu 192.168.0.254
force update: A gc._msdcs.fsg.edu 192.168.0.254
force update: A DomainDnsZones.fsg.edu 192.168.0.254
force update: A ForestDnsZones.fsg.edu 192.168.0.254
34 DNS updates and 0 DNS deletes needed
Failed to get Kerberos credentials, falling back to samba-tool: kinit for SERVER$@FSG.EDU failed (Cannot contact any KDC for requested realm)
update (samba-tool): A server.fsg.edu 10.0.0.1
Calling samba-tool dns for A server.fsg.edu 10.0.0.1 (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', 'fsg.edu', 'server', 'A', '10.0.0.1']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of A server.fsg.edu 10.0.0.1
update (samba-tool): NS fsg.edu server.fsg.edu
Calling samba-tool dns for NS fsg.edu server.fsg.edu (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', 'fsg.edu', '@', 'NS', 'server.fsg.edu']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of NS fsg.edu server.fsg.edu
update (samba-tool): NS _msdcs.fsg.edu server.fsg.edu
Calling samba-tool dns for NS _msdcs.fsg.edu server.fsg.edu (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', '_msdcs.fsg.edu', '@', 'NS', 'server.fsg.edu']
cERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of NS _msdcs.fsg.edu server.fsg.edu
update (samba-tool): A fsg.edu 10.0.0.1
Calling samba-tool dns for A fsg.edu 10.0.0.1 (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', 'fsg.edu', '@', 'A', '10.0.0.1']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of A fsg.edu 10.0.0.1
update (samba-tool): SRV _ldap._tcp.fsg.edu server.fsg.edu 389
Calling samba-tool dns for SRV _ldap._tcp.fsg.edu server.fsg.edu 389 (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', 'fsg.edu', '_ldap._tcp', 'SRV', 'server.fsg.edu 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.fsg.edu server.fsg.edu 389
update (samba-tool): SRV _ldap._tcp.dc._msdcs.fsg.edu server.fsg.edu 389
Calling samba-tool dns for SRV _ldap._tcp.dc._msdcs.fsg.edu server.fsg.edu 389 (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', '_msdcs.fsg.edu', '_ldap._tcp.dc', 'SRV', 'server.fsg.edu 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.dc._msdcs.fsg.edu server.fsg.edu 389
update (samba-tool): SRV _ldap._tcp.d3046be0-3c90-4987-b1c9-4e1a3630c9b3.domains._msdcs.fsg.edu server.fsg.edu 389
Calling samba-tool dns for SRV _ldap._tcp.d3046be0-3c90-4987-b1c9-4e1a3630c9b3.domains._msdcs.fsg.edu server.fsg.edu 389 (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', '_msdcs.fsg.edu', '_ldap._tcp.d3046be0-3c90-4987-b1c9-4e1a3630c9b3.domains', 'SRV', 'server.fsg.edu 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.d3046be0-3c90-4987-b1c9-4e1a3630c9b3.domains._msdcs.fsg.edu server.fsg.edu 389
update (samba-tool): SRV _kerberos._tcp.fsg.edu server.fsg.edu 88
Calling samba-tool dns for SRV _kerberos._tcp.fsg.edu server.fsg.edu 88 (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', 'fsg.edu', '_kerberos._tcp', 'SRV', 'server.fsg.edu 88 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of SRV _kerberos._tcp.fsg.edu server.fsg.edu 88
update (samba-tool): SRV _kerberos._udp.fsg.edu server.fsg.edu 88
Calling samba-tool dns for SRV _kerberos._udp.fsg.edu server.fsg.edu 88 (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', 'fsg.edu', '_kerberos._udp', 'SRV', 'server.fsg.edu 88 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of SRV _kerberos._udp.fsg.edu server.fsg.edu 88
update (samba-tool): SRV _kerberos._tcp.dc._msdcs.fsg.edu server.fsg.edu 88
Calling samba-tool dns for SRV _kerberos._tcp.dc._msdcs.fsg.edu server.fsg.edu 88 (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', '_msdcs.fsg.edu', '_kerberos._tcp.dc', 'SRV', 'server.fsg.edu 88 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of SRV _kerberos._tcp.dc._msdcs.fsg.edu server.fsg.edu 88
update (samba-tool): SRV _kpasswd._tcp.fsg.edu server.fsg.edu 464
Calling samba-tool dns for SRV _kpasswd._tcp.fsg.edu server.fsg.edu 464 (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', 'fsg.edu', '_kpasswd._tcp', 'SRV', 'server.fsg.edu 464 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of SRV _kpasswd._tcp.fsg.edu server.fsg.edu 464
update (samba-tool): SRV _kpasswd._udp.fsg.edu server.fsg.edu 464
Calling samba-tool dns for SRV _kpasswd._udp.fsg.edu server.fsg.edu 464 (add)
Calling samba-tool dns add -k no -P ['10.0.0.1', 'fsg.edu', '_kpasswd._udp', 'SRV', 'server.fsg.edu 464 0 100']
habe ich dann abgebrochen
|
misterunknown schrieb: Samba als AD DC zu betreiben ist nicht ganz trivial, da DNS ja ein Kernstück von Active Directory ist. Es gibt prinzipiell zwei Möglichkeiten: Den internen DNS von Samba zu nutzen, oder Bind für dynamische Updates zu konfigurieren. Ich würde den internen Dienst von Samba nehmen, notfalls in einer Sub-Zone, die nur für AD zuständig ist, beispielsweise ad.fsg.edu. Dann kannst du für fsg.edu einen normalen Bind nehmen.
Letzteres schlug fehlt, ersteres würde implizieren, dass bind9 gar nicht mehr verwendet wird, oder? /EDIT: Mit SAMBA_INTERNAL konfiguriert geht's auch nicht:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 | fsgadmin@server:~$ sudo netstat -tpln | grep "samba"
tcp 0 0 0.0.0.0:49153 0.0.0.0:* LISTEN 7458/samba
tcp 0 0 0.0.0.0:49154 0.0.0.0:* LISTEN 7458/samba
tcp 0 0 0.0.0.0:3268 0.0.0.0:* LISTEN 7468/samba
tcp 0 0 0.0.0.0:3269 0.0.0.0:* LISTEN 7468/samba
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 7468/samba
tcp 0 0 0.0.0.0:135 0.0.0.0:* LISTEN 7458/samba
tcp 0 0 0.0.0.0:464 0.0.0.0:* LISTEN 7472/samba
tcp 0 0 0.0.0.0:88 0.0.0.0:* LISTEN 7472/samba
tcp 0 0 0.0.0.0:636 0.0.0.0:* LISTEN 7468/samba
tcp 0 0 0.0.0.0:49152 0.0.0.0:* LISTEN 7458/samba
tcp6 0 0 :::49153 :::* LISTEN 7458/samba
tcp6 0 0 :::49154 :::* LISTEN 7458/samba
tcp6 0 0 :::3268 :::* LISTEN 7468/samba
tcp6 0 0 :::3269 :::* LISTEN 7468/samba
tcp6 0 0 :::389 :::* LISTEN 7468/samba
tcp6 0 0 :::135 :::* LISTEN 7458/samba
tcp6 0 0 :::464 :::* LISTEN 7472/samba
tcp6 0 0 :::53 :::* LISTEN 7480/samba
tcp6 0 0 :::88 :::* LISTEN 7472/samba
tcp6 0 0 :::636 :::* LISTEN 7468/samba
tcp6 0 0 :::49152 :::* LISTEN 7458/samba
|
| fsgadmin@server:~$ host -t SRV _ldap._tcp.fsg.edu
;; connection timed out; no servers could be reached
|
/EDIT: Dass Samba keine IP bekommt konnte ich beheben: Die smb.conf beinhaltet nun:
| [global]
interfaces = enp0s8
bind interfaces only = yes
|
Aber jetzt (ohne bind9und mit SAMBA_INTERNAL) ist das gesamte DNS natürlich tot^^ Auf Port 53 läuft systemd-resolved . Stoppe ich den und starte Samba neu (damit Samba auf Port 53 läuft), tut es das aber nicht 😀 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 | fsgadmin@server:~$ sudo service samba-ad-dc status
● samba-ad-dc.service - Samba AD Daemon
Loaded: loaded (/lib/systemd/system/samba-ad-dc.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2018-05-11 10:20:10 UTC; 2s ago
Docs: man:samba(8)
man:samba(7)
man:smb.conf(5)
Main PID: 9039 (samba)
Status: "winbindd: ready to serve connections..."
Tasks: 23 (limit: 509)
CGroup: /system.slice/samba-ad-dc.service
├─9039 /usr/sbin/samba --foreground --no-process-group
├─9063 /usr/sbin/samba --foreground --no-process-group
├─9064 /usr/sbin/samba --foreground --no-process-group
├─9065 /usr/sbin/samba --foreground --no-process-group
├─9066 /usr/sbin/samba --foreground --no-process-group
├─9067 /usr/sbin/samba --foreground --no-process-group
├─9068 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground
├─9070 /usr/sbin/samba --foreground --no-process-group
├─9071 /usr/sbin/samba --foreground --no-process-group
├─9072 /usr/sbin/samba --foreground --no-process-group
├─9073 /usr/sbin/samba --foreground --no-process-group
├─9074 /usr/sbin/samba --foreground --no-process-group
├─9075 /usr/sbin/samba --foreground --no-process-group
├─9076 /usr/sbin/samba --foreground --no-process-group
├─9077 /usr/sbin/samba --foreground --no-process-group
├─9078 /usr/sbin/winbindd -D --option=server role check:inhibit=yes --foreground
├─9079 /usr/sbin/samba --foreground --no-process-group
├─9080 /usr/sbin/samba --foreground --no-process-group
├─9081 /usr/bin/python2.7 /usr/sbin/samba_dnsupdate
├─9087 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground
├─9088 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground
├─9090 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground
└─9092 /usr/sbin/winbindd -D --option=server role check:inhibit=yes --foreground
Mai 11 10:20:09 server samba[9039]: Copyright Andrew Tridgell and the Samba Team 1992-2017
Mai 11 10:20:09 server samba[9039]: [2018/05/11 10:20:09.565125, 0] ../source4/smbd/server.c:620(binary_smbd_main)
Mai 11 10:20:09 server samba[9039]: samba: using 'standard' process model
Mai 11 10:20:09 server winbindd[9078]: [2018/05/11 10:20:09.887491, 0] ../source3/winbindd/winbindd_cache.c:3170(initialize_winbindd_cache)
Mai 11 10:20:09 server winbindd[9078]: initialize_winbindd_cache: clearing cache and re-creating with version number 2
Mai 11 10:20:10 server systemd[1]: Started Samba AD Daemon.
Mai 11 10:20:10 server smbd[9068]: [2018/05/11 10:20:10.558683, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Mai 11 10:20:10 server smbd[9068]: STATUS=daemon 'smbd' finished starting up and ready to serve connections
Mai 11 10:20:10 server winbindd[9078]: [2018/05/11 10:20:10.922519, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Mai 11 10:20:10 server winbindd[9078]: STATUS=daemon 'winbindd' finished starting up and ready to serve connections
|
(Der Log unten ist bei mir rot)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | fsgadmin@server:~$ sudo netstat -tpln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 10.0.0.1:49153 0.0.0.0:* LISTEN 9064/samba
tcp 0 0 10.0.0.1:49154 0.0.0.0:* LISTEN 9064/samba
tcp 0 0 10.0.0.1:3268 0.0.0.0:* LISTEN 9070/samba
tcp 0 0 10.0.0.1:3269 0.0.0.0:* LISTEN 9070/samba
tcp 0 0 10.0.0.1:389 0.0.0.0:* LISTEN 9070/samba
tcp 0 0 10.0.0.1:135 0.0.0.0:* LISTEN 9064/samba
tcp 0 0 10.0.0.1:139 0.0.0.0:* LISTEN 9068/smbd
tcp 0 0 10.0.0.1:464 0.0.0.0:* LISTEN 9072/samba
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1190/sshd
tcp 0 0 10.0.0.1:88 0.0.0.0:* LISTEN 9072/samba
tcp 0 0 10.0.0.1:636 0.0.0.0:* LISTEN 9070/samba
tcp 0 0 10.0.0.1:445 0.0.0.0:* LISTEN 9068/smbd
tcp 0 0 10.0.0.1:49152 0.0.0.0:* LISTEN 9064/samba
tcp6 0 0 :::22 :::* LISTEN 1190/sshd
|
#LogSpam
|
Glocke
(Themenstarter)
Anmeldungsdatum: 1. März 2009
Beiträge: 880
Wohnort: Thüringen
|
cflinux schrieb:
Hallo Hast du mit dem samba-tool die DNS-Zonen erstellt?
samba-tool dns zonecreate SERVER REALM -Uadministrator # für forward Zone
samba-tool dns zonecreate SERVER 0.168.192.in-addr.arpa -Uadministrator # für reverse Zone Den Samba Server und deine Clients musst du natürlich dann auch im DNS-Server eintragen. samba-tool dns add SERVERNAME REALM HOSTNAME A IP-ADRESSE # für forward zone
samba-tool dns add SERVERNAME 0.168.192.in-addr.arpa HOSTNAME PTR 254 # für reverse zone Gruß cflinux
| fsgadmin@server:~$ sudo samba-tool dns zonecreate server fsg.edu -Uadministrator
Failed to connect host 127.0.0.1 on port 135 - NT_STATUS_CONNECTION_REFUSED
Failed to connect host 127.0.0.1 (server) on port 135 - NT_STATUS_CONNECTION_REFUSED.
ERROR: Connecting to DNS RPC server server failed with (-1073741258, 'The transport-connection attempt was refused by the remote system.')
|
Ich glaub ich setz den Server nochmal neu auf 😀
|
Glocke
(Themenstarter)
Anmeldungsdatum: 1. März 2009
Beiträge: 880
Wohnort: Thüringen
|
Guten Morgen, inzwischen habe ich den Server neu installiert, systemd-resolved mit
| fsgadmin@server:~$ sudo systemctl disable systemd-resolved.service
Removed /etc/systemd/system/multi-user.target.wants/systemd-resolved.service.
Removed /etc/systemd/system/dbus-org.freedesktop.resolve1.service. 1013/dhcpd
fsgadmin@server:~$ sudo service systemd-resolved stop
|
deaktiviert und beendet, und Samba gestartet. Und dann war erstmal das DNS kaputt 😀 Lösung:
| fsgadmin@server:~$ cat /etc/resolv.conf
domain fsg.edu
nameserver 10.0.0.1
|
statt weil | fsgadmin@server:~$ sudo netstat -tupln | grep ":53"
tcp 0 0 10.0.0.1:53 0.0.0.0:* LISTEN 1493/samba
udp 28416 0 10.0.0.1:53 0.0.0.0:* 1493/samba
|
Aber: Am Windows-Cient geht der nslookup auch ... bis auf eine hässliche Kleinigkeit: Beim lookup (getestet mit nslookup server.fsg.edu und server.google.com ) wird mir zusötzlich ... "Unerwartetes" ... ausgegeben 😀
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 | C:\Users\glocke>nslookup server.fsg.edu
10.in-addr.arpa
primary name server = localhost
responsible mail addr = root
serial = 1
refresh = 604800 (7 days)
retry = 86400 (1 day)
expire = 2419200 (28 days)
default TTL = 604800 (7 days)
(root) ??? unknown type 41 ???
Server: UnKnown
Address: 10.0.0.1
Name: server.fsg.edu
Address: 10.0.0.1
C:\Users\glocke>nslookup google.com
10.in-addr.arpa
primary name server = localhost
responsible mail addr = root
serial = 1
refresh = 604800 (7 days)
retry = 86400 (1 day)
expire = 2419200 (28 days)
default TTL = 604800 (7 days)
(root) ??? unknown type 41 ???
Server: UnKnown
Address: 10.0.0.1
Nicht autorisierende Antwort:
Name: google.com
Addresses: 2a00:1450:4001:80b::200e
172.217.18.14
|
Wie "bessere" ich die Ausgabe serverseitig aus? Btw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 | C:\Users\glocke>ipconfig /all
Windows-IP-Konfiguration
Hostname . . . . . . . . . . . . : DESKTOP-VO9HL89
Primäres DNS-Suffix . . . . . . . :
Knotentyp . . . . . . . . . . . . : Hybrid
IP-Routing aktiviert . . . . . . : Nein
WINS-Proxy aktiviert . . . . . . : Nein
DNS-Suffixsuchliste . . . . . . . : example.org
Ethernet-Adapter Ethernet:
Verbindungsspezifisches DNS-Suffix: example.org
Beschreibung. . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
Physische Adresse . . . . . . . . : 08-00-27-FA-A4-58
DHCP aktiviert. . . . . . . . . . : Ja
Autokonfiguration aktiviert . . . : Ja
Verbindungslokale IPv6-Adresse . : fe80::e907:efc5:87b8:c3ea%8(Bevorzugt)
IPv4-Adresse . . . . . . . . . . : 10.0.0.107(Bevorzugt)
Subnetzmaske . . . . . . . . . . : 255.255.255.0
Lease erhalten. . . . . . . . . . : Samstag, 12. Mai 2018 08:10:59
Lease läuft ab. . . . . . . . . . : Samstag, 12. Mai 2018 09:11:00
Standardgateway . . . . . . . . . : 10.0.0.1
DHCP-Server . . . . . . . . . . . : 10.0.0.1
DHCPv6-IAID . . . . . . . . . . . : 67633191
DHCPv6-Client-DUID. . . . . . . . : 00-01-00-01-22-85-C2-FB-08-00-27-FA-A4-58
DNS-Server . . . . . . . . . . . : 10.0.0.1
NetBIOS über TCP/IP . . . . . . . : Aktiviert
|
LG Glocke
|
cflinux
Anmeldungsdatum: 14. Januar 2013
Beiträge: 685
|
Hallo Die Ausgabe von nslookup SERVER /all sind doch normal mit /all werden dir alle Informationen angezeigt. Bei dieser Ausgabe sind einige zusätzliche Informationen enthalten
C:\Users\glocke>nslookup server.fsg.edu
10.in-addr.arpa
primary name server = localhost
responsible mail addr = root
serial = 1
refresh = 604800 (7 days)
retry = 86400 (1 day)
expire = 2419200 (28 days)
default TTL = 604800 (7 days)
(root) ??? unknown type 41 ???
Server: UnKnown
Address: 10.0.0.1
Was mich jetzt nicht weiter stören würde. Welchen DNS-Server hast du denn jetzt verwendet (bind oder samba Intern)? Meine resolv.conf sieht so aus
nameserver xx.xx.xx.xx
domain REALM Wie hast du denn die resolf.conf geändert, die wird bei jedem Neustart neu erzeugt. Gruß cflinux
|
Glocke
(Themenstarter)
Anmeldungsdatum: 1. März 2009
Beiträge: 880
Wohnort: Thüringen
|
Naja was das "stören" angeht... ich bin nslookups gewöhnt die "kürzer" sind. Verwende ich nslookup ohne weitere Parameter, gibt mir die cmd: 1
2
3
4
5
6
7
8
9
10
11
12
13
14 | C:\Users\glocke>nslookup
10.in-addr.arpa
primary name server = localhost
responsible mail addr = root
serial = 1
refresh = 604800 (7 days)
retry = 86400 (1 day)
expire = 2419200 (28 days)
default TTL = 604800 (7 days)
(root) ??? unknown type 41 ???
Standardserver: UnKnown
Address: 10.0.0.1
>
|
und die Möglichkeit mehrere Namen aufzulösen:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | > server.fsg.edu
Server: UnKnown
Address: 10.0.0.1
Name: server.fsg.edu
Address: 10.0.0.1
> google.com
Server: UnKnown
Address: 10.0.0.1
Nicht autorisierende Antwort:
Name: google.com
Addresses: 2a00:1450:4001:80b::200e
172.217.16.78
|
Ich hatte erwartet, dass bei nslookup server.fsg.edu folgendes passiert:
| C:\Users\glocke>nslookup server.fsg.edu
Server: UnKnown
Address: 10.0.0.1
Name: server.fsg.edu
Address: 10.0.0.1
|
und, dass statt UnKnown irgendwas "seriöseres" dasteht 😀 cflinux schrieb: Welchen DNS-Server hast du denn jetzt verwendet (bind oder samba Intern)?
Da läuft SAMBA_INTERNAL cflinux schrieb: Meine resolv.conf sieht so aus
nameserver xx.xx.xx.xx
domain REALM
Die /etc/resolv.conf war bei mir mit Symlink drinnen. Die hab ich gelöscht und eine neue, "echte" /etc/resolv.conf angelegt (die unabhängig vom Symlink ist). Afaik wird die Original-conf (die Quelle des Symlinks) neu geändert.
|
cflinux
Anmeldungsdatum: 14. Januar 2013
Beiträge: 685
|
Hallo
Glocke schrieb:
Naja was das "stören" angeht... ich bin nslookups gewöhnt die "kürzer" sind. Verwende ich nslookup ohne weitere Parameter, gibt mir die cmd:
Das Problem würde ich mal hinten anstellen und im Gedächtnis behalten, eventuell stößt man per Zufall eine Lösung.
und, dass statt UnKnown irgendwas "seriöseres" dasteht 😀
Um das zu lösen, wirst du deinen DNS-Server im Internet freigeben müssen, aber will man das, er soll ja nur für das interne Netz arbeiten.
Die /etc/resolv.conf war bei mir mit Symlink drinnen. Die hab ich gelöscht und eine neue, "echte" /etc/resolv.conf angelegt (die unabhängig vom Symlink ist). Afaik wird die Original-conf (die Quelle des Symlinks) neu geändert.
und, dass statt UnKnown irgendwas "seriöseres" dasteht 😀
Das verstehe ich jetzt nicht wirklich, was du meinst. Gruß cflinux
|