Results 1 to 1 of 1

Thread: [SOLVED] Difference between zmprov and ldapmodify?

  1. #1
    Join Date
    Nov 2008
    Kansas City, MO
    Rep Power

    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 -D "cn=config" -w ldap_password":

    changetype: modify
    add: objectClass
    objectClass: sambaSamAccount
    objectClass: posixAccount
    add: sambaSID
    sambaSID: ....


    zmprov ma +objectClass sambaSamAccount sambaSID ...
    zmprov ma +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.

Similar Threads

  1. zmprov with encrypted password
    By bonoboslr in forum Migration
    Replies: 3
    Last Post: 01-26-2009, 08:38 AM
  2. Trying to enter multi line value with zmprov
    By mbd in forum Administrators
    Replies: 10
    Last Post: 01-24-2007, 10:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts