Blog Archives

Get maxPwdAge for a Domain in AD.

Get Domain level directory entry with username/password, get the property value for ‘maxPwdAge‘ (which would be System.__ComObject) Convert System.__ComObject to datetime/int. We have to use COM Interop Libraries for this one, ActiveDs.dll (you can find it on the web) For

Posted in Active Directory, C#

Extending the Active Directory User Schema

Active Directory user schema has enough properties/attributes to cover most user profile information, but in some cases , we might need to extend this schema to add our own custom attributes. Microsoft Active Directory provides this capability to customize the

Posted in Active Directory, Sharepoint 2010

AD property value data type is String or byte[]

I was trying to read a property value from the user schema of an Active Directory, the mystery is that the value data type sometimes comes as byte[] & sometimes as String. As much as I do not like it,

Posted in Active Directory