~ubuntu-branches/debian/sid/openchange/sid

« back to all changes in this revision

Viewing changes to setup/openchange_newuser

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-04-12 20:07:57 UTC
  • mfrom: (11 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20120412200757-k933d9trljmxj1l4
Tags: 1:1.0-4
* openchangeserver: Add dependency on openchangeproxy.
* Rebuild against newer version of Samba 4.
* Use dpkg-buildflags.
* Migrate to Git, update Vcs-Git header.
* Switch to debhelper 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
                  help="Create the OpenChange user account")
45
45
parser.add_option("--mailbox", action="store_true", metavar="MAILBOX",
46
46
                  help="Create the OpenChange user mailbox")
47
 
parser.add_option("--mapistore", type="string", metavar="STORE",
48
 
                  help="The backend storage type to use (only for --mailbox)")
49
47
opts, args = parser.parse_args()
50
48
 
51
49
if len(args) == 0:
67
65
if opts.create == True:
68
66
        openchange.newuser(lp, creds, username=args[0])
69
67
 
70
 
backend = "fsocpf" #default
71
 
if opts.mapistore is not None:
72
 
        backend = opts.mapistore
73
 
 
74
68
if opts.mailbox == True:
75
 
        openchange.newmailbox(lp, username=args[0], firstorg=None, firstou=None, backend=backend)
 
69
        print "Mailbox provisioning is now performed automatically at user logon"
 
70