473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Set Max Password Age

Is it possible to set the max password age of a domain using C# &
DirectoryServices?

Thanks.
Nov 22 '05 #1
3 2817
Yes. The primary issue is that you need to create the appropriate
IADsLargeInteger object with the correct data in it to set the 8 byte
integer value.

http://msdn.microsoft.com/library/de...asp?frame=true

Are you sure this is worth coding? This value changes pretty infrequently
and it typically better done in other ways. I usually say the same thing
about extending the schema with LDAP calls instead of just using LDIF. It
is rarely worth coding.

Joe K.

"lysrian" <ly*****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
Is it possible to set the max password age of a domain using C# &
DirectoryServices?

Thanks.

Nov 22 '05 #2
Yes. The primary issue is that you need to create the appropriate
IADsLargeInteger object with the correct data in it to set the 8 byte
integer value.

http://msdn.microsoft.com/library/de...asp?frame=true

Are you sure this is worth coding? This value changes pretty infrequently
and it typically better done in other ways. I usually say the same thing
about extending the schema with LDAP calls instead of just using LDIF. It
is rarely worth coding.

Joe K.

"lysrian" <ly*****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
Is it possible to set the max password age of a domain using C# &
DirectoryServices?

Thanks.

Nov 22 '05 #3
Thanks.

As for why?...Don't ask, just consider it a weird customer requirement that
is inflexible.

"Joe Kaplan (MVP - ADSI)" wrote:
Yes. The primary issue is that you need to create the appropriate
IADsLargeInteger object with the correct data in it to set the 8 byte
integer value.

http://msdn.microsoft.com/library/de...asp?frame=true

Are you sure this is worth coding? This value changes pretty infrequently
and it typically better done in other ways. I usually say the same thing
about extending the schema with LDAP calls instead of just using LDIF. It
is rarely worth coding.

Joe K.

"lysrian" <ly*****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
Is it possible to set the max password age of a domain using C# &
DirectoryServices?

Thanks.


Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: John Victor | last post by:
In my mysql database, I've stored all the passwords using the PASSWORD() function. Now I'm running a test and need to compare the password in my php document to that saved in the database. I used...
3
by: arktikturtle | last post by:
Hi! I'm looking for a way to validate a password within PL/SQL. I want to write CREATE PROCEDURE change_password(old_password IN VARCHAR2) IS BEGIN -- check if old_password is correct... but...
2
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
10
by: Fabrizio | last post by:
(Sorry for the crosspost, but I really don't know which is the right newsgroup!) Hi all, I try to change the password to a user that as to change the password at first logon: try {
6
by: Andre Ranieri | last post by:
I'm trying to create a login page for customers to log into our corporate website, our presidents naturally wants the user and password fields to populate from a cookie so the customer doesn't have...
5
by: scorpion53061 | last post by:
is it possible to set the database password that you can set in access for a database from a vb.net application?
26
by: David Garamond | last post by:
I read that the password hash in pg_shadow is salted with username. Is this still the case? If so, since probably 99% of all PostgreSQL has "postgres" as the superuser name, wouldn't it be better...
8
by: Katash | last post by:
Hello, I am new to PHP and am working on a login system for my site, currently supplied passwords are passed to MySQL and stored as md5 hashes, my question is :- seeing as md5 is 1 way only what...
3
by: julianmoors | last post by:
Hey, Currently I'm writing a VB.NET/1.1 app and I need to mask the input for the password field. Does anyone know how to do this in VB? I've seen a C# example, but wouldn't know how to convert...
2
by: DarthPeePee | last post by:
Hello everyone. I am working on a Password Strength Meter and I am running into 1 problem that I would like to fix. When pressing the "Clear Password & Try Again" button, the password clears...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.