1 .\" OpenChange Project Tools Man Pages
3 .\" This manpage is Copyright (C) 2007 Julien Kerihuel;
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the OpenChange and Samba4 libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Process this file with
26 .\" groff -man -Tascii openchangepfadmin.1
28 .TH OPENCHANGEPFADMIN 1 2007-11-14 "OpenChange libmapi 0.8" "OpenChange Users' Manual"
31 openchangepfadmin \- Exchange users and Public Folder administration tool
35 openchangepfadmin [-?] [-?|--help] [--usage] [-f|--database PATH] [-p|--profile PROFILE]
36 [-P|--password PASSWORD] [--apassword=PASSWORD] [--adesc=DESCRIPTION] [--acomment=COMMENT]
37 [--afullname=NAME] [--list] [--mkdir] [--rmdir] [--comment=COMMENT] [--dirclass=CLASS]
38 [--adduser=USERNAME] [--rmuser=USERNAME] [--addright=RIGHT] [--rmright] [--modright=RIGHT]
39 [--debuglevel=LEVEL] [--dump-data] [--folder=FOLDER] [--username=USERNAME]
43 openchangepfadmin is a administrative command line tool designed to
44 facilitate user management related operations (create, delete, modify)
45 on a remote Exchange server and manage public folder store and
52 Create a Exchange user with the username specified by USERNAME
56 Delete the Exchange user account specified by USERNAME
60 List Public Folder hierarchy (IPM_SUBTREE)
64 Create a folder in the Public Folder store
68 Delete a folder in the Public Folder store
72 Add permission and roles for a user on a Public Folder directory.
76 Modify permissions and roles for a user on a Public Folder directory
80 Delete permissions and roles for a specific user
86 .B --database=DATABASE
89 Set the MAPI profile database. If no database is specified, then
90 openchangeclient tries to load the default one:
91 .B $HOME/.openchange/profiles.ldb
97 Set the profile to use. If a profile is not specified, and one of the
98 profiles has been set as the default in the profile database (for
99 example, using mapiprofile -S), then that default profile will be
106 Set the password for the profile to use. This can be omitted if the
107 password is stored in the profile.
110 .B --apassword=PASSWORD
111 Define the password to set for the user specified with --adduser. If
112 no password is explicitely supplied, openchangepfadmin will arbitrary
116 .B --adesc=DESCRIPTION
117 This command can only be used with --adduser and specifies a
118 description for this account
121 .B --acomment=COMMENT
122 This command can only be used with --adduser and specifies a comment
127 This command can only be used with --adduser and specifies the user
128 full name for this account.
132 This command can only be used with --mkdir and specifies a comment for
137 This command can only be used with --mkdir and specifies the container
138 class of the directory we want to create. Possible values are:
139 IPF.Appointment, IPF.Contact, IPF.Journal, IPF.Note, IPF.StickyNote,
144 This command can only be used with --addright, --modright and
145 --rmright. Specify the folder where permissions and roles have to be
149 .B --username=USERNAME
150 This command can only be used with --addright, --modright and
151 --rmright. Specify the username we want to change permissions and
156 Dump the hex data. This is only required for debugging or educational purposes.
159 .B --debuglevel LEVEL
168 openchangepfadmin --adduser=linuxowner --apassword=linuxowner \\
169 --adesc="Linux Owner Test account" \\
170 --afullname="Linux Owner"
171 mapiadmin_user_add : MAPI_E_SUCCESS (0x0)
176 Creates a user account with username and password set to linuxowner.
180 openchangepfadmin --rmuser=linuxowner
181 mapiadmin_user_del : MAPI_E_SUCCESS (0x0)
184 .B Create Public Folder:
186 openchangepfadmin --mkdir --folder=public_events --dirclass=IPF.Appointment
189 Creates a folder in the Public Folder store named public_events with a
190 container class set to Appointment. This folder will display calendar
193 .B Delete Public Folder:
195 openchangepfadmin --rmdir --folder=public_events
198 .B List Public Folder hierarchy:
200 openchangepfadmin --list
205 openchangepfadmin --username=linuxowner --folder=public_events \\
207 Permission RoleOwner added for linuxowner on folder public_events
212 openchangepfadmin --username=Anonymous --folder=public_events \\
214 Permission changed to RoleNone for Anonymous on folder appointment
217 Note that you can only change permissions for a user already listed in
221 Permissions and Roles possible values are:
237 RightsCreateSubfolders
264 AddUserPermission, ModifyUserPermission, RemoveUserPermission
267 Julien Kerihuel <j.kerihuel at openchange dot org>