Re: Password policy
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 10/01/05
- Next message: David Cross [MS]: "Re: Validate certificate expiration"
- Previous message: keydet89: "parsing REG_BINARY Wireless data"
- Next in thread: Joe Richards [MVP]: "Re: Password policy"
- Maybe reply: Joe Richards [MVP]: "Re: Password policy"
- Reply: Tom: "Re: Password policy"
- Maybe reply: Joe Richards [MVP]: "Re: Password policy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 30 Sep 2005 21:52:11 -0700
This is hard to do in general because custom password filters can be
installed that might make it very difficult for you to programmatically
determine if a particular password will be accepted. However, if there is
no custom filter, you can query the domain root object via LDAP to get the
min length and complexity flag settings. The attributes are minPwdLength
and pwdProperties. The enum values for pwdProperties are defined in the
MSDN AD schema docs. I'm not sure if you need more help than that.
Another approach you might consider would be to paramaterize some stuff that
can be set via web.config and let the admin for the app configure that
behavior instead of trying to determine it programmatically. That might be
a lot easier.
Joe K.
"Tom" <Tom@discussions.microsoft.com> wrote in message
news:33F83166-DBA8-489F-B6A7-4BBE3526C935@microsoft.com...
> have collection of web parts on my Share point (WS2003 + SPS2003) site and
> one of these sites contains formula for filling user data (name, login,
> unit,
> and password).
>
> When I save this user data into active directory, filled password is
> verified if is correct and if password matches password policies (One
> upper
> letter, number..), but I have these policies hard coded in my source code.
>
>
>
> But I need to check password policies on dependency of current server
> password policies settings, but I don't know how to do it. I need to
> compare,
> if filled password matches server policies of current server.
>
>
>
> P.S. My source code is written in C#.
>
> Thanks for any comment !!!
- Next message: David Cross [MS]: "Re: Validate certificate expiration"
- Previous message: keydet89: "parsing REG_BINARY Wireless data"
- Next in thread: Joe Richards [MVP]: "Re: Password policy"
- Maybe reply: Joe Richards [MVP]: "Re: Password policy"
- Reply: Tom: "Re: Password policy"
- Maybe reply: Joe Richards [MVP]: "Re: Password policy"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|