ActiveDirectoryサーバーの識別名を取得することを知っています。
DirectoryEntry nRoot = new DirectoryEntry("LDAP://localhost:389");//this for OpenLDAP
string dnPath = nRoot.Properties["distinguishedName"].Value.ToString();
「無効なdn構文が指定されました」というエラーが発生します
ただし、localhost:389の代わりにADサーバーIPで同じコードを試してみると、完全に実行されます。
何か案が?
ありがとう!