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 - kajan

Pages: [1]
1
I found it. Looks like zentyal doesn't set password to AstMD5secret attribute in LDAP. Without password it worked.

To set the password I had to do

echo -n "user:asterisk:secret" | md5sum

and output save to AstMD5secret attribute of the user.

2
Hi,

I'm trying to configure SIP client but when I use some zentyal user it fails with this message:

[Oct 13 10:37:27] ERROR[30082] res_config_ldap.c: Couldn't modify 'name'='knavratil', dn:uid=knavratil,ou=Users,dc=cuppro,dc=cz because Invalid syntax
[Oct 13 10:37:27] NOTICE[30082] chan_sip.c: Registration from '"Karel Navratil" <sip:knavratil@cuppro.cz>' failed for '192.168.1.143:44337' - Wrong password

[Oct 13 10:37:30] NOTICE[30072] chan_sip.c: Failed to authenticate device "Karel Navratil" <sip:knavratil@cuppro.cz>;tag=b8DU8Hk.s0.mD3laMKhx8XcKPE1sfyew for SUBSCRIBE

I'm 110% sure, that the password is correct.

Creating and registering phones works fine.

I used as username knavratil, knavratil at sip domain.cz, 1001, 1001 at sip domain

Has anybody idea what can be wrong?

Thanks!


3
Hi,

I just bought a new server and installed 64bit version - here without any problem at all.
So the problem seems to be only on 32bit.

K.

4
good to hear, that you have the error too :-)

5
Did exactly this:

- installed ubuntu-server from iso
- added to apt zentyal repositories
- imported keys
- apt-get update, upgrade
- installed both zentyal packages
- via web installed network configuration
- set the static ip, let the hostname and domain on default
- installed dns, ntp
- installed users
- installed file sharing

root@ubuntu:~# cat /etc/network/interfaces
auto lo eth0

iface lo inet loopback
iface eth0 inet static
        address 192.168.1.150
        netmask 255.255.255.0
        broadcast 192.168.1.255

test@ubuntu:~$ sudo /etc/init.d/zentyal samba restart
[sudo] password for test:
 * Restarting Zentyal module: samba                                      [fail]

root@ubuntu:~# tail -f /var/log/zentyal/zentyal.log
2012/09/29 17:53:24 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: samba
2012/09/29 17:54:16 INFO> Base.pm:229 EBox::Module::Base::save - Restarting service for module: dns
2012/09/29 17:54:29 INFO> LDB.pm:379 EBox::LDB::ldapUsersToLdb - Loading Zentyal users into samba database
2012/09/29 17:54:29 INFO> LDB.pm:406 EBox::LDB::ldapGroupsToLdb - Loading Zentyal groups into samba database
2012/09/29 17:54:29 INFO> LDB.pm:444 EBox::LDB::ldapServicePrincipalsToLdb - Loading Zentyal service principals into samba database
2012/09/29 17:56:28 DEBUG> LDB.pm:156 EBox::LDB::safeConnect - FATAL: Couldn't connect to samba LDAP server
2012/09/29 17:56:28 ERROR> Service.pm:721 EBox::Module::Service::__ANON__ - Error restarting service: FATAL: Couldn't connect to samba LDAP server

tail -f /var/log/samba/samba.log

  Registered ZENTYAL-DOMAIN<1c> with 127.0.1.1 on interface 127.255.255.255
[2012/09/29 17:59:51,  3] ../source4/nbt_server/register.c:154(nbtd_register_name_handler)
  Registered ZENTYAL-DOMAIN<1c> with 127.0.0.1 on interface 127.255.255.255
[2012/09/29 17:59:51,  3] ../source4/nbt_server/register.c:154(nbtd_register_name_handler)
  Registered ZENTYAL-DOMAIN<00> with 192.168.1.150 on interface 192.168.1.255
[2012/09/29 17:59:51,  3] ../source4/nbt_server/register.c:154(nbtd_register_name_handler)
  Registered ZENTYAL-DOMAIN<00> with 127.0.1.1 on interface 127.255.255.255
[2012/09/29 17:59:51,  3] ../source4/nbt_server/register.c:154(nbtd_register_name_handler)
  Registered ZENTYAL-DOMAIN<00> with 127.0.0.1 on interface 127.255.255.255
[2012/09/29 17:59:51.264839,  3] ../lib/ldb-samba/ldb_wrap.c:318(ldb_wrap_connect)
  ldb_wrap open of idmap.ldb
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:115(sig_term)
  SIGTERM: killing children
  Exiting pid 1274 on SIGTERM
  Exiting pid 1267 on SIGTERM
  Exiting pid 1276 on SIGTERM
  Exiting pid 1265 on SIGTERM
  Exiting pid 1266 on SIGTERM
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
  Exiting pid 1271 on SIGTERM
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
  Exiting pid 1270 on SIGTERM
  Exiting pid 1277 on SIGTERM
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
  Exiting pid 1272 on SIGTERM
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
[2012/09/29 17:59:51,  0] ../source4/smbd/server.c:120(sig_term)
  Exiting pid 1268 on SIGTERM
  Exiting pid 1253 on SIGTERM
  Exiting pid 1275 on SIGTERM
  Exiting pid 1269 on SIGTERM

... still repeating

tail /var/log/syslog

Sep 29 18:01:10 ubuntu smbd[1620]: [2012/09/29 18:01:10.157736,  0] ../source3/smbd/server.c:1260(main)
Sep 29 18:01:10 ubuntu smbd[1620]:   standard input is not a socket, assuming -D option
Sep 29 18:01:14 ubuntu smbd[1659]: [2012/09/29 18:01:14.476259,  0] ../source3/printing/print_standard.c:68(std_pcap_cache_reload)
Sep 29 18:01:14 ubuntu smbd[1659]:   Unable to open printcap file /etc/printcap for read!
Sep 29 18:01:20 ubuntu kernel: [ 7195.003990] init: samba4 main process (1602) killed by KILL signal
Sep 29 18:01:22 ubuntu kernel: [ 7197.670879] init: zentyal.s4sync main process (1671) killed by TERM signal
Sep 29 18:01:26 ubuntu smbd[1687]: [2012/09/29 18:01:26.972715,  0] ../source3/smbd/server.c:1260(main)
Sep 29 18:01:26 ubuntu smbd[1687]:   standard input is not a socket, assuming -D option
Sep 29 18:01:30 ubuntu smbd[1701]: [2012/09/29 18:01:30.529481,  0] ../source3/printing/print_standard.c:68(std_pcap_cache_reload)
Sep 29 18:01:30 ubuntu smbd[1701]:   Unable to open printcap file /etc/printcap for read!

when zentyal samba restart fails, then dns update on bind is done and looks that samba4 starts to listen on 389.

Sep 29 18:01:45 ubuntu smbd[1766]: [2012/09/29 18:01:45.689188,  0] ../source3/smbd/server.c:1260(main)
Sep 29 18:01:45 ubuntu smbd[1766]:   standard input is not a socket, assuming -D option
Sep 29 18:01:48 ubuntu smbd[1783]: [2012/09/29 18:01:48.551615,  0] ../source3/printing/print_standard.c:68(std_pcap_cache_reload)
Sep 29 18:01:48 ubuntu smbd[1783]:   Unable to open printcap file /etc/printcap for read!
Sep 29 18:01:54 ubuntu named[1588]: samba_dlz: starting transaction on zone zentyal-domain.lan
Sep 29 18:01:54 ubuntu named[1588]: samba_dlz: allowing update of signer=UBUNTU\$\@ZENTYAL-DOMAIN.LAN name=zentyal-domain.lan tcpaddr=127.0.0.1 type=AAAA key=1848729761.sig-ubuntu.zentyal-domain.lan/160/0
Sep 29 18:01:54 ubuntu named[1588]: client 127.0.0.1#44786: updating zone 'zentyal-domain.lan/NONE': adding an RR at 'zentyal-domain.lan' AAAA
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset zentyal-domain.lan 'zentyal-domain.lan.#011900#011IN#011AAAA#011::1'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: subtracted rdataset zentyal-domain.lan 'zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 1 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset zentyal-domain.lan 'zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 2 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: committed transaction on zone zentyal-domain.lan
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: starting transaction on zone zentyal-domain.lan
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: allowing update of signer=UBUNTU\$\@ZENTYAL-DOMAIN.LAN name=ubuntu.zentyal-domain.lan tcpaddr=127.0.0.1 type=AAAA key=2509382245.sig-ubuntu.zentyal-domain.lan/160/0
Sep 29 18:01:55 ubuntu named[1588]: client 127.0.0.1#33877: updating zone 'zentyal-domain.lan/NONE': adding an RR at 'ubuntu.zentyal-domain.lan' AAAA
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset ubuntu.zentyal-domain.lan 'ubuntu.zentyal-domain.lan.#011900#011IN#011AAAA#011::1'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: subtracted rdataset zentyal-domain.lan 'zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 2 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset zentyal-domain.lan 'zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 3 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: committed transaction on zone zentyal-domain.lan
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: starting transaction on zone _msdcs.zentyal-domain.lan
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: allowing update of signer=UBUNTU\$\@ZENTYAL-DOMAIN.LAN name=gc._msdcs.zentyal-domain.lan tcpaddr=127.0.0.1 type=AAAA key=796379678.sig-ubuntu.zentyal-domain.lan/160/0
Sep 29 18:01:55 ubuntu named[1588]: client 127.0.0.1#49800: updating zone '_msdcs.zentyal-domain.lan/NONE': adding an RR at 'gc._msdcs.zentyal-domain.lan' AAAA
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset gc._msdcs.zentyal-domain.lan 'gc._msdcs.zentyal-domain.lan.#011900#011IN#011AAAA#011::1'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: subtracted rdataset _msdcs.zentyal-domain.lan '_msdcs.zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 1 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: added rdataset _msdcs.zentyal-domain.lan '_msdcs.zentyal-domain.lan.#0113600#011IN#011SOA#011ubuntu.zentyal-domain.lan. hostmaster.zentyal-domain.lan. 2 900 600 86400 0'
Sep 29 18:01:55 ubuntu named[1588]: samba_dlz: committed transaction on zone _msdcs.zentyal-domain.lan
Sep 29 18:01:58 ubuntu ddclient[17083]: WARNING:  file /etc/ddclient.conf, line 8: Invalid Value for keyword 'login' = ''
Sep 29 18:02:48 ubuntu smbd[1783]: [2012/09/29 18:02:48.536989,  0] ../source3/printing/print_standard.c:68(std_pcap_cache_reload)
Sep 29 18:02:48 ubuntu smbd[1783]:   Unable to open printcap file /etc/printcap for read!


6
Also I found out, that when I restart the module with /etc/init.d/zentyal samba restart, it would not start correctly.

when I do /etc/init.d/bind9 restart and /etc/init.d/samba restart, the samba starts, but users are not copied from zentyal.

7
In samba logs, I can find that it is unable to bind to port 389, but nothing is listening on this port.

8
Hi again,

so I did the same again .. samba at last ... same issue.

Do somebody know on which port it should be listening or how to start samba LDAP server manually or the way how to zentyal tries to connect to it? If via some DNS or it goes via localhost?


9
Hi,

so I tried what FarquahrWindsor proposed.

Downloaded ubuntu-12.04.1-server-i386.iso 32bit, installed zentyal via apt.

Clicked on infrastructure and office and this how it ends. With the same problem.


 Saving changes

Saving changes in modules
Current operation: Saving samba module
84%

36 of 43 operations performed

Some modules reported error when saving changes . More information on the logs in /var/log/zentyal/

FATAL: Couldn't connect to samba LDAP server
Click here to go to the Dashboard

I really wonder how others made it running.

10
Just downloaded the latest ISO and did a fresh install. Selected only File Sharing modules + their dependencies.
The error occured again, so I don't think that it is properly fixed.

K.

11
Installation and Upgrades / FATAL: Couldn't connect to samba LDAP server
« on: September 26, 2012, 07:58:55 pm »
Hi,

any idea how to fix this problem? I installed fresh ISO and updated to latest. And still cannot make Samba working

This I have installed:

File Sharing and Domain Services - 3.0.2
Users and Groups - 3.0.2
Core Version - 3.0.2

Thanks!

Pages: [1]