Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
unmigrated-wiki-markup
Warning

Document is in progress

This

...

document

...

explains

...

about

...

how

...

to

...

make

...

system

...

more

...

secure

...

from

...

unauthorized

...

access.

...

To

...

do

...

so,

...

Configure

...

the

...

system

...

by

...

making

...

complicated

...

password

...

policies.

...

It

...

forces

...

the

...

user

...

to

...

enter

...

his

...

password

...

in

...

per-defined

...

pattern.

...

If

...

pattern

...

matches

...

then

...

it

...

executed

...

well,

...

if

...

not

...

then

...

it

...

will

...

throw

...

an

...

error

...

message

...

suggesting

...

user

...

about

...

correct

...

pattern.

...

Functional behavior-

  • Insist user to provide a stronger login password.
  • User's password is required to match to a pre-defined Pattern.
  • Password pattern is defined in properties file (security.properties)

...

  • so

...

  • that

...

  • it

...

  • can

...

  • be

...

  • derived

...

  • by

...

  • company's

...

  • administrator.

...

  • Password

...

  • pattern

...

  • can

...

  • change

...

  • as

...

  • per

...

  • company's

...

  • policy.

...

  • System

...

  • validate

...

  • password

...

  • pattern

...

  • in

...

  • following

...

  • two

...

  • scenario

...

  • -

...

    • New

...

    • user

...

    • creation

...

    • User

...

    • update

...

    • password.

...

How to configure-

To configure the pattern driven password system following simple configuration is required-

  1. Proprieties file configuration - ofbiz/trunk/framework/security/config/security.properties

...

  1. Field

...

  1. name:

...

  1. security.login.password.pattern

...

  1. :

...

  1. pattern

...

  1. string

...

  1. to

...

  1. be

...

  1. provide

...

  1. here.

...


  1. A

...

  1. password

...

  1. pattern

...

  1. string

...

  1. is

...

  1. required.

...

    1. Default

...

    1. pattern

...

    1. string

...

    1. -
      Code Block
       \^.*(?=.{5,}).*$

...

    1.   
      Validation

...

    1. :

...

    1. minimum

...

    1. password

...

    1. length

...

    1. 5

...

    1. chars.

...

    1. An

...

    1. Example

...

    1. -

...

    1. A

...

    1. sample

...

    1. pattern

...

    1. string

...

    1. for

...

    1. complicated

...

    1. password

...


    1. Pattern

...

    1. String

...

    1. -
      Code Block
       \^.*(?=.{5,})(?=.*\[a-zA-Z\])(?=.*\[\!@#$%^&*\]).*$

...

    1.  
      Validation

...

    1. :

...

    1. Password

...

    1. must

...

    1. be

...

    1. 5

...

    1. characters

...

    1. long,

...

    1. Only

...

    1. contains

...

    1. alphanumeric(number

...

    1. optional)

...

    1. and

...

    1. at

...

    1. least

...

    1. one

...

    1. from

...

    1. following

...

    1. special

...

    1. characters:

...

    1. !@#$%^&*.

...

  1. Alert

...

  1. message

...

  1. to

...

  1. be

...

  1. display

...

  1. at

...

  1. UI

...


  1. Field

...

  1. name

...

  1. :

...

  1. security.login.password.pattern.description

...


  1. Message

...

  1. text

...

  1. should

...

  1. be

...

  1. a

...

  1. custom

...

  1. UI

...

  1. label

...

  1. string

...

  1. to

...

  1. be

...

  1. provided

...

  1. as

...

  1. per

...

  1. pattern

...

  1. description.

...


  1. OR

...


  1. A

...

  1. custom

...

  1. error

...

  1. message

...

  1. can

...

  1. be

...

  1. go

...

  1. into

...

  1. following

...

  1. UI

...

  1. label

...

  1. "loginservices.password.pattern.errmsg"

...

How to Validate-

Password pattern validation can be done in following two ways -

  1. New User Registration
    After above configuration done, register for a new user through ecommerce or partymgr application, internally system will check given password with password pattern. If it matches then user created successfully otherwise it will return custom error message text specified above.
  2. Update profile - Updating password-
    When user tries to update existing password then for new password system will validate for pattern matching.