This commit is contained in:
Zhang Huangbin 2018-11-15 09:42:17 +08:00
parent 66aa7ebe07
commit 6db3c90a52
2 changed files with 27 additions and 12 deletions

View File

@ -68,7 +68,7 @@ Now restart OpenLDAP service.
### Add missing settings in SOGo config file ### Add missing settings in SOGo config file
SOGo needs 2 parameters to understand which LDAP attributes it should query SOGo needs 2 parameters to understand which LDAP attributes it should check
to understand the resources: to understand the resources:
* `KindFieldName`: specify the LDAP attribute name which stores resource type. * `KindFieldName`: specify the LDAP attribute name which stores resource type.
@ -77,7 +77,7 @@ to understand the resources:
"group", "location" or "thing". If thats the case, SOGo will consider the "group", "location" or "thing". If thats the case, SOGo will consider the
returned entry to be a resource. returned entry to be a resource.
* `MultipleBookingsFieldName`: specify the LDAP attribute name ewhich stores * `MultipleBookingsFieldName`: specify the LDAP attribute name which stores
multiple booking type. multiple booking type.
The value of this LDAP attribute is the maximum number of concurrent events The value of this LDAP attribute is the maximum number of concurrent events
@ -145,7 +145,6 @@ Save your change and quit ldapvi (just like quitting vi/vim text editor).
* Login to SOGo webmail as `meetingroom@example.com`, then click the `Calendar` * Login to SOGo webmail as `meetingroom@example.com`, then click the `Calendar`
icon on top-right corner. icon on top-right corner.
* Click the three-dot icon beside `Personal Calendar`, and choose `Sharing...`. * Click the three-dot icon beside `Personal Calendar`, and choose `Sharing...`.
* In the popup modal window, click `Any Authenticated User`, set values of * In the popup modal window, click `Any Authenticated User`, set values of
options `Public`, `Confidential` and `Private` to `View the Date & Time`. options `Public`, `Confidential` and `Private` to `View the Date & Time`.
@ -153,6 +152,17 @@ Save your change and quit ldapvi (just like quitting vi/vim text editor).
![](./images/sogo/resources/access-rights.png){: width=600px } ![](./images/sogo/resources/access-rights.png){: width=600px }
Tip: If you don't want to set the access rights from web UI, you can run
command below instead:
```
sogo-tool manage-acl \
add meetingroom@example.com \
'Calendar/personal' \
'<default>' \
'["PublicDAndTViewer", "ConfidentialDAndTViewer", "PrivateDAndTViewer"]'
```
* Now logout of SOGo webmail, re-login as a different user under same domain. * Now logout of SOGo webmail, re-login as a different user under same domain.
* Create a new testing event, invite `meetingroom@example.com` as attendee. * Create a new testing event, invite `meetingroom@example.com` as attendee.
* Create second testing event in same day as first event, invite * Create second testing event in same day as first event, invite

View File

@ -88,7 +88,7 @@ include /etc/openldap/schema/calresource.schema
required for new attribute names.</p> required for new attribute names.</p>
<p>Now restart OpenLDAP service.</p> <p>Now restart OpenLDAP service.</p>
<h3 id="add-missing-settings-in-sogo-config-file">Add missing settings in SOGo config file</h3> <h3 id="add-missing-settings-in-sogo-config-file">Add missing settings in SOGo config file</h3>
<p>SOGo needs 2 parameters to understand which LDAP attributes it should query <p>SOGo needs 2 parameters to understand which LDAP attributes it should check
to understand the resources:</p> to understand the resources:</p>
<ul> <ul>
<li> <li>
@ -98,7 +98,7 @@ to understand the resources:</p>
returned entry to be a resource.</p> returned entry to be a resource.</p>
</li> </li>
<li> <li>
<p><code>MultipleBookingsFieldName</code>: specify the LDAP attribute name ewhich stores <p><code>MultipleBookingsFieldName</code>: specify the LDAP attribute name which stores
multiple booking type.</p> multiple booking type.</p>
<p>The value of this LDAP attribute is the maximum number of concurrent events <p>The value of this LDAP attribute is the maximum number of concurrent events
to which a resource can be part of at any point in time.</p> to which a resource can be part of at any point in time.</p>
@ -161,18 +161,23 @@ MultipleBookings: 1
<p>Save your change and quit ldapvi (just like quitting vi/vim text editor).</p> <p>Save your change and quit ldapvi (just like quitting vi/vim text editor).</p>
<ul> <ul>
<li> <li>Login to SOGo webmail as <code>meetingroom@example.com</code>, then click the <code>Calendar</code>
<p>Login to SOGo webmail as <code>meetingroom@example.com</code>, then click the <code>Calendar</code> icon on top-right corner.</li>
icon on top-right corner.</p> <li>Click the three-dot icon beside <code>Personal Calendar</code>, and choose <code>Sharing...</code>.</li>
</li>
<li>
<p>Click the three-dot icon beside <code>Personal Calendar</code>, and choose <code>Sharing...</code>.</p>
</li>
<li>In the popup modal window, click <code>Any Authenticated User</code>, set values of <li>In the popup modal window, click <code>Any Authenticated User</code>, set values of
options <code>Public</code>, <code>Confidential</code> and <code>Private</code> to <code>View the Date &amp; Time</code>. options <code>Public</code>, <code>Confidential</code> and <code>Private</code> to <code>View the Date &amp; Time</code>.
Save your changes.</li> Save your changes.</li>
</ul> </ul>
<p><img alt="" src="./images/sogo/resources/access-rights.png" width="600px" /></p> <p><img alt="" src="./images/sogo/resources/access-rights.png" width="600px" /></p>
<p>Tip: If you don't want to set the access rights from web UI, you can run
command below instead:</p>
<pre><code>sogo-tool manage-acl \
add meetingroom@example.com \
'Calendar/personal' \
'&lt;default&gt;' \
'[&quot;PublicDAndTViewer&quot;, &quot;ConfidentialDAndTViewer&quot;, &quot;PrivateDAndTViewer&quot;]'
</code></pre>
<ul> <ul>
<li>Now logout of SOGo webmail, re-login as a different user under same domain.</li> <li>Now logout of SOGo webmail, re-login as a different user under same domain.</li>
<li>Create a new testing event, invite <code>meetingroom@example.com</code> as attendee.</li> <li>Create a new testing event, invite <code>meetingroom@example.com</code> as attendee.</li>