Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2017-07-21 14:03:46

  Adams7 - Użytkownik

Adams7
Użytkownik
Zarejestrowany: 2016-09-23

Dodatkowy kontroler domeny - samba problem

witam
mam problem z dodatkowym kontrolerem domeny na linux
blad zgłaszany przez webpanel dystrybucji Zentyal
The following modules failed while saving their changes, their state is unknown: samba

/etc/init.d/samba 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 pią 2017-07-21 13:57:53 CEST; 1min 21s ago
     Docs: man:samba(8)
           man:samba(7)
           man:smb.conf(5)
Main PID: 8635 (samba)
   Status: "samba: ready to serve connections..."
   CGroup: /system.slice/samba-ad-dc.service
           ├─8635 /usr/sbin/samba
           ├─8637 /usr/sbin/samba
           └─8639 /usr/sbin/samba

lip 21 13:57:56 z4 samba[8640]: [2017/07/21 13:57:56.479086,  0] ../lib/ldb-samba/ldb_wrap.c:76(ldb_wrap_debug)
lip 21 13:57:56 z4 samba[8640]:   ldb: module dsdb_notification initialization failed : Operations error
lip 21 13:57:56 z4 samba[8640]: [2017/07/21 13:57:56.479510,  0] ../lib/ldb-samba/ldb_wrap.c:76(ldb_wrap_debug)
lip 21 13:57:56 z4 samba[8640]:   ldb: module rootdse initialization failed : Operations error
lip 21 13:57:56 z4 samba[8640]: [2017/07/21 13:57:56.479909,  0] ../lib/ldb-samba/ldb_wrap.c:76(ldb_wrap_debug)
lip 21 13:57:56 z4 samba[8640]:   ldb: module samba_dsdb initialization failed : Operations error
lip 21 13:57:56 z4 samba[8640]: [2017/07/21 13:57:56.480328,  0] ../lib/ldb-samba/ldb_wrap.c:76(ldb_wrap_debug)
lip 21 13:57:56 z4 samba[8640]:   ldb: Unable to load modules for /var/lib/samba/private/sam.ldb: schema_load_init: dsdb... failed
lip 21 13:57:56 z4 samba[8640]: [2017/07/21 13:57:56.480867,  0] ../source4/smbd/service_task.c:35(task_server_terminate)
lip 21 13:57:56 z4 samba[8640]:   task_server_terminate: [Failed to startup ldap server task]
Hint: Some lines were ellipsized, use -l to show in full.

Nie wiem gdzie szukać problemu?
Nie jestem pewny że to problem samby - proszę o pomoc

Offline

 

#2  2017-07-21 14:32:47

  Adams7 - Użytkownik

Adams7
Użytkownik
Zarejestrowany: 2016-09-23

Re: Dodatkowy kontroler domeny - samba problem

jeszcze dodatkowy komunikaty po dodaniu kontrolera dodatkowego do domeny

samba-tool domain join ug.local DC -Uadministrator --realm=ug.local --dns-backend=BIND9_DLZ                 

GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Finding a writeable DC for domain 'ug.local'
resolve_lmhosts: Attempting lmhosts lookup for name _ldap._tcp.ug.local<0x0>
Found DC z1.ug.local
resolve_lmhosts: Attempting lmhosts lookup for name z1.ug.local<0x20>
Password for [UG\administrator]:
workgroup is UG
realm is ug.local
Adding CN=Z4,OU=Domain Controllers,DC=ug,DC=local
Adding CN=Z4,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ug,DC=local
Adding CN=NTDS Settings,CN=Z4,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ug,DC=local
Using binding ncacn_ip_tcp:z1.ug.local[,seal]
resolve_lmhosts: Attempting lmhosts lookup for name z1.ug.local<0x20>
resolve_lmhosts: Attempting lmhosts lookup for name z1.ug.local<0x20>
Adding SPNs to CN=Z4,OU=Domain Controllers,DC=ug,DC=local
Setting account password for Z4$
Enabling account
Adding DNS account CN=dns-Z4,CN=Users,DC=ug,DC=local with dns/ SPN
Setting account password for dns-Z4
Calling bare provision
lpcfg_load: refreshing parameters from /etc/samba/smb.conf
Looking up IPv4 addresses
Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up secrets.ldb
Setting up the registry
ldb_wrap open of hklm.ldb
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
partition_metadata: Migrating partition metadata: open of metadata.tdb gave: (null)
A Kerberos configuration suitable for Samba 4 has been generated at /var/lib/samba/private/krb5.conf
Provision OK for domain DN DC=ug,DC=local
Starting replication
Using binding ncacn_ip_tcp:z1.ug.local[,seal]
resolve_lmhosts: Attempting lmhosts lookup for name z1.ug.local<0x20>
resolve_lmhosts: Attempting lmhosts lookup for name z1.ug.local<0x20>
Schema-DN[CN=Schema,CN=Configuration,DC=ug,DC=local] objects[402/1552] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=ug,DC=local] objects[804/1552] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=ug,DC=local] objects[1206/1552] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=ug,DC=local] objects[1552/1552] linked_values[0/0]
Analyze and apply schema objects
Replicated 1552 objects (0 linked attributes) for CN=Schema,CN=Configuration,DC=ug,DC=local
Partition[CN=Configuration,DC=ug,DC=local] objects[402/1708] linked_values[0/0]
Replicated 402 objects (0 linked attributes) for CN=Configuration,DC=ug,DC=local
Partition[CN=Configuration,DC=ug,DC=local] objects[804/1708] linked_values[0/0]
Replicated 402 objects (0 linked attributes) for CN=Configuration,DC=ug,DC=local
Partition[CN=Configuration,DC=ug,DC=local] objects[1206/1708] linked_values[0/0]
Replicated 402 objects (0 linked attributes) for CN=Configuration,DC=ug,DC=local
Partition[CN=Configuration,DC=ug,DC=local] objects[1608/1708] linked_values[0/0]
Replicated 402 objects (0 linked attributes) for CN=Configuration,DC=ug,DC=local
Partition[CN=Configuration,DC=ug,DC=local] objects[1708/1708] linked_values[122/0]
Replicated 100 objects (122 linked attributes) for CN=Configuration,DC=ug,DC=local
Replicating critical objects from the base DN of the domain
Join failed - cleaning up
ldb_wrap open of secrets.ldb
Could not find machine account in secrets database: Failed to fetch machine account password for UG from both secrets.ldb (Could not find entry to match filter: '(&(flatname=UG)(objectclass=primaryDomain))' base: 'cn=Primary Domains': No such object: dsdb_search at ../source4/dsdb/common/util.c:4575) and from /var/lib/samba/private/secrets.tdb: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
Deleted CN=Z4,OU=Domain Controllers,DC=ug,DC=local
Deleted CN=dns-Z4,CN=Users,DC=ug,DC=local
Deleted CN=NTDS Settings,CN=Z4,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ug,DC=local
Deleted CN=Z4,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ug,DC=local
ERROR(runtime): uncaught exception - (8409, 'WERR_DS_DATABASE_ERROR')
  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/domain.py", line 652, in run
    machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1253, in join_DC
    ctx.do_join()
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1153, in do_join
    ctx.join_replicate()
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 890, in join_replicate
    replica_flags=ctx.domain_replica_flags)
  File "/usr/lib/python2.7/dist-packages/samba/drs_utils.py", line 254, in replicate
    (level, ctr) = self.drs.DsGetNCChanges(self.drs_handle, req_level, req)

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)