Accessing MaxPwdAge in Active Directory using .net
Hi,
I am Accessing Active Directory of Authentication.
I Could able to read all the Fields in the Active directory related to user account. And also able to set the Password using SetPassword.
But when Accessing MaxPwdAge it returning as System.__ComObject.
How can i determine the value(or actual data) thru this.
I am using LDAP.
Is there any other way(or easy way) of accessing MaxpwdAge in active directory.
Please check the below code. Few fields returning values few of them returning as System.__ComObject
Dim objRootDSE As New DirectoryEntry("LDAP://192.168.1.19")
Dim strAttrName As String
Dim objValue As Object
For Each strAttrName In objRootDSE.Properties.PropertyNames
For Each objValue In objRootDSE.Properties(strAttrName)
MsgBox(strAttrName & " : " & objValue.ToString)
Next objValue
Next strAttrName
Please help me. Thank you
|