• Test mail configuration?

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #9976  by pavila
 
Subscribe to a document, the lock and unlock it. Every time a mail notification should be sent. Configure JBoss mail is debug mode which will spit a lot of info in the log (or the console if you started JBoss from the command line).
 #9998  by Catscratch
 
I debugged it.

The error is in line 200 of LdapPrincipalAdapter.java:
Code: Select all
NamingEnumeration<SearchResult> results = ctx.search(searchBase, searchFilter, searchCtls);
searchBase = cn=user1,ou=MMTOpenUsers,dc=mmtopen,dc=de
searchFilter = (objectClass=person)

searchCtls
- attributesToReturn = null
- countLimit = 0
- derefLink = false
- returnObj = false
- searchScope = 2
- timeLimit = 0

Do you have a hint for me please?
Thank you.

Edit:
I changed the openKM.cfg to:
Code: Select all
principal.ldap.mail.search.base=ou=MMTOpenUsers,dc=mmtopen,dc=de
principal.ldap.mail.search.filter=(&(objectClass=person)(sAMAccountName={0}))
Now no exceptions is thrown, but
Code: Select all
while (results.hasMore())
is false. So the enum is empty.

If I hardcode the user with:
Code: Select all
principal.ldap.mail.search.filter=(&(objectClass=person)(sAMAccountName=USERNAME))
Mailnotification works. How do I have to set the parameter right?
 #10131  by jllort
 
Remember changes on OpenKM.cfg need restarting jboss this could be the problem. Take a look on administrator if parameter is propertly. And make some print in source code, because it's a misterious problem.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.