Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

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 03-31-2011, 02:41 AM
Starter Member
 
Posts: 1
Default Welcoming script

Can zimbra generate an automatic welcoming screen to all its firts time users when they log in??
Just like other mailing system i think it is very important.

lisa
Reply With Quote
  #2 (permalink)  
Old 02-29-2012, 07:14 PM
Active Member
 
Posts: 32
Default

Quote:
Originally Posted by lisasali View Post
Can zimbra generate an automatic welcoming screen to all its firts time users when they log in??
We've already done this by a zimlet.

It's yet a bit hackish as it stores the data in the mailboxd node's local mysql database,
we probably should use LDAP instead. But it works quite well, eg. in a big international
bank.
Reply With Quote
  #3 (permalink)  
Old 03-01-2012, 01:52 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

Here is a simple example zimlet creating a welcome message that show up only the first time the user log in.

This use a zimlet user properties (stored in LDAP) to check if this is the first time the user log in.
Attached Files
File Type: zip zimlet_welcome.zip (953 Bytes, 5 views)

Last edited by tdesorbaix; 03-19-2012 at 10:21 AM..
Reply With Quote
  #4 (permalink)  
Old 03-01-2012, 04:25 AM
Active Member
 
Posts: 32
Default

Quote:
Originally Posted by tdesorbaix View Post
Here is a simple example zimlet creating a welcome message that show up only the first time the user log in :
Attachment 4988

This use a zimlet user properties (stored in LDAP) to check if this is the first time the user log in.
Are you sure, these properties you set on *client* side with the
Quote:
this.setUserProperty(...)
call are really written back to LDAP ?

I really doubt it, as it would be a big security hole.
Reply With Quote
  #5 (permalink)  
Old 03-01-2012, 05:44 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

If you have doubts, then just use an ldap explorer software and check your ldap.

The user preferences, including zimlets user preferences are in your LDAP.

Why do you think this is a big security hole?
Reply With Quote
  #6 (permalink)  
Old 03-01-2012, 06:10 AM
Active Member
 
Posts: 32
Default

Quote:
Originally Posted by tdesorbaix View Post
The user preferences, including zimlets user preferences are in your LDAP.
The question isn't whether they are store in LDAP, but whether the frontend
javascript code can simply overwrite them.

Quote:
Why do you think this is a big security hole?
Because the user then can arbitrarily change them at will.
Reply With Quote
  #7 (permalink)  
Old 03-01-2012, 06:11 AM
Active Member
 
Posts: 32
Default

By the way: did you already confirm that they're actually written back to LDAP when changing them this way ?
Reply With Quote
  #8 (permalink)  
Old 03-01-2012, 06:49 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

Of course the user can change them, since this is user preferences.

Also, you don't even need the javascript frontend.
The changes are made by a soap request (called by the javascript).
So you just need to make the correct soap request.

And yes, I confirm that this overwrite the values in ldap.
Reply With Quote
  #9 (permalink)  
Old 03-01-2012, 07:38 AM
Active Member
 
Posts: 32
Default

Quote:
Originally Posted by tdesorbaix View Post
Of course the user can change them, since this is user preferences.
Oh, that really *has* security impact in certain environments (not an unusual
customer requirement in our projects) users should not be allowed to change
certain user properties.

Do you know which things are stored there ?
Reply With Quote
  #10 (permalink)  
Old 03-01-2012, 08:05 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

It's not like the user can modify everything in the LDAP.
I use the word preferences instead of properties on purpose.

The values the user can modify are the values corresponding to the preferences you can find in the User Web Client preferences tab, and the zimlets user preferences.

As example, there is a user property to enable/disable the Calendar feature, but it can't be changed by the user, only the admins can change it.
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.