Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Metz

Pages: [1]
1
Email and Groupware / Add Mail / Fetchmail Schema
« on: December 17, 2020, 09:07:21 pm »
I've a new installation of the Zentyal 6.2 Server.

Also I have an existing postfix/dovecot email server and an existing nextcloud server.

I like to connect the mail server with ldap to the Zentyal server.

Now I'm looking for how to get the mail schemas installed so that I can add email aliases / fetchmail accounts to the LDAP user account.

I've installed apache directory server and connected to the Zentyal server.

But I do not know how to go forward. Where do I find the schemas? How do I best install them?

Hope you can help me.

BR Dirk

(I installed the mail module but also then the email alias was not available within the ldap user.)

2
When I run on the party synced Zentyal Server (user and groups are shown):
Code: [Select]
sudo ldbsearch -H /var/lib/samba/private/sam.ldb | grep quotaI do not get a response which looks like cn=quota is not installed on the univention system. (Only CN=NTDS Quotas)

Copied /usr/share/zentyal-samba/schema-quota.ldif to the univention server
replaced ,DOMAIN_TOP_DN with ,DC=example,DC=intranet
and tried to import with
Code: [Select]
ldapadd -x -D "cn=admin,$(ucr get ldap/base)" -w "$(cat /etc/ldap.secret)" -f schema-quota.ldif
I'm getting the issues with following attributes:
Code: [Select]
objectClass: attributeSchema
attributeID: 1.3.6.1.4.1.19937.1.1.1
ldapDisplayName: quota
attributeSyntax: 2.5.5.5
oMSyntax: 22
isSingleValued: TRUE

Removing them i get:
Code: [Select]
additional info: no structural object class provided

3
I've installed directory-logger on univention and checked all log files.
I do not see any message send to the univention system when the error occurs.

Code: [Select]
tail -F /var/log/univention/directory-logger.log
tail -F /var/log/univention/listener.log
tail -F /var/lib/univention-ldap/notify/transaction
tail -F /var/log/syslog

In this Topic:
https://forum.zentyal.org/index.php/topic,23457.0.html
the quota.ldiff was missing but I do not know where to get the ldif and where (univention or zentyal) and how to install.

Following file is on the Zentyal Server:
/usr/share/zentyal-samba/schema-quota.ldif

4
Adding DNS Forwarder and enabling "transparent DNS cache" solved the DNS error.
I switch to server role "domain controller" and back to "additional domain controller" and get the following error. Same like on initial install:
(You need to delete the dns-zentyal user on the univention GUI otherwise you get an error because of the user.)

Code: [Select]
2020/11/07 09:22:07 INFO> LDAP.pm:246 EBox::Module::LDAP::_sendSchemaUpdate - Sending schema update: CN=quota,CN=Schema,CN=Configuration,DC=example,DC=intranet
2020/11/07 09:22:07 ERROR> LDAP.pm:248 EBox::Module::LDAP::_sendSchemaUpdate - Error sending schema update: CN=quota,CN=Schema,CN=Configuration,DC=example,DC=intranet The server is unwilling to perform the requested operation
 at Error sending schema update: CN=quota,CN=Schema,CN=Configuration,DC=examlpe,DC=intranet The server is unwilling to perform the requested operation
 at /usr/share/perl5/EBox/Module/LDAP.pm line 248

5
Updating to zentyal 6.2.4

Moving Server role to Domain Controller / Save and moving back to additional domain controller result in an resolv.conf error

Code: [Select]
2020/11/05 22:22:08 INFO> Provision.pm:1336 EBox::Samba::Provision::provisionADC - Waiting RID pool allocation
2020/11/05 22:22:09 INFO> Provision.pm:1340 EBox::Samba::Provision::provisionADC - Running KCC on remote DC
2020/11/05 22:22:11 INFO> SyncDaemon.pm:340 EBox::Samba::SyncDaemon::run - Samba sync daemon started
2020/11/05 22:22:20 INFO> Samba.pm:776 EBox::Samba::_postServiceHook - Writing DNS update list...
2020/11/05 22:22:21 ERROR> LDAP.pm:106 EBox::Module::LDAP::_dnsResolve - DNS query failed: query timed out (using nameservers , /etc/resolv.conf was
'# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# and managed by Zentyal.
#
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#
' at DNS query failed: query timed out (using nameservers , /etc/resolv.conf was
'# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# and managed by Zentyal.
#
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#
' at /usr/share/perl5/EBox/Module/LDAP.pm line 106
EBox::Module::LDAP::_dnsResolve('EBox::Samba=HASH(0x55db8c808068)', 'ucs-001.example.intranet') called at /usr/share/perl5/EBox/Module/LDAP.pm line 155
EBox::Module::LDAP::_connectToSchemaMaster('EBox::Samba=HASH(0x55db8c808068)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 275
EBox::Module::LDAP::_loadSchemasFiles('EBox::Samba=HASH(0x55db8c808068)', 'ARRAY(0x55db8d865050)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 267
EBox::Module::LDAP::_loadSchemas('EBox::Samba=HASH(0x55db8c808068)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 341
EBox::Module::LDAP::_performSetup('EBox::Samba=HASH(0x55db8c808068)') called at /usr/share/perl5/EBox/Samba.pm line 671
EBox::Samba::_regenConfig('EBox::Samba=HASH(0x55db8c808068)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::Samba=HASH(0x55db8c808068)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 649
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 648
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55db88004ba8)', 'progress', 'EBox::ProgressIndicator=HASH(0x55db875f43b8)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55db8b6a7720)', 'progress', 'EBox::ProgressIndicator=HASH(0x55db875f43b8)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
2020/11/05 22:22:21 ERROR> GlobalImpl.pm:653 EBox::GlobalImpl::saveAllModules - Failed to save changes in module samba: DNS query failed: query timed out (using nameservers , /etc/resolv.conf was
'# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# and managed by Zentyal.
#
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#
'
2020/11/05 22:22:21 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: radius
2020/11/05 22:22:25 INFO> SyncDaemon.pm:340 EBox::Samba::SyncDaemon::run - Samba sync daemon started
2020/11/05 22:22:29 ERROR> LDAP.pm:106 EBox::Module::LDAP::_dnsResolve - DNS query failed: query timed out (using nameservers , /etc/resolv.conf was
'# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# and managed by Zentyal.
#
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#
' at DNS query failed: query timed out (using nameservers , /etc/resolv.conf was
'# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# and managed by Zentyal.
#
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#
' at /usr/share/perl5/EBox/Module/LDAP.pm line 106
EBox::Module::LDAP::_dnsResolve('EBox::Radius=HASH(0x55db8e0e3b68)', 'ucs-001.example.intranet') called at /usr/share/perl5/EBox/Module/LDAP.pm line 155
EBox::Module::LDAP::_connectToSchemaMaster('EBox::Radius=HASH(0x55db8e0e3b68)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 275
EBox::Module::LDAP::_loadSchemasFiles('EBox::Radius=HASH(0x55db8e0e3b68)', 'ARRAY(0x55db8e744120)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 267
EBox::Module::LDAP::_loadSchemas('EBox::Radius=HASH(0x55db8e0e3b68)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 341
EBox::Module::LDAP::_performSetup('EBox::Radius=HASH(0x55db8e0e3b68)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 331
EBox::Module::LDAP::_regenConfig('EBox::Radius=HASH(0x55db8e0e3b68)') called at /usr/share/perl5/EBox/Module/Kerberos.pm line 378
EBox::Module::Kerberos::_regenConfig('EBox::Radius=HASH(0x55db8e0e3b68)') called at /usr/share/perl5/EBox/Radius.pm line 198
EBox::Radius::_regenConfig('EBox::Radius=HASH(0x55db8e0e3b68)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::Radius=HASH(0x55db8e0e3b68)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 649
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 648
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55db88004ba8)', 'progress', 'EBox::ProgressIndicator=HASH(0x55db875f43b8)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55db8b6a7720)', 'progress', 'EBox::ProgressIndicator=HASH(0x55db875f43b8)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
2020/11/05 22:22:29 ERROR> GlobalImpl.pm:653 EBox::GlobalImpl::saveAllModules - Failed to save changes in module radius: DNS query failed: query timed out (using nameservers , /etc/resolv.conf was
'# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# and managed by Zentyal.
#
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#
'
2020/11/05 22:22:29 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: logs
2020/11/05 22:22:29 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: dns
2020/11/05 22:22:38 INFO> DNS.pm:91 EBox::DNS::appArmorProfiles - Setting DNS apparmor profile
2020/11/05 22:23:07 ERROR> GlobalImpl.pm:728 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: samba radius  at The following modules failed while saving their changes, their state is unknown: samba radius  at /usr/share/perl5/EBox/GlobalImpl.pm line 728
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55db88004ba8)', 'progress', 'EBox::ProgressIndicator=HASH(0x55db875f43b8)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55db8b6a7720)', 'progress', 'EBox::ProgressIndicator=HASH(0x55db875f43b8)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30

6
Hello,

I'm trying to Sync Zentyal trial Version with Univentioen UCS 4.4 Server.

Zentyal Core version 6.2.3 (fresh install from iso)

On univention I addet quota:
Code: [Select]
ucr set repository/online/component/cool-solutions=yes \
repository/online/component/cool-solutions/version="current" \
repository/online/component/cool-solutions/unmaintained=yes

univention-install univention-domain-userquota

and also disabled tls:
Code: [Select]
ucr set samba/ldap/server/require/strong/auth=no
/etc/init.d/samba restart

Users and Computers get synced. DNS entries not and I get following error messages during sync:

Code: [Select]
...
2020/11/05 21:46:35 INFO> Samba.pm:776 EBox::Samba::_postServiceHook - Writing DNS update list...
2020/11/05 21:46:36 INFO> SyncDaemon.pm:340 EBox::Samba::SyncDaemon::run - Samba sync daemon started
2020/11/05 21:46:38 INFO> LDAP.pm:246 EBox::Module::LDAP::_sendSchemaUpdate - Sending schema update: CN=quota,CN=Schema,CN=Configuration,DC=example,DC=intranet
2020/11/05 21:46:38 ERROR> LDAP.pm:248 EBox::Module::LDAP::_sendSchemaUpdate - Error sending schema update: CN=quota,CN=Schema,CN=Configuration,DC=example,DC=intranet The server is unwilling to perform the requested operation
 at Error sending schema update: CN=quota,CN=Schema,CN=Configuration,DC=example,DC=intranet The server is unwilling to perform the requested operation
 at /usr/share/perl5/EBox/Module/LDAP.pm line 248
EBox::Module::LDAP::_sendSchemaUpdate('EBox::Samba=HASH(0x55986f10cc00)', 'Net::LDAP=HASH(0x559870c4a258)', '/usr/share/zentyal-samba/schema-quota.ldif') called at /usr/share/perl5/EBox/Module/LDAP.pm line 278
EBox::Module::LDAP::_loadSchemasFiles('EBox::Samba=HASH(0x55986f10cc00)', 'ARRAY(0x559870165220)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 267
EBox::Module::LDAP::_loadSchemas('EBox::Samba=HASH(0x55986f10cc00)') called at /usr/share/perl5/EBox/Module/LDAP.pm line 341
EBox::Module::LDAP::_performSetup('EBox::Samba=HASH(0x55986f10cc00)') called at /usr/share/perl5/EBox/Samba.pm line 671
EBox::Samba::_regenConfig('EBox::Samba=HASH(0x55986f10cc00)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::Samba=HASH(0x55986f10cc00)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 649
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 648
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55986a26f890)', 'progress', 'EBox::ProgressIndicator=HASH(0x55986da09828)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55986d955cb0)', 'progress', 'EBox::ProgressIndicator=HASH(0x55986da09828)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
2020/11/05 21:46:38 ERROR> GlobalImpl.pm:653 EBox::GlobalImpl::saveAllModules - Failed to save changes in module samba: Error sending schema update: CN=quota,CN=Schema,CN=Configuration,DC=example,DC=intranet The server is unwilling to perform the requested operation
2020/11/05 21:46:38 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: radius
...
...
...
2020/11/05 21:47:40 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command nsupdate -g -t 10 /var/lib/zentyal/tmp/K9v70Bpt2E failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2 at root command nsupdate -g -t 10 /var/lib/zentyal/tmp/K9v70Bpt2E failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/3opd1FyAb9.cmd 2> /var/lib/zentyal/tmp/stderr', 'nsupdate -g -t 10 /var/lib/zentyal/tmp/K9v70Bpt2E', 512, 'ARRAY(0x5598713acff0)', 'ARRAY(0x55986b75a318)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, 'nsupdate -g -t 10 /var/lib/zentyal/tmp/K9v70Bpt2E') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('nsupdate -g -t 10 /var/lib/zentyal/tmp/K9v70Bpt2E') called at /usr/share/perl5/EBox/DNS.pm line 967
EBox::DNS::_postServiceHook('EBox::DNS=HASH(0x55986e5d9bd8)', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 948
EBox::Module::Service::_regenConfig('EBox::DNS=HASH(0x55986e5d9bd8)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::DNS=HASH(0x55986e5d9bd8)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 681
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 679
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55986a26f890)', 'progress', 'EBox::ProgressIndicator=HASH(0x55986da09828)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55986d955cb0)', 'progress', 'EBox::ProgressIndicator=HASH(0x55986da09828)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
2020/11/05 21:47:40 ERROR> GlobalImpl.pm:687 EBox::GlobalImpl::saveAllModules - Failed to restart dns after save changes: root command nsupdate -g -t 10 /var/lib/zentyal/tmp/K9v70Bpt2E failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2
2020/11/05 21:47:40 ERROR> GlobalImpl.pm:728 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: samba dns  at The following modules failed while saving their changes, their state is unknown: samba dns  at /usr/share/perl5/EBox/GlobalImpl.pm line 728
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55986a26f890)', 'progress', 'EBox::ProgressIndicator=HASH(0x55986da09828)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55986d955cb0)', 'progress', 'EBox::ProgressIndicator=HASH(0x55986da09828)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
2020/11/05 21:48:20 INFO> Index.pm:187 EBox::Dashboard::CGI::Index::masonParameters - dashboard1


First looks that quota is still not correct installed. Second some issues with nsupdate.

BR Dirk

Pages: [1]