Results 1 to 6 of 6

Thread: Problems with ZMPROV command

  1. #1
    hsp896 is offline Junior Member
    Join Date
    Mar 2011
    Posts
    6
    Rep Power
    4

    Default Problems with ZMPROV command

    Hi,

    I'm having an strange problem. I use a *.sh file to update the accounts, aliases and distribution lists in my Zimbra installation. I created a little program in my main server to create a .sh file with new accounts, aliases, distribution lists and accounts to be removed. During test phase it has worked perfectly. I've done the movement of the file created manually, copying and pasting the contents of the file in the server where Zimbra is installed and when running it I haven't had a problem. Now, when preparing things to get a step forward, I made some scripts to include the .sh file in a rar file with password, and cron in server with zimbra downloads it, uncompress and execute the file, but now I get a problem, the sh file create accounts but when trying to create an alias or a distribution list I always get an error saying "ERROR: account.NO_SUCH_DOMAIN (no such domain:". I guess it's a problem in the file I create with the program, due to type of file, chars set, I don't know.

    If I get the text of the file when downloaded, that text giving problems, and copy/paste it in a sh created in the server it runs fine.

    Any help is welcome.

    regards

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,580
    Rep Power
    57

    Default

    I'm sorry but what you've posted doesn't make sense to me. If you're having a problem running the zmprov in a script then post the script so it can be reviewed.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    hsp896 is offline Junior Member
    Join Date
    Mar 2011
    Posts
    6
    Rep Power
    4

    Default ZMPROV code

    Hi,

    here the contents of .sh file

    zmprov ca john.doe@ghg2810.org 123443212 displayName john.doe
    zmprov cdl all@ghg2810.org
    zmprov adlm all@ghg2810.org john.doe@ghg2810.org
    zmprov aaa john.doe@ghg2810.org fi-aoc@ghg2810.org
    zmprov ca gustavo.hernandez@ghg2810.org 8899998899 displayName gustavo.hernandez
    zmprov adlm all@ghg2810.org gustavo.hernandez@ghg2810.org

    Only lines with create account are correcly executed. The rest give an error. Create Distribution List and add alias give the error I already wrote in previous post. Add account user to a distribution lists gives an error saying the distribution list doesn't exist, what's obvious.

    regards.

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,580
    Rep Power
    57

    Default

    Are you actually running these as the Zimbra user in the script? How are you becoming the Zimbra user? In isolation those instructions should work, where's the rest of the script?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    hsp896 is offline Junior Member
    Join Date
    Mar 2011
    Posts
    6
    Rep Power
    4

    Default Cont

    Hi,

    yes, it runs as zimbra user cause it's launched by Zimbra cron. The rest of the script is:

    first lines:
    #!/bin/bash

    No more lines. As I got errors, I reduced in the main server the exe program to create only these accounts to test, and with them I get the errors.

    regards.

  6. #6
    hsp896 is offline Junior Member
    Join Date
    Mar 2011
    Posts
    6
    Rep Power
    4

    Default Solution found

    Hi,

    just found the solution. Using dos2unix it fix the problem with codes Windows insert and linux doesn't need.

    regards and thanks for your help.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. i made a mess 4.5.6 -> 4.5.10 to a future 5.0 FOSS
    By innercy in forum Installation
    Replies: 7
    Last Post: 01-09-2008, 07:05 PM
  2. Server platform change RH to Ubuntu issues
    By marke in forum Administrators
    Replies: 5
    Last Post: 11-07-2007, 12:27 PM
  3. Mysql error on install
    By tommygun in forum Installation
    Replies: 17
    Last Post: 05-29-2007, 09:29 PM
  4. ZIMBRA!!!!! Error zmcontrol status and others
    By orison in forum Installation
    Replies: 8
    Last Post: 02-03-2007, 07:52 PM
  5. Zimbra Upgrade FAILED Badly
    By kelley.ch in forum Installation
    Replies: 1
    Last Post: 09-04-2006, 04:10 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
  •