You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org> on 2007/06/15 10:06:26 UTC

[jira] Commented: (DIRSTUDIO-73) Password appears in clear

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505082 ] 

Pierre-Arnaud Marcelot commented on DIRSTUDIO-73:
-------------------------------------------------

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. ;)

> Password appears in clear
> -------------------------
>
>                 Key: DIRSTUDIO-73
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-73
>             Project: Directory Studio
>          Issue Type: Bug
>          Components: studio-browser
>    Affects Versions: 0.8.0
>            Reporter: Emmanuel Lecharny
>            Assignee: Stefan Seelmann
>             Fix For: 0.9.0
>
>
> When creating a new person, with a userPassword, if I select plainText, the password is shown in the password Preview box. This is *bad*.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.