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 02-27-2009, 07:21 AM
Junior Member
 
Posts: 9
Default [SOLVED] Difference between zmprov and ldapmodify?

I'm setting up Zimbra + Samba as PDC and I'd like to bulk provision our existing users. Is there any difference between writing the LDIF manually and making the modifications via ldapmodify, EG passing the following LDIF through "ldapmodify -x -h mail.company.com -D "cn=config" -w ldap_password":

dn: uid=user.name,ou=people,dc=company,dc=com
changetype: modify
add: objectClass
objectClass: sambaSamAccount
objectClass: posixAccount
-
add: sambaSID
sambaSID: ....


versus:

zmprov ma user.name +objectClass sambaSamAccount sambaSID ...
zmprov ma user.name +objectClass posixAccount

The reason i'd like to do this via direct LDAP calls, rather than zmprov, is so I can script this on an external machine.

UPDATE: After some investigation, this should not be an issue. However, in certain instances I have found that if a user's telephone number is recorded with a trailing space and Samba / POSIX information is recorded by means of ldapmodify rather than zmprov the information will still be properly recorded in LDAP but it will not display in the admin UI. This can be fixed by removing the trailing space from the user's phone number; it might also be fixed in Zimbra 5.0.14 (I'm on 5.0.13). Thanks to ajcody for sitting on IM with me today and helping me figure this out.

Last edited by KitPeters; 03-10-2009 at 02:36 PM.. Reason: Problem solved on my own; thought I'd update.
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.