AD password policy in Forms auth against AD

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default AD password policy in Forms auth against AD

    Hey!

    I've successfully followed Microsofts example on how to use Forms
    authentication with Active Directory (from the "Building Secure ASP.NET
    Applications" How To-section). However, I would very much like to use AD's
    password policy features, specifically:

    1. I want the user to get a warning e.g. two weeks before his/hers password
    expires

    2. I want the user to be able to change password (assuming the new password
    meets the requirements set by the password policy)

    3. If the password has expired, I want the user to still be able to log in,
    but forced to change password in order to continue. (If this isn't possible
    with AD, I could set the expiration time to a year, and force the user to
    change password if there's less than 300 days left, in effect giving the
    user two months password expiration with another 300 days before the user is
    disabled/blocked).

    Any ideas and/or suggestions? This will be used on a portal with several
    hundred customers, where all customers will be stored in a AD (in their own
    "External users" OU).

    Thanks!


    Regards,
    Nils Magnus Englund


    Nils Magnus Englund Guest

  2. Similar Questions and Discussions

    1. Forms Auth Info passed to Windows Auth?
      The requirement is to build an ASP.Net intranet application, so external users can log in to the main web portal via forms authentication, using...
    2. FORMS AUTH HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      I'm using forms Auth! Why am i getting the error:-I HAVE DONE EVRYTHING NEEDED! Error authenticating. Error obtaining group names. The specified...
    3. Help with forms auth
      Hi, I am using forms Auth on my WEB APP. I am checking the credentials in sql server. When a user request any page other than login.aspx they get...
    4. Configuring Windows Auth & Forms Auth in Asp.Net
      Configuring Windows Auth & Forms Auth in Asp.Ne Hi, I've configured a web app to use windows authentication and also set up two separate...
    5. Windows Auth, MUST change password
      If a user's password expires or an admin otherwise set the "user must change password" flag it appears that a user can no longer access the web...
  3. #2

    Default Re: AD password policy in Forms auth against AD

    This is going to be a lot of work if you plan to do this via LDAP. You'll
    need a service account that can access the user account to read all of their
    attributes and you'll need to learn how to determine all of the various
    things that indicate these states. AD doesn't tell you why a bind failed
    (due to lockout, disabled, expired, user must change password, etc. vs.
    simple bad password), so you have to figure this out for yourself.

    Joe K.

    "Nils Magnus Englund" <nils.magnus.englund@orkfin.no> wrote in message
    news:eDXKeXC5EHA.1188@tk2msftngp13.phx.gbl...
    > Hey!
    >
    > I've successfully followed Microsofts example on how to use Forms
    > authentication with Active Directory (from the "Building Secure ASP.NET
    > Applications" How To-section). However, I would very much like to use AD's
    > password policy features, specifically:
    >
    > 1. I want the user to get a warning e.g. two weeks before his/hers
    > password expires
    >
    > 2. I want the user to be able to change password (assuming the new
    > password meets the requirements set by the password policy)
    >
    > 3. If the password has expired, I want the user to still be able to log
    > in, but forced to change password in order to continue. (If this isn't
    > possible with AD, I could set the expiration time to a year, and force the
    > user to change password if there's less than 300 days left, in effect
    > giving the user two months password expiration with another 300 days
    > before the user is disabled/blocked).
    >
    > Any ideas and/or suggestions? This will be used on a portal with several
    > hundred customers, where all customers will be stored in a AD (in their
    > own "External users" OU).
    >
    > Thanks!
    >
    >
    > Regards,
    > Nils Magnus Englund
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  4. #3

    Default Re: AD password policy in Forms auth against AD

    Oh, that wasn't good news :(

    Do you think it's a good idea to do it like this, or perhaps I should find
    another method? I'm trying to avoid using any other storage medium than AD.


    Regards,
    Nils Magnus Englund


    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:ecCz$WF5EHA.2676@TK2MSFTNGP12.phx.gbl...
    > This is going to be a lot of work if you plan to do this via LDAP. You'll
    > need a service account that can access the user account to read all of
    > their attributes and you'll need to learn how to determine all of the
    > various things that indicate these states. AD doesn't tell you why a bind
    > failed (due to lockout, disabled, expired, user must change password, etc.
    > vs. simple bad password), so you have to figure this out for yourself.
    >
    > Joe K.
    >
    > "Nils Magnus Englund" <nils.magnus.englund@orkfin.no> wrote in message
    > news:eDXKeXC5EHA.1188@tk2msftngp13.phx.gbl...
    >> Hey!
    >>
    >> I've successfully followed Microsofts example on how to use Forms
    >> authentication with Active Directory (from the "Building Secure ASP.NET
    >> Applications" How To-section). However, I would very much like to use
    >> AD's password policy features, specifically:
    >>
    >> 1. I want the user to get a warning e.g. two weeks before his/hers
    >> password expires
    >>
    >> 2. I want the user to be able to change password (assuming the new
    >> password meets the requirements set by the password policy)
    >>
    >> 3. If the password has expired, I want the user to still be able to log
    >> in, but forced to change password in order to continue. (If this isn't
    >> possible with AD, I could set the expiration time to a year, and force
    >> the user to change password if there's less than 300 days left, in effect
    >> giving the user two months password expiration with another 300 days
    >> before the user is disabled/blocked).
    >>
    >> Any ideas and/or suggestions? This will be used on a portal with several
    >> hundred customers, where all customers will be stored in a AD (in their
    >> own "External users" OU).
    >>
    >> Thanks!
    >>
    >>
    >> Regards,
    >> Nils Magnus Englund
    >>
    >
    >

    Nils Magnus Englund Guest

  5. #4

    Default Re: AD password policy in Forms auth against AD

    You might look into the built in facility with IIS6 to do some password
    management stuff. There is some sample application that comes with it that
    handles a lot of these features. I'm not actually quite sure how it works
    and haven't used it personally, but it is probably worth looking into.

    The other stuff on you list you can definitely accomplish except using LDAP
    to change password when the password has expired or the user is in "password
    must be changed at next logon" state. It just takes some work.

    I don't necessarily see a problem with using AD for this, although there is
    a good point to be made from a security standpoint of putting these users in
    a separate forest and setting up a one-way trust. You might also be able to
    use ADAM to store these users. That will depend on the application services
    you need to provide for them.

    Joe K.

    "Nils Magnus Englund" <nils.magnus.englund@orkfin.no> wrote in message
    news:%23OXPCKQ5EHA.2876@TK2MSFTNGP12.phx.gbl...
    > Oh, that wasn't good news :(
    >
    > Do you think it's a good idea to do it like this, or perhaps I should find
    > another method? I'm trying to avoid using any other storage medium than
    > AD.
    >
    >
    > Regards,
    > Nils Magnus Englund
    >
    >
    > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    > in message news:ecCz$WF5EHA.2676@TK2MSFTNGP12.phx.gbl...
    >> This is going to be a lot of work if you plan to do this via LDAP.
    >> You'll need a service account that can access the user account to read
    >> all of their attributes and you'll need to learn how to determine all of
    >> the various things that indicate these states. AD doesn't tell you why a
    >> bind failed (due to lockout, disabled, expired, user must change
    >> password, etc. vs. simple bad password), so you have to figure this out
    >> for yourself.
    >>
    >> Joe K.
    >>
    >> "Nils Magnus Englund" <nils.magnus.englund@orkfin.no> wrote in message
    >> news:eDXKeXC5EHA.1188@tk2msftngp13.phx.gbl...
    >>> Hey!
    >>>
    >>> I've successfully followed Microsofts example on how to use Forms
    >>> authentication with Active Directory (from the "Building Secure ASP.NET
    >>> Applications" How To-section). However, I would very much like to use
    >>> AD's password policy features, specifically:
    >>>
    >>> 1. I want the user to get a warning e.g. two weeks before his/hers
    >>> password expires
    >>>
    >>> 2. I want the user to be able to change password (assuming the new
    >>> password meets the requirements set by the password policy)
    >>>
    >>> 3. If the password has expired, I want the user to still be able to log
    >>> in, but forced to change password in order to continue. (If this isn't
    >>> possible with AD, I could set the expiration time to a year, and force
    >>> the user to change password if there's less than 300 days left, in
    >>> effect giving the user two months password expiration with another 300
    >>> days before the user is disabled/blocked).
    >>>
    >>> Any ideas and/or suggestions? This will be used on a portal with several
    >>> hundred customers, where all customers will be stored in a AD (in their
    >>> own "External users" OU).
    >>>
    >>> Thanks!
    >>>
    >>>
    >>> Regards,
    >>> Nils Magnus Englund
    >>>
    >>
    >>
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139