B
Bryan Yeo
Got no problem adding an AD account using the LDAP connection, but error
when finding a record to edit:
DirectoryEntry entry = new DirectoryEntry("LDAP://MyDomainName,
DC=MyDomainName);
DirectoryEntries entriesChild= entry.Children;
DirectoryEntry entryCheck = entriesChild.Find("bryantest");
//Error: An invalid dn syntax has been specified
try
{
object ret = entry.Invoke("ChangePassword", new object[]{ OldPassword,
NewPassword });
entry.CommitChanges ();
}
catch(Exception excp)
{
throw(excp);
}
if ( entryCheck != null)
entriesChild.Remove(entryCheck);
Thanks
Bryan
when finding a record to edit:
DirectoryEntry entry = new DirectoryEntry("LDAP://MyDomainName,
DC=MyDomainName);
DirectoryEntries entriesChild= entry.Children;
DirectoryEntry entryCheck = entriesChild.Find("bryantest");
//Error: An invalid dn syntax has been specified
try
{
object ret = entry.Invoke("ChangePassword", new object[]{ OldPassword,
NewPassword });
entry.CommitChanges ();
}
catch(Exception excp)
{
throw(excp);
}
if ( entryCheck != null)
entriesChild.Remove(entryCheck);
Thanks
Bryan