Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

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
  #1 (permalink)  
Old 09-08-2010, 12:40 PM
Intermediate Member
 
Posts: 19
Default Moving LDAP

I recently installed Zimbra and have been asked to provide an LDAP server that we can authenticate against.

I'm using Ubuntu 10.04 for my LDAP server and would like to import the LDAP database from Zimbra (zmslapcat) and import it into the Ubuntu LDAP. I haven't spent that much time with the new LDAP configuration and want to know how to create the appropriate schema from my Zimbra data.

Code:
slapadd -v -d 6 -l ldap.bak 
send_ldap_result: err=0 matched="" text=""
hdb_db_open: "dc=example,dc=com"
slapadd: line 1: database #1 (dc=example,dc=com) not configured to hold "cn=zimbra"; no database configured for that naming context
Code:
dn: cn=zimbra
objectClass: organizationalRole
description: Zimbra Systems Application Data
cn: zimbra
structuralObjectClass: organizationalRole
entryUUID: 
creatorsName: cn=config
createTimestamp: 20100513184745Z
entryCSN: 
modifiersName: cn=config
modifyTimestamp: 20100513184745Z
Or can I get some pointer to somewhere else that may be able to help? Then I'll come back and figure out how to get a production server to use the remote LDAP (ahhh!).
Reply With Quote
  #2 (permalink)  
Old 09-08-2010, 03:04 PM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by supradave View Post
I recently installed Zimbra and have been asked to provide an LDAP server that we can authenticate against.

I'm using Ubuntu 10.04 for my LDAP server and would like to import the LDAP database from Zimbra (zmslapcat) and import it into the Ubuntu LDAP. I haven't spent that much time with the new LDAP configuration and want to know how to create the appropriate schema from my Zimbra data.

Code:
slapadd -v -d 6 -l ldap.bak 
send_ldap_result: err=0 matched="" text=""
hdb_db_open: "dc=example,dc=com"
slapadd: line 1: database #1 (dc=example,dc=com) not configured to hold "cn=zimbra"; no database configured for that naming context
Code:
dn: cn=zimbra
objectClass: organizationalRole
description: Zimbra Systems Application Data
cn: zimbra
structuralObjectClass: organizationalRole
entryUUID: 
creatorsName: cn=config
createTimestamp: 20100513184745Z
entryCSN: 
modifiersName: cn=config
modifyTimestamp: 20100513184745Z
Or can I get some pointer to somewhere else that may be able to help? Then I'll come back and figure out how to get a production server to use the remote LDAP (ahhh!).
There is a wiki article: LDAP Authentication - Zimbra :: Wiki

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #3 (permalink)  
Old 09-08-2010, 03:11 PM
Intermediate Member
 
Posts: 19
Default

Thanks for that. I'll keep that in mind when I get to that step. I need to know how to import in the current Zimbra LDAP db into the remote LDAP db.
Reply With Quote
  #4 (permalink)  
Old 09-10-2010, 09:15 AM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by supradave View Post
Thanks for that. I'll keep that in mind when I get to that step. I need to know how to import in the current Zimbra LDAP db into the remote LDAP db.
Zimbra adds their own schema file to LDAP. I don't believe you can use their schema legally except within Zimbra itself. You'll therefore need to strip out from the dumped ldif all of the Zimbra schema-specific items before importing the remainder of the ldif file into your separate LDAP server.

Again, why not just start with an external LDAP server and have Zimbra auth against it?

I guess I'm not clearly understanding the use case here...

All the best,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #5 (permalink)  
Old 09-10-2010, 09:24 AM
Intermediate Member
 
Posts: 19
Default

I would like to take my user base in Zimbra, allow authentication from other servers from the non-Zimbra LDAP.

So my dn's are
Code:
dn: uid=supradave,ou=people,dc=example,dc=com
It shouldn't be too hard to import just that and the userPassword?
Reply With Quote
  #6 (permalink)  
Old 09-10-2010, 09:31 AM
Moderator
 
Posts: 1,209
Default

If I understand what you are trying to do correctly, I think you might be making things harder on yourself than they need to be.

Why not just have users auth against Zimbra's LDAP directly? You can always set up a Zimbra LDAP replica to lighten the load if needed on your main Zimbra LDAP server.

Search the forums for "Samba" and you'll see how others have used a Zimbra server to create a competitor to Microsoft Small Business Server. In that case, Zimbra;s LDAP becomes the backend for an entire Active Directory replacement.

In your proposed use case, wouldn't you have to re-export the Zimbra LDAP every time a user changed a password or you added/deleted/changed an a mailbox user (and then re-import it into the other LDAP server)?

Please let me know if I am missing anything!

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #7 (permalink)  
Old 09-10-2010, 05:04 PM
Partner (VAR/HSP)
 
Posts: 260
Default

yeah I tried this recently and gave up after ldap refused to start once enabling the nis schema. Interested to see how you go. I only gave up after 20mins of trying though - I am sure it is possible.
__________________
http://www.solutionsfirst.com.au/hosting/zimbra/
Australia's premier Zimbra Hosting Partner
Resellers wanted!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

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.