Results 1 to 2 of 2

Thread: Call to DirectoryEntry.Invoke("SetPassword", new object[] {password} ) failing

  1. #1
    Join Date
    Feb 2006
    Posts
    172

    Call to DirectoryEntry.Invoke("SetPassword", new object[] {password} ) failing

    After making a new user and committing I am trying to set the password. I have created the user as:

    DirectoryEntry newUser = adUserFolder.Children.Add("CN=" + userInfo.username, "User");

    // fill out properties, then commit

    Then when calling newUser.Invoke("SetPassword", new object[] {strPassword});

    But I am getting the below error message:

    InnerException = {"The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)":null}

    I am connecting to a remote LDAP AD server. When I am connecting to a local server I dont have this issue. I use the default connection AuthenticationTypes. So, is there something different that I have to use than the default, which is my connection:

    DirectoryEntry adUserFolder = new DirectoryEntry(strADServerUrl, strADusername, strADpassword);

    the strADServerURL looks like this: LDAP://1.2.3.4:389/CN=Users,DC=mywebsite,DC=net

    Thank you

  2. #2
    Join Date
    Oct 2005
    Posts
    1,217

    Re: Call to DirectoryEntry.Invoke("SetPassword", new object[] {password} ) failing

    You are going to get different results when working locally, some of the password set/change samples which come from a CDO background rely on local working. You need a secure connection for password operations, incase you are running from a computer in the same domain, then you will be able to kerberos

    AuthTypes = AuthenticationTypes.Signing |
    AuthenticationTypes.Sealing |
    AuthenticationTypes.Secure

Similar Threads

  1. Replies: 4
    Last Post: 14-05-2012, 09:10 PM
  2. Replies: 1
    Last Post: 27-11-2011, 04:54 AM
  3. SetPassword and ChangePassword Invoke
    By manishdk in forum Active Directory
    Replies: 2
    Last Post: 12-04-2011, 10:22 PM
  4. Replies: 4
    Last Post: 01-02-2010, 04:42 AM
  5. Replies: 2
    Last Post: 29-08-2008, 06:47 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,491,819.20716 seconds with 17 queries