Page 1 of 1

NEARLY SOLVED Not receiving subscription notifications

PostPosted:Tue Sep 25, 2018 2:03 pm
by ColH
Logged in as admin, I can use the Check Email utility and get a test message successfully sent to my own [company] email account.
Logged in as myself, I've subscribed to a document, but when admin updates it I don't receive an email notification.
Where can I look/check to fix this?
I haven't set up my user prefs for accessing my mail server, because I don't want OpenKM to fetch my emails - if the prefs are set, doesn't this mean that admin will be able to see all of everyone's emails..??
Note that I am using LDAP/AD authentication; OpenKM v 6.3.6
Thanks.

Re: Not receiving subscription notifications

PostPosted:Wed Sep 26, 2018 1:06 pm
by ColH
Looking in catalina.out at the moment admin Updates the doc:
Code: Select all
2018-09-26 13:52:07,678 [http-nio-0.0.0.0-8080-exec-6] ERROR c.o.principal.LdapPrincipalAdapter - NamingException: Cannot parse url: server2.myad.my-company.com:389 (Cache: com.openkm.cache.ldapPrincipalAdapter.general - Key: getRolesByUser:colin - Base: [DC=MYAD,DC=MY-COMPANY,DC=COM] - Filter: (&(objectClass=person)(sAMAccountName=colin)) - Attribute: memberOf)
Not sure why there's a parse error - colin is able to log in to openkm ok.

SOLVED Not receiving subscription notifications

PostPosted:Thu Sep 27, 2018 9:18 am
by ColH
Ahhhh! I've finally figured this out.
My mistake (although a pity OpenKM doesn't flag it...), was not putting "ldap://" on the front of the "principal.ldap.server" value :oops:
Notifications are now coming through; and this may also be the solution to other problems I've been having. :roll:

Re: NEARLY SOLVED Not receiving subscription notifications

PostPosted:Thu Sep 27, 2018 2:50 pm
by ColH
Notifications have now stopped working - but since it seems to be related to AD/LDAP roles and groups, I'll add more in my other thread viewtopic.php?f=4&t=22050

Re: NEARLY SOLVED Not receiving subscription notifications

PostPosted:Fri Sep 28, 2018 6:10 pm
by jllort
In user administration should be shown user mails, otherwise the sending notifications obviously will fails. Ensure you mail configuration works again -> Administration > tools > check mail

Re: NEARLY SOLVED Not receiving subscription notifications

PostPosted:Sat Sep 29, 2018 7:28 am
by ColH
Yes, the admin User tab shows the member users along with their email addresses. And the Check Mail utility succeeds.
The notifications are sent, or not sent, depending on how the user is 'authorised' through the AD hierarchy - whether they are members of the ROLE_USER group directly or by being members of a group which is itself a member of ROLE_USER.
(I added a bit more detail in my other thread)

Re: NEARLY SOLVED Not receiving subscription notifications

PostPosted:Sat Sep 29, 2018 8:58 am
by jllort
The notification feature has not any kind of relation with user grants ( if you have not changed the source code !!! ).