私はこれの全くの初心者です
で LDAP サーバーに接続しようとしていますPrincipalContext
。このサイトのすべてのソリューションを試しましたが、役に立ちませんでした。
私が試したこと:
PrincipalContext insPrincipalContext =
new PrincipalContext(ContextType.Domain);
PrincipalContext insPrincipalContext =
new PrincipalContext(ContextType.Domain, "ldap://localhost:389/dc=maxcrc,dc=com");
PrincipalContext insPrincipalContext =
new PrincipalContext(ContextType.Domain, "maxcrc.com");
すべて同じ結果になります。
LDAP サーバーが利用できません
ContextType.Machine
基本的にのみ動作します。
LDAP サーバーが正しく設定されているかどうかわからない:
- ホスト: ローカルホスト
- ポート: 389
- ベース DN: dc=maxcrc,dc=com
- URL: ldap://localhost:389/dc=maxcrc,dc=com
Softerra LDAP ブラウザでのテスト
最初から最後までのチュートリアルは大歓迎です...