Hello, I'm trying to write a Sharepoint Web Part that allows the user to change his password. However, I always get a binding error when using DirectoryEntry. ...
Use ADSIEDIT for perfect path and you need to logon as a Administrator or account operator or try to pass these credentials in Directory Entry credentials. I...
This is probably a Kerberos delegation problem. My guess is that you are using IWA in IIS for your authentication method in SharePoint. Because of this, the...
I made the correction and I still get the same error. entry.Invoke("ChangePassword", New Object() {strCurrentPassword, strNewPassword}) "The directory property...
Do you know if your AD supports SSL LDAP? You can find out by trying to bind with ldp.exe using the SSL option on port 636 or by trying to bind is S.DS using...
I'm not sure if my AD supports SSL LDAP. How do I bind with ldp.exe? The Web applications are developed on a Windows XP Pro box and then deployed to Windows...
... password as ... anyway!) ... Then do ... default ... Hey thanks! I'm able to change password now doing what you said. However I have a weird problem, it...
Your domain policy typically restricts users in terms of how many times they can change their password during a given duration. You should ask your domain...
To test SSL LDAP with ldp.exe, do "Connection... | Connect...", put in 636 for he port and click the SSL checkbox. Put in whatever server name you want to...
I'm trying to determine how many days since a users password was last set. I get value of "127674836284428089" for the pwLastSet. According to the ADSI browser...
That's good that it supports SSL. That should make the password manipulation stuff easier to make work. It looks like your DC is a 2003 DC, but it is...
I am looking for some code that will query AD and return results to a spreadheet for processing. I can get the results I want by using dsquery/dsget at the dos...
Can some one point me in the correct direction for the following? I am building an App in Borland C++ that needs to update an extended feild in the Active...
Thanks for the info, nothing I found explained that it was read only. I have also been building from code that was written by someone else, so I will probably...
Yeah, I'm not sure if that is clearly documented anywhere. One of the things I never liked about the SQL syntax for LDAP queries that MS created is that it...
My stuff is in VB.NET not C#.NET Does anyone seeing anything wrong with this routine? I'm getting a "Specified cast is not valid" error. I'm passing in large...
The function is fine. Are you absolutely certain you are passing in the right value? The most obvious problem would be that you are not as I use this exact...
Hmm... VB.NET and C# are close enough that you should be able to at least get a general idea of what to do. Have you tried to search for "C# translator" in...
The value getting passed to ConvertToInt64 is "127665189455435282". This is in the strPropertyValue. Here is my calling code: strPropertyName = "pwdLastSet" ...
Mark, that code needs to take a value of type IADsLargeInteger up cast to an object. You could easily change the code to make it more explicit: Function...
Are you sure you aren't getting this from a SearchResult instead of the DirectoryEntry? The SearchResult will marshal the value for you automatically into a...
If you have the DirectoryEntry and you really don't want to use any sort of interop or Reflection, you can use a Base level search and get the 'pwdLastSet'...
Whoops, that last line should read: Console.WriteLine("Password Last Set {0}", DateTime.FromFileTime(ticks).ToString()); ... -- Ryan Dunn MVP - ASP.NET...
That worked!!! I am getting it from a SearchResult so the conversion routine is no longer necessary. Thanks everyone for you help on this!!!! Ryan Dunn...
I was wondering in this day and age, is there a .NET toolkit for easily extracting information from the Active Directory. Or do we still need to code for this...
I can figure out what the age of a password is. Is there a domain attribute to indicate how long passwords are good for? Is there a flag or something to say a...