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

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 12-06-2006, 02:27 AM
Project Contributor
 
Posts: 127
Default User name problem

Hi

I instalalled 2 server A and B bot with ZCS 4.0.4 as described in the Zimbra OS Multi-Server Install pdf, users are splitted between the two servers.
I have a zimlet that uses the getUsername() function, but if the a user assigne to server B login to his server, the function returns the correct value, if it login to a server A and then is redirect to the server B the function returns a null value.

Is this a bug ?
Is there another way to retrieve the username ?

Thank you
Reply With Quote
  #2 (permalink)  
Old 03-02-2007, 06:08 AM
Member
 
Posts: 13
Default How to get the current username and password?

Hi,
Can you tell me the way and coding to get the current Username and password in zimlet.

I will be much thankful in advance.
Thanks a lot.




Quote:
Originally Posted by lfasci View Post
Hi

I instalalled 2 server A and B bot with ZCS 4.0.4 as described in the Zimbra OS Multi-Server Install pdf, users are splitted between the two servers.
I have a zimlet that uses the getUsername() function, but if the a user assigne to server B login to his server, the function returns the correct value, if it login to a server A and then is redirect to the server B the function returns a null value.

Is this a bug ?
Is there another way to retrieve the username ?

Thank you
Reply With Quote
  #3 (permalink)  
Old 03-02-2007, 06:31 AM
Project Contributor
 
Posts: 127
Default javascript code fragment

You can read a cookie but in multiple server configuration you lost it

I used the following code

myzimlet.prototype.getUsername =
function() {
return this.xmlObj()._appCtxt.get(ZmSetting.USERNAME);
};


Bye
__________________
http://www.seacom.it
Reply With Quote
  #4 (permalink)  
Old 03-03-2007, 04:06 AM
Member
 
Posts: 13
Wink Thanks

hi,
very thanks pa.
It worked well.
Thanks a lot


Quote:
Originally Posted by lfasci View Post
You can read a cookie but in multiple server configuration you lost it

I used the following code

myzimlet.prototype.getUsername =
function() {
return this.xmlObj()._appCtxt.get(ZmSetting.USERNAME);
};


Bye
Reply With Quote
  #5 (permalink)  
Old 03-03-2007, 06:41 AM
Member
 
Posts: 13
Default User id and password

Hi

Thanks for your immediate reply. it worked fine.

Whether we could get login password and other details using

this.xmlObj()._appCtxt.get() ;
We tried to retrieving password, but got null value.


Thanks in advance.

regards
rema
Reply With Quote
  #6 (permalink)  
Old 03-04-2007, 10:08 PM
Member
 
Posts: 13
Default seeking to get password

Hi,
you told me the way for getting the current UserName.
The code sent by u was very useful.
Similarly i need to get the current user's password.
Can you tell me the code and the way to proceed.



Quote:
Originally Posted by lfasci View Post
You can read a cookie but in multiple server configuration you lost it

I used the following code

myzimlet.prototype.getUsername =
function() {
return this.xmlObj()._appCtxt.get(ZmSetting.USERNAME);
};


Bye
Reply With Quote
  #7 (permalink)  
Old 03-04-2007, 11:06 PM
Zimbra Employee
 
Posts: 1,434
Default You're out of luck...

The user's cleartext password is not available to a zimlet, nor should it be.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #8 (permalink)  
Old 03-04-2007, 11:51 PM
Member
 
Posts: 13
Default password

hi,
We need to maintain the record for each seperate user in our site.
We are getting the information from our database and we need to display in zimbra.Since we are not able to get password, can you tell me any unique Id is used for each user and in what way they help our task.
thank you.






Quote:
Originally Posted by dkarp View Post
The user's cleartext password is not available to a zimlet, nor should it be.
Reply With Quote
  #9 (permalink)  
Old 03-07-2007, 04:43 AM
Starter Member
 
Posts: 2
Default How to write events for the buttons in the editor props

Hi,
we need to write the events on clicking the ok button in the editor props.
For example,
this.createPropertyeditor(); displays an editor with ok and cancel button. onclicking the ok button we need to handle some events.
In what way we can do this?
could you please give us the code and the way to proceed.

thanks
karthika






Quote:
Originally Posted by dkarp View Post
The user's cleartext password is not available to a zimlet, nor should it be.

Last edited by kathi; 03-07-2007 at 04:57 AM..
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.