Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 1.0.0
    • Component/s: studio-ldapbrowser
    • Labels:
      None

      Description

      When creating a new person, with a userPassword, if I select plainText, the password is shown in the password Preview box. This is bad.

        Activity

        Hide
        Stefan Seelmann added a comment -

        Lets hide the password by default and add a checkbox to unhide it, ok?

        Show
        Stefan Seelmann added a comment - Lets hide the password by default and add a checkbox to unhide it, ok?
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Hi Stefan,

        I did a similar thing in the Apache DS Configuration Plugin.

        Here's the corresponding code:
        -----------------------------
        // Password
        toolkit.createLabel( client, "Password:" );
        passwordText = toolkit.createText( client, "" );
        passwordText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
        passwordText.setEchoChar( '\u2022' );

        // Show Password
        toolkit.createLabel( client, "" );
        showPasswordCheckbox = toolkit.createButton( client, "Show password", SWT.CHECK );
        showPasswordCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
        showPasswordCheckbox.setSelection( false );
        showPasswordCheckbox.addSelectionListener( new SelectionAdapter()
        {
        public void widgetSelected( SelectionEvent e )
        {
        if ( showPasswordCheckbox.getSelection() )

        { passwordText.setEchoChar( '\0' ); }

        else

        { passwordText.setEchoChar( '\u2022' ); }

        }
        } );
        -----------------------------

        Maybe it can be helpful for you.

        Show
        Pierre-Arnaud Marcelot added a comment - Hi Stefan, I did a similar thing in the Apache DS Configuration Plugin. Here's the corresponding code: ----------------------------- // Password toolkit.createLabel( client, "Password:" ); passwordText = toolkit.createText( client, "" ); passwordText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); passwordText.setEchoChar( '\u2022' ); // Show Password toolkit.createLabel( client, "" ); showPasswordCheckbox = toolkit.createButton( client, "Show password", SWT.CHECK ); showPasswordCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) ); showPasswordCheckbox.setSelection( false ); showPasswordCheckbox.addSelectionListener( new SelectionAdapter() { public void widgetSelected( SelectionEvent e ) { if ( showPasswordCheckbox.getSelection() ) { passwordText.setEchoChar( '\0' ); } else { passwordText.setEchoChar( '\u2022' ); } } } ); ----------------------------- Maybe it can be helpful for you.
        Show
        Stefan Seelmann added a comment - Fixed in http://svn.apache.org/viewvc?view=rev&revision=548045

          People

          • Assignee:
            Stefan Seelmann
            Reporter:
            Emmanuel Lecharny
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development