Problems with Jamm first login
Ciro Mattia Gonano <[email protected]> Tue, 19 Oct 2004 12:39:34 +0200
| Newsgroups | gmane.mail.jamm.user |
|---|---|
| Organization | ePortal Technologies |
| Message-ID | <1098182374.13358.17.camel@brie> |
Hi all!
I'm having trouble with Jamm's first login. I correctly setup
Postfix+Courier on the external server, and OpenLDAP+Tomcat+Jamm on the
internal server.
Tomcat is working correctly, and so OpenLDAP.
When I try to log in to Jamm with 'root' and my rootdn password, Jamm
complains:
"An unknown error has occured!
Please contact the system administrator
We're sorry for the inconvience. Please try again later."
Tomcat error logs are:
---
Oct 19 12:21:40 ERROR [http-8080-Processor5] webapp.JammExceptionHandler
- Caught Error
jamm.backend.MailManagerException: Could not bind
at jamm.backend.MailManager.authenticate(MailManager.java:253)
at jamm.webapp.LoginAction.execute(LoginAction.java:107)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
[..omissis...]
Caused by: javax.naming.InvalidNameException: [LDAP: error code 34 -
invalid DN]
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2929)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2735)
[..omissis...]
Caused by:
javax.naming.InvalidNameException: [LDAP: error code 34 - invalid DN]
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2929)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2735)
---
(full logs are available if they can help)
My jamm.properties is:
---
jamm.ldap.host = localhost
jamm.ldap.port = 389
jamm.ldap.search_base = o=vmailHosting,dn=e-portaltech,dn=it
jamm.ldap.root_dn = cn=Manager,dn=e-portaltech,dn=it
jamm.ldap.root_login = root
jamm.password.exop = true
jamm.vmail.homedir = /home/vmail/domains
---
My slapd.conf:
---
database ldbm
directory /var/lib/ldap
suffix "dc=e-portaltech,dc=it"
rootdn "cn=Manager,dc=e-portaltech,dc=it"
index default eq
index objectClass eq
index cn,mail eq,subinitial
index phpgwContactOwner pres,eq,sub
index uidNumber pres,eq
lastmod on
access to dn=".*,jvd=([^,]+),o=vmailHosting,dc=e-portaltech,dc=it"
attr=userPassword
by self write
by
group/jammPostmaster/roleOccupant="cn=postmaster,jvd=$1,o=vmailHosting,dc=e-portaltech,dc=it" write
by anonymous auth
by * none
access to dn=".*jvd=([^,]+),o=vmailHosting,dc=e-portaltech,dc=it"
by self write
by
group/jammPostmaster/roleOccupant="cn=postmaster,jvd=$1,o=vmailHosting,dc=e-portaltech,dc=it" write
by * read
access to *
by * read
---
And a query to LDAP:
---
[root@grana tomcat4]# ldapsearch -h localhost -x -W -D
cn=Manager,dc=e-portaltech,dc=it -b o=vmailHosting,dc=e-portaltech,dc=it
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <o=vmailHosting,dc=e-portaltech,dc=it> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#
# vmailHosting, e-portaltech.it
dn: o=vmailHosting,dc=e-portaltech,dc=it
objectClass: top
objectClass: organization
o: vmailHosting
description: vmailHosting ePortal server
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
---
I'm running OpenLDAP 2.1.29 + Apache 2.0.50 on Fedora Core 2 (both from
RPM), and I'm using Tomcat 4.1.31 + Jamm 0.9.7-rc1 from .tar.gz
binaries.
Anyone has experienced (and possibly solved) the same problem?
Thanks in advance,
--
Ciro Mattia Gonano
System Engineer c/o ePortal Technologies snc
web: http://www.e-portaltech.it
phone: +39 0425 486036
mobile: +39 320 9180546
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl