Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > General Zimbra > Zimbra Success Stories

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #41 (permalink)  
Old 05-08-2008, 08:47 AM
Elite Member
 
Posts: 279
Default

Never mind. I think I figured it out. I guess the Zimbra plugins are loging in to check the server status. Still can't get the ldap to work though

dj
Reply With Quote
  #42 (permalink)  
Old 05-08-2008, 09:33 AM
Elite Member
 
Posts: 279
Default

Ok. New question. If Joomla tries to authentic against Zimbra and if it fails or not, shouldn't something get logged? If so, which log file?

dj
Reply With Quote
  #43 (permalink)  
Old 05-09-2008, 09:34 AM
Project Contributor
 
Posts: 34
Default

Here's what you need to do to get Joomla to authenticate via Zimbra LDAP.
I assume Zimbra is enabled for ldap on port 389.
1) Create a Joomla account eg. with name myusername
2) Create a Zimbra account with the same name
4) Configure the Jooma ldap authentication plugin;
Enabled - Yes
Host - the FQDN for your Zimbra server
Port - 389
LDAP V3 - Yes
Negotiate TLS - No
Do not follow referrals - No
Authorization Method - Bind Directly as User
Base DN - dc=servername,dc=com (or what ever you use)
Search String - leave blank
Users DN - uid=[username],ou=people,dc=servername,dc=com (or what ever you use)
Connect username - leave blank
Connect password - leave blank
Map: Full Name - fullName
Map: E-mail
Map: User ID - uid
5) Make certain that the Joomla and Zimbra accounts have different passwords, then you know which authentication you have used.
__________________
----------------------------------------------
Having signatures is a sign of having signatures.
Reply With Quote
  #44 (permalink)  
Old 05-09-2008, 11:01 AM
Elite Member
 
Posts: 279
Default

Ok. I am going to give this a shot and see what happens.



Quote:
Originally Posted by richardcwgate View Post
1) Create a Joomla account eg. with name myusername
2) Create a Zimbra account with the same name
...
5) Make certain that the Joomla and Zimbra accounts have different passwords, then you know which authentication you have used.
One question though. What's the point of adding the Joomla and Zimbra account? If I have a list of users already in Zimbra, why do I need to add this one? Is it just to test?

dj
Reply With Quote
  #45 (permalink)  
Old 05-09-2008, 11:05 AM
Elite Member
 
Posts: 279
Default

Ok. I tested it and I get please enter a valid email address. I didn't however create a user in Joomla or Zimbra.


dj
Reply With Quote
  #46 (permalink)  
Old 05-09-2008, 11:10 AM
Project Contributor
 
Posts: 34
Default

There needs to be two. The authentication will be done over LDAP to Zimbra but that's just authentication, it verifies the username/password combination and returns the account's e-mail address. Joomla then needs to be able to assign the permissions it uses for the account. So it matches the LDAP verified account to a Joomla account for this purpose.
__________________
----------------------------------------------
Having signatures is a sign of having signatures.
Reply With Quote
  #47 (permalink)  
Old 05-09-2008, 11:23 AM
Elite Member
 
Posts: 279
Default

Ok. Success but couple of more questions. I added my username and a different pw and logged in with my zimbra pw just fine.

1. Do I have to add everyone in as a user then to Joomla? If so I don't think this is going to work for me. I already have over 300 users in Zimbra and that is a lot of users to add. Keep in mind that my users are not static. In other words as people come and go I know have two places to update. I guess to me that is not a very good way of it. I am sure it's how Joomla does it but seems to me a waste of resources.

2. Does the Zimbra plugins for Joomla only work with Ver. 5 of Zimbra. I need to upgrade to Ver 5 but haven't had time. When I try to login as Zimbra it errors out.

dj
Reply With Quote
  #48 (permalink)  
Old 05-09-2008, 11:44 AM
Project Contributor
 
Posts: 34
Default

Quote:
Originally Posted by dljordaneku View Post
Ok. Success but couple of more questions. I added my username and a different pw and logged in with my zimbra pw just fine.

1. Do I have to add everyone in as a user then to Joomla? If so I don't think this is going to work for me. I already have over 300 users in Zimbra and that is a lot of users to add. Keep in mind that my users are not static. In other words as people come and go I know have two places to update. I guess to me that is not a very good way of it. I am sure it's how Joomla does it but seems to me a waste of resources.

2. Does the Zimbra plugins for Joomla only work with Ver. 5 of Zimbra. I need to upgrade to Ver 5 but haven't had time. When I try to login as Zimbra it errors out.

dj
1) Yes you will need a Joomla and a Zimbra account but this process can be automated. Two simple ways would be; a) Use my plugin and get users to self register via Joomla and the plugin will generate the Zimbra account, but this will not help with your existing userbase. b) Write a plugin automatically creates the Joomla account during the login process after validating the account via LDAP.

2) It depends on what has changed on the Zimbra ldap side between versions. It may need the Joomla LDAP authentication plugin parameters altering, particularly the LDAP V3 and Users DN settings.
__________________
----------------------------------------------
Having signatures is a sign of having signatures.
Reply With Quote
  #49 (permalink)  
Old 05-11-2008, 09:54 PM
Loyal Member
 
Posts: 94
Default Partial success

I'm having some partial success with this.

If I create matching accounts (username and passwords) on both Zimbra and Joomla, leave Joomla auth enabled, I can successfully use the preauth to log into Zimbra from Joomla.

If I disable Joomla auth and leave LDAP auth on there is a no such account error.

Creating a new Joomla account results in no Zimbra account being created.
zimbra.log reveals:
Code:
May 11 20:39:47 zimbra saslauthd[28381]: zmauth: authenticating against elected url 'https://zimbra.chromedcomputing.com:7071/service/admin/soap/' ...
May 11 20:39:47 zimbra saslauthd[28381]: zmpost: url='https://zimbra.chromedcomputing.com:7071/service/admin/soap/' returned buffer->data='<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><context xml
ns="urn:zimbra"><change token="8002"/></context></soap:Header><soap:Body><AuthResponse xmlns="urn:zimbraAccount"><authToken>biglongauthtokenhere</authToken><lifetime>172800000</lifetime><skin>lemongrass</skin></AuthResponse></soap:Body></soap:Envelope>', hti->error=''
May 11 20:39:47 zimbra saslauthd[28381]: auth_zimbra: admin@zimbra.chromedcomputing.com auth OK
May 11 20:39:47 zimbra saslauthd[28386]: zmauth: authenticating against elected url 'https://zimbra.chromedcomputing.com:7071/service/admin/soap/' ...
May 11 20:39:47 zimbra saslauthd[28386]: zmpost: url='https://zimbra.chromedcomputing.com:7071/service/admin/soap/' returned buffer->data='<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><context xml
ns="urn:zimbra"><change token="8002"/></context></soap:Header><soap:Body><AuthResponse xmlns="urn:zimbraAccount"><authToken>biglongauthtokenhere</authToken><lifetime>172799999</lifetime><skin>lemongrass</skin></AuthResponse></soap:Body></soap:Envelope>', hti->error=''
May 11 20:39:47 zimbra saslauthd[28386]: auth_zimbra: admin@zimbra.chromedcomputing.com auth OK
Server is 5.0.5 NE on Ubuntu 6.06

I can see it's some kind of auth error from looking at the other post containing "hti->error=" but could use a little help from here.
__________________
Brian Harden
www.chromedcomputing.com

Last edited by brained; 05-12-2008 at 03:02 PM.. Reason: Fixed future ZCS version (In this house we obey the laws of thermonuclear dynamics)
Reply With Quote
  #50 (permalink)  
Old 05-12-2008, 03:25 AM
Project Contributor
 
Posts: 34
Default

Quote:
Originally Posted by brained View Post
I'm having some partial success with this.

If I create matching accounts (username and passwords) on both Zimbra and Joomla, leave Joomla auth enabled, I can successfully use the preauth to log into Zimbra from Joomla.

If I disable Joomla auth and leave LDAP auth on there is a no such account error.

.......
Sorry Brian I'm a little confused. You started off saying preauth works and then seem to say it didn't?
__________________
----------------------------------------------
Having signatures is a sign of having signatures.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.