If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Access maxPwdAge through ADSI

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-05-04, 16:14
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Access maxPwdAge through ADSI

I've been attempting to access the maxPwdAge attribute in Active Directory and consistantly receive the error: 0x8007054B (no message, just the error code). Using the same code, if I try to access another attribute of another object (such as my own user object), I can get the value.

This is a small snippet of the code:

Set objDomain = oADsNamespace.OpenDSObject("LDAP://" & strADServerDN, strADUserID, strADPassword, 0)
Set objMaxPwdAge = objDomain.get("maxPwdAge")

I have also tried:
Set objMaxPwdAge = objDomain.MaxPwdAge

strADUserID is the ID I'm using to open the object
strADPassword is the password for the above ID
strADServerDN is the fully qualified context to the root object.

When I change the strADServerDN to point to another object, I can retrieve the values of other attributes with the same code. It just seems to be with the root object.

Has anyone experienced a similar issue with ASP? Thanks!
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On