Password RegEx Check


i'm trying use regex validate password strength cisco ucs password. due complexity requirements i'm having bit more trouble expected. what's expected:

 if enable password strength check locally authenticated users, cisco ucs manager rejects password not meet following requirements:     must contain minimum of 8 characters , maximum of 64 characters.   must contain @ least 3 of following:   1) lower case letters   2) upper case letters   3) digits   4) special characters   must not contain character repeated more 3 times consecutively, such aaabbb.   must not identical username or reverse of username.   must pass password dictionary check. example, password must not based on standard dictionary word.   must not contain following symbols: $ (dollar sign), ? (question mark), , = (equals sign).   should not blank local user , admin accounts.

that comes this documentation , and appreciated.
thanks

adam

hi adam,

question: regex solid requirement?
i'd validate step step. that's lot simpler , reading (and fixing) afterwards lot simpler.

  • checking length laughably easy
  • you can 1-4 creating counter , increment each test passed.
  • consecutive repetitions need iterate on string, shouldn't complex.
  • comparing username simple one.
  • dictionary bit more of challenge (and forget doing in regex). maybe library it? or somehow hijack word spellchecker it.
  • forbidden symbols/letters simple detect, shouldn't problem.

cheers,
fred


there's no place 127.0.0.1



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL