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 );
DirectoryEntrie s entriesChild= entry.Children;
DirectoryEntry entryCheck = entriesChild.Fi nd("bryantest") ;
//Error: An invalid dn syntax has been specified
try
{
object ret = entry.Invoke("C hangePassword", new object[]{ OldPassword,
NewPassword });
entry.CommitCha nges ();
}
catch(Exception excp)
{
throw(excp);
}
if ( entryCheck != null)
entriesChild.Re move(entryCheck );
Thanks
Bryan
when finding a record to edit:
DirectoryEntry entry = new DirectoryEntry( "LDAP://MyDomainName,
DC=MyDomainName );
DirectoryEntrie s entriesChild= entry.Children;
DirectoryEntry entryCheck = entriesChild.Fi nd("bryantest") ;
//Error: An invalid dn syntax has been specified
try
{
object ret = entry.Invoke("C hangePassword", new object[]{ OldPassword,
NewPassword });
entry.CommitCha nges ();
}
catch(Exception excp)
{
throw(excp);
}
if ( entryCheck != null)
entriesChild.Re move(entryCheck );
Thanks
Bryan
Comment