Results 1 to 1 of 1

Thread: [SOLVED] Difference between zmprov and ldapmodify?

  1. #1
    KitPeters is offline Junior Member
    Join Date
    Nov 2008
    Location
    Kansas City, MO
    Posts
    9
    Rep Power
    6

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. zmprov with encrypted password
    By bonoboslr in forum Migration
    Replies: 3
    Last Post: 01-26-2009, 09:38 AM
  2. Trying to enter multi line value with zmprov
    By mbd in forum Administrators
    Replies: 10
    Last Post: 01-24-2007, 11: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
  •