Как сформулировать запрос к серверу OpenLDAP-Zimbra в почтовом модуле
LAT клиентом подключаюсь с такими параметрами:
Hostname: mail.domain.ru
Port: 389
Base DN: dc=domain,dc=ru
Username: admin
Password: 123456
Encryption: None
Server type: OpenLDAPПодключаюсь к базе, все ок, вижу базу и могу ее редактировать,
но как это указать в конфигурации модуля?
Вот кривой пример конфигурации при котором биллинг коннектится,
но выдает ошибку при добавлении ящика в договоре: "Ошибка добавления в LDAP"
sa=ru.bitel.bgbilling.modules.email.server.bean.LdapEmailServiceActivator
sa.ldap.class=bitel.billing.server.email.bean.EximLDAPDriver
sa.ldap.host=mail.domain.ru
sa.ldap.port=389
sa.ldap.root=dc=domain,dc=ru
sa.ldap.user=admin
sa.ldap.password=123456
sa.ldap.base=dc=bgbillingОперационная система -
Ubuntu 10.04 (не имеет значения linux или windows)
Java version - 1.6.0_18Версия сервера
BGBillingServer - 5.0_737Почтовый модуль
email - 5.0_177server.error.log:
Код:
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - LDAPException: Invalid DN Syntax (34) Invalid DN Syntax
LDAPException: Server Message: invalid DN
LDAPException: Matched DN:
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at com.novell.ldap.LDAPResponse.getResultException(Unknown Source)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at com.novell.ldap.LDAPResponse.chkResultCode(Unknown Source)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at com.novell.ldap.LDAPConnection.chkResultCode(Unknown Source)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at com.novell.ldap.LDAPConnection.add(Unknown Source)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at com.novell.ldap.LDAPConnection.add(Unknown Source)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at bitel.billing.server.email.bean.DefaultLDAPDriver.addAccount(DefaultLDAPDriver.java:127)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at ru.bitel.bgbilling.modules.email.server.bean.LdapEmailServiceActivator.createImpl(LdapEmailServiceActivator.java:38)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at ru.bitel.bgbilling.modules.email.server.bean.EmailServiceActivator.create(EmailServiceActivator.java:22)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at bitel.billing.server.email.action.ActionUpdateAccount.doAction(ActionUpdateAccount.java:106)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at bitel.billing.server.Executer.doModule(Unknown Source)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at bitel.billing.server.Executer.doPost(Unknown Source)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at bitel.billing.server.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:37)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
server 06-15/11:23:55 ERROR [http-8080-1] LoggingPrintStream - at java.lang.Thread.run(Thread.java:619)
server 06-15/11:23:55 ERROR [http-8080-1] server - Can't update account
ru.bitel.bgbilling.modules.email.server.bean.EmailServiceActivatorException: Ошибка добавления в LDAP!
at ru.bitel.bgbilling.modules.email.server.bean.LdapEmailServiceActivator.checkLDAPResult(LdapEmailServiceActivator.java:80)
at ru.bitel.bgbilling.modules.email.server.bean.LdapEmailServiceActivator.createImpl(LdapEmailServiceActivator.java:38)
at ru.bitel.bgbilling.modules.email.server.bean.EmailServiceActivator.create(EmailServiceActivator.java:22)
at bitel.billing.server.email.action.ActionUpdateAccount.doAction(ActionUpdateAccount.java:106)
at bitel.billing.server.Executer.doModule(Unknown Source)
at bitel.billing.server.Executer.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at bitel.billing.server.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:37)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)