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 08-11-2009, 11:11 AM
Elite Member
 
Posts: 360
Default Add attributes to multiple existing users?

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

Quote:
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.
Reply With Quote
  #2 (permalink)  
Old 08-11-2009, 11:37 AM
Elite Member
 
Posts: 360
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!
Reply With Quote
  #3 (permalink)  
Old 08-13-2009, 09:17 AM
Elite Member
 
Posts: 360
Default

Uhmm...? I guess it's not possible...?
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.