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!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
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
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
Time (s) | Query |
---|---|
0.00012 | SET CHARSET latin2 |
0.00005 | SET NAMES latin2 |
0.00104 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.222.44.156' WHERE u.id=1 |
0.00073 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.222.44.156', 1732747739) |
0.00040 | SELECT * FROM punbb_online WHERE logged<1732747439 |
0.00046 | SELECT topic_id FROM punbb_posts WHERE id=312699 |
0.00074 | SELECT id FROM punbb_posts WHERE topic_id=29754 ORDER BY posted |
0.00057 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=29754 AND t.moved_to IS NULL |
0.00031 | SELECT search_for, replace_with FROM punbb_censoring |
0.00061 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=29754 ORDER BY p.id LIMIT 0,25 |
0.00083 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=29754 |
Total query time: 0.00586 s |