Results 1 to 9 of 9

Thread: User name problem

  1. #1
    lfasci is offline Trained Alumni
    Join Date
    Jul 2006
    Location
    Pisa
    Posts
    134
    Rep Power
    8

    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

  2. #2
    rema is offline Member
    Join Date
    Nov 2006
    Posts
    13
    Rep Power
    8

    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

  3. #3
    lfasci is offline Trained Alumni
    Join Date
    Jul 2006
    Location
    Pisa
    Posts
    134
    Rep Power
    8

    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

  4. #4
    rema is offline Member
    Join Date
    Nov 2006
    Posts
    13
    Rep Power
    8

    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

  5. #5
    rema is offline Member
    Join Date
    Nov 2006
    Posts
    13
    Rep Power
    8

    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

  6. #6
    rema is offline Member
    Join Date
    Nov 2006
    Posts
    13
    Rep Power
    8

    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

  7. #7
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    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!

  8. #8
    rema is offline Member
    Join Date
    Nov 2006
    Posts
    13
    Rep Power
    8

    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.

  9. #9
    kathi is offline Starter Member
    Join Date
    Mar 2007
    Posts
    2
    Rep Power
    8

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  3. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 10:34 PM
  4. Services stopped working
    By lilwong in forum Administrators
    Replies: 4
    Last Post: 08-15-2006, 09:19 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •