Continuing the discussion from How i can login to SOGO NethServer v7B2:
Another question. is this manual is will work Sogo Thunderbird integration
or i need do something else? or have to use another method?
Continuing the discussion from How i can login to SOGO NethServer v7B2:
Another question. is this manual is will work Sogo Thunderbird integration
or i need do something else? or have to use another method?
I use SOGo on NS 6.8, so it is SOGo 2.x. I don’t have experience with SOGo 3. Sorry, but I can’t give deep advice with SOGo 3.
I did the stuff with SOGo integrator and Thunderbird, but the advantage I got was the work not worth imo. Thunderbird works with SOGo on CalDAv perfect. I have unfortunately no experince with the CardDav behavior, but I think this should work also perfect. E-mail also works perfect, so in my case I didn’t need the integration.
Next thing is, that AFAIK the xpi is only available for older thunderbird versions. If you want to use the most recent version, the integrator xpi is not made for it, what can lead to problems.
I would try thunderbird and SOGo without the integration. Only if you encouter problems I would do the work with integration.
I’m happy that you can login now and that your issue is solved from the nethserver side.
Good luck with your tests. I’m sure will love nethserver like I do.
Don’t hasitate to ask again if you encouter problems with other modules.
Have a good night.
It works,
You need to install “Lightning” a Thunderbird plugins.
Add the exception in Thunderbird in Server certificates for “Nethservername:443” (Replace NethserverName with your server address) and install plugins Sogo Connector and integrators.
Try, if you need help let me know that, I give you more details
How’s the configuration of Sogo and thunderbird?
You need more details?
Hello,
i was a bit busy, but finally trying do it, but got
authentication error, i can login to Sogo from web with testing user,
but from Thunderbird can’t login,
from “/var/log/slapd”
Oct 14 16:31:38 netsrv slapd[875]: conn=1105 fd=20 ACCEPT from PATH=/var/run/ldapi (PATH=/var/run/ldapi) Oct 14 16:31:38 netsrv slapd[875]: conn=1105 op=0 BIND dn="cn=czeslaw@salvenis.no-ip.biz,ou=groups,dc=salvenis,dc=no-ip,dc=biz" method=128 Oct 14 16:31:38 netsrv slapd[875]: conn=1105 op=0 RESULT tag=97 err=49 text= Oct 14 16:31:38 netsrv slapd[875]: conn=1105 op=1 UNBIND Oct 14 16:31:38 netsrv slapd[875]: conn=1105 fd=20 closed
how i can fix this?
regards C.Mruk
I can not really help you.
If you are familiar with the command prompt of linux you can get more details in de SOGO log.
edit /etc/sogo.conf
Close to the end remove the // before
LDAPDebugEnabled = YES;
restart sogo
systemctl restart sogod
Hi @mark_nl
i enable Ldap debug,
that’s log sample when i am trying login to Sogo from Thunderbird->SogoConnector
however this account login to Sogo web interface without any problem,
Oct 14 17:41:11 sogod [4277]: <0x0x7f59e3bc1da0[NGLdapConnection]> Using ldap_initialize for LDAP URL: ldapi:// Oct 14 17:41:11 sogod [4277]: <0x0x7f59e394d8c0[LDAPSource]> <NSException: 0x7f59e398c9f0> NAME:LDAPException REASON:operation bind failed: Invalid credentials (0x31) INFO:{"error_code" = 49; login = "cn=czeslaw@salvenis.no-ip.biz,ou=groups,dc=salvenis,dc=no-ip,dc=biz"; } Oct 14 17:41:11 sogod [4277]: <0x0x7f59e387e4c0[SOGoDAVAuthenticator]> tried wrong password for user 'czeslaw@salvenis.no-ip.biz'! Oct 14 17:41:11 sogod [4277]: 192.168.58.229 "PROPFIND /SOGo/dav/czeslaw@salvenis.no-ip.biz/Mail HTTP/1.1" 401 12/146 0.005 - - 280K Oct 14 17:43:19 sogod [4277]: <0x0x7f59e387e4c0[SOGoDAVAuthenticator]> got empty password for user 'czeslaw@salvenis.no-ip.biz'! Oct 14 17:43:19 sogod [4277]: 192.168.58.229 "OPTIONS /SOGo/dav/czeslaw@salvenis.no-ip.biz/Calendar HTTP/1.1" 401 28/0 0.001 - - 4K Oct 14 17:43:19 sogod [4276]: <0x0x7f59e387f020[SOGoDAVAuthenticator]> got empty password for user 'czeslaw@salvenis.no-ip.biz'! Oct 14 17:43:19 sogod [4276]: 192.168.58.229 "OPTIONS /SOGo/dav/czeslaw@salvenis.no-ip.biz/Contacts HTTP/1.1" 401 28/0 0.001 - - 4K Oct 14 17:43:19 sogod [4275]: <0x0x7f59e39d6c10[SOGoDAVAuthenticator]> got empty password for user 'czeslaw@salvenis.no-ip.biz'! Oct 14 17:43:19 sogod [4275]: 192.168.58.229 "PROPFIND /SOGo/dav/czeslaw@salvenis.no-ip.biz/Mail HTTP/1.1" 401 28/146 0.002 - - 8K
this slapd log
Oct 14 17:41:11 netsrv slapd[875]: conn=1122 fd=20 ACCEPT from PATH=/var/run/ldapi (PATH=/var/run/ldapi) Oct 14 17:41:11 netsrv slapd[875]: conn=1122 op=0 BIND dn="cn=czeslaw@salvenis.no-ip.biz,ou=groups,dc=salvenis,dc=no-ip,dc=biz" method=128 Oct 14 17:41:11 netsrv slapd[875]: conn=1122 op=0 RESULT tag=97 err=49 text= Oct 14 17:41:11 netsrv slapd[875]: conn=1122 op=1 UNBIND Oct 14 17:41:11 netsrv slapd[875]: conn=1122 fd=20 closed
ldap dump with this user
# czeslaw, People, directory.nh dn: uid=czeslaw,ou=People,dc=directory,dc=nh uidNumber: 1001 gidNumber: 1001 uid: czeslaw shadowMax: 99999 shadowWarning: 7 shadowMin: 0 loginShell: /bin/bash homeDirectory: /var/lib/nethserver/home/czeslaw shadowInactive: -1 shadowExpire: -1 gecos: Czeslaw Mruk shadowLastChange: 17087 shadowFlag: -1 cn: Czeslaw Mruk sn: czeslaw objectClass: posixAccount objectClass: shadowAccount objectClass: inetOrgPerson mail: czeslaw@salvenis.no-ip.biz
yes i am,
for me it’s look like ldap problem “err=49”,
another thing, when creating this user i check box “Remote shell (SSH)” but can’t login with this user form “kitty” or direct Nethserver Linux console.
regards C.Mruk
I have set it up once, but that was v7-alpha, a lot has changed since then.
I think you could have more luck @enzoturri
Hi,
error 49 is LDAP_INVALID_CREDENTIALS: The client passed either an incorrect DN or password, or the password is incorrect because it has expired.
It is a stupid test but once I lost days for a “à” (with accent) …
Try to change the user’s password with Test.1234.
I’m setting up a virtual machine with nethserver. I do some testing.
Hi,
i change password as you mentioned, same results, cant login from TB , same errors in logs. As previews i can login with this users to SOGo web panel.
Maybe is the way to reproduce ldap query from console, or enable debug for “slapd”,
this a log from sogo when i logged to web frontend
ct 14 20:18:04 sogod [4276]: 192.168.58.100 "GET /SOGo HTTP/1.1" 302 0/0 0.022 - - 1M Oct 14 20:18:04 sogod [4276]: 192.168.58.100 "GET /SOGo/ HTTP/1.1" 200 7502/0 0.037 22896 67% 1M Oct 14 20:18:18 sogod [4276]: <0x0x7f59e3c73370[NGLdapConnection]> Using ldap_initialize for LDAP URL: ldapi:// Oct 14 20:18:18 sogod [4276]: SOGoRootPage successful login from '192.168.58.100' for user 'czeslaw' - expire = -1 grace = -1 Oct 14 20:18:18 sogod [4276]: <0x0x7f59e3cc5f20[NGLdapConnection]> Using ldap_initialize for LDAP URL: ldapi:// 2016-10-14 20:18:18.801 sogod[4276:4276] -[NGLdapConnection _searchAtBaseDN:qualifier:attributes:scope:]: search at base 'ou=people,dc=salvenis,dc=no-ip,dc=biz' filter '(|(uid=czeslaw)(mail=czeslaw))' for attrs '*' Oct 14 20:18:18 sogod [4276]: [WARN] <0x0x7f59e3c64aa0[SOGoWebDAVAclManager]> entry '{DAV:}write' already exists in DAV permissions table Oct 14 20:18:18 sogod [4276]: [WARN] <0x0x7f59e3c64aa0[SOGoWebDAVAclManager]> entry '{DAV:}write-properties' already exists in DAV permissions table Oct 14 20:18:18 sogod [4276]: [WARN] <0x0x7f59e3c64aa0[SOGoWebDAVAclManager]> entry '{DAV:}write-content' already exists in DAV permissions table Oct 14 20:18:18 sogod [4276]: 192.168.58.100 "POST /SOGo/connect HTTP/1.1" 200 27/62 0.038 - - 252K Oct 14 20:18:18 sogod [4276]: 192.168.58.100 "GET /SOGo//czeslaw HTTP/1.1" 302 0/0 0.002 - - 0 Oct 14 20:18:18 sogod [4276]: 192.168.58.100 "GET /SOGo//czeslaw/view HTTP/1.1" 302 0/0 0.004 - - 0 Oct 14 20:18:18 sogod [4276]: 192.168.58.100 "GET /SOGo/so/czeslaw/Contacts HTTP/1.1" 302 0/0 0.002 - - 0 Oct 14 20:18:18 sogod [4276]: <0x0x7f59e3e8a530[NGLdapConnection]> Using ldap_initialize for LDAP URL: ldapi:// 2016-10-14 20:18:18.902 sogod[4276:4276] -[NGLdapConnection _searchAtBaseDN:qualifier:attributes:scope:]: search at base 'ou=people,dc=salvenis,dc=no-ip,dc=biz' filter '(|(uid=czeslaw)(mail=czeslaw))' for attrs '*' Oct 14 20:18:18 sogod [4276]: 192.168.58.100 "GET /SOGo/so/czeslaw/Contacts/view HTTP/1.1" 200 13544/0 0.084 52821 74% 1M Oct 14 20:18:19 sogod [4275]: 192.168.58.100 "GET /SOGo/so/czeslaw/jsonSettings HTTP/1.1" 200 260/0 0.004 - - 172K Oct 14 20:18:19 sogod [4276]: 192.168.58.100 "GET /SOGo/so/czeslaw/Calendar/alarmslist?browserTime=1476469099 HTTP/1.1" 200 63/0 0.008 - - 24K Oct 14 20:18:19 sogod [4277]: 192.168.58.100 "GET /SOGo/so/czeslaw/jsonDefaults HTTP/1.1" 200 2464/0 0.010 - - 204K Oct 14 20:18:19 sogod [4277]: 192.168.58.100 "GET /SOGo/so/czeslaw/Contacts/personal/view?asc=1&partial=1&search=name_or_address&sort=c_cn&value= HTTP/1.1" 200 24605/0 0.087 - - 1M
regards C.Mruk
Hi,
I just installed NethServer 7 to make a howto related to sogo / Thunderbird.
I tried to create a user with shell access.
I had no problems.
Try to give a look at the howto to see if you see something different from your procedure.
Googling I see that someone has solved your problem by reinstalling or sogo or ldap (i don’t like this solution, i’s too much… M$ )
Hi,
thank you @enzoturri
i will reinstall whole system and follow this “How to”.
I am done almost same way with one step different, before i install any application i edit ‘Server Certificate’ -> ‘Edit self-singed certificate’ to adjust name, domain etc.
Tomorrow, i will report back.
Hello,
thank you again @enzoturri,
after reinstalling whole Nethserver and following your instruction SOGo with Thunderbird+SOGoConnector finally getting all things worked and i will dig into, to find best (easy ‘lazy’) way to make ~ 70 clients integration.
For me was a bit unexpected logging to shell, and mail (IMAP, SMTP) with “someuser@somedomain.dom” credential but for SOGo only with “someuser” credential, and it was my main misunderstand how to make integration TB + SOGo, second first I trying to use was “SOGo-integrator” add-on usgin SOGo documentation.
Regards
C.Mruk
So did it work?
Hi,
Yes is working how i expect.
Thank you for your help.
C.Mruk
Thanks man I marked as solved. Happy NethServer!
Good job.
I use Nethserver as a mail and groupware server. It manages very large archives (hundreds of gigabytes) and it works wonderfully.
Good choice!