Results 1 to 3 of 3

Thread: Add attributes to multiple existing users?

  1. #1
    NoDoze is offline Elite Member
    Join Date
    Feb 2008
    Location
    San Francisco
    Posts
    360
    Rep Power
    7

    Default Add attributes to multiple existing users?

    Is there a way to add the attributes to multiple existing users?

    To add posixAccount attributes to the previously established users (before ldap schema change) you can run command:

    zmprov ma admin@gregzimbra2.zimbra.com +objectClass posixAccount uidNumber 10003 gidNumber 10001 homeDirectory /home/admin loginShell /bin/bash

    and for update sambaSamAccount run:

    zmprov ma admin@gregzimbra2.zimbra.com +objectClass sambaSamAccount sambaDomainName GREGZIMBRA1 sambaSID S-1-5-21-3745602466-621825477-2613676135-21006 sambaAcctFlags [UX]
    I have about a hundred existing zimbra users I need to add posix and samba attributes for... The above only allows me to do one at a time...there's got to be some way faster, right?

    Thanks.

  2. #2
    NoDoze is offline Elite Member
    Join Date
    Feb 2008
    Location
    San Francisco
    Posts
    360
    Rep Power
    7

    Default

    Ok, well, I've created a bash file with:

    Code:
    zmprov ma user@domain.com +objectClass posixAccount uidNumber 10004 gidNumber 10002 loginShell /bin/bash
    for each user account...working on 40 users at a time...

    A couple of questions...
    ...if you noticed in the above code... I have no user home directory, is that ok?
    ...cause basically, I'm using the zimbra accounts for authorization to login to OTHER file servers.

    ...then it lead me thinking, could I designated a home directory on another server? could it be entered as \\192.168.1.250\home\user ...?

    ...and last question... entering 40 of the code above in a row cause any issues or ill affects to zimbra?

    Thanks!

  3. #3
    NoDoze is offline Elite Member
    Join Date
    Feb 2008
    Location
    San Francisco
    Posts
    360
    Rep Power
    7

    Default

    Uhmm...? I guess it's not possible...?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  2. Zimbra + Samba LDAP, cannot add winxp
    By fajarpri in forum Installation
    Replies: 4
    Last Post: 07-08-2007, 11:45 AM
  3. zmprov createAccount Attributes
    By SomeJ in forum Migration
    Replies: 0
    Last Post: 03-08-2007, 12:58 PM
  4. Cant add users to distribution list after 4.5 upgrade
    By cangeceiro in forum Installation
    Replies: 8
    Last Post: 02-06-2007, 08:33 AM
  5. Replies: 5
    Last Post: 05-31-2006, 02:19 PM

Posting Permissions

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