[英]Getting user group in LDAP using Novell.Directory.Ldap.NETStandard
[英]Connect fails with Error 91 (Novell.Directory.Ldap.NETStandard)
我在C#中集成Novell.Directory.Ldap.NETStandard( https://github.com/dsbenghe/Novell.Directory.Ldap.NETStandard )時遇到一些問題。 我正在使用UWP,並且沒有LDAP或本地Active-Directory的集成,因此我必須使用Novell目錄。
但是我無法讓它工作...
string ldapHost = "domain.local";
int ldapPort = 389;
LdapConnection conn = new LdapConnection();
conn.Connect(ldapHost, ldapPort);
失敗:原因= {“ Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Socketsunzulässigxx.xx.xx.xx:389”}
我也嘗試了端口686和SSL ...沒有任何作用。 同樣的錯誤...有什么想法嗎?
還嘗試使用IP代替域控制器的域名或名稱。
我知道這是一個古老的問題,但對其他人可能有用...我不會說德語,但我對套接字有所了解。 您是否嘗試包括SecureSocketLayer = true?
就像LdapConnection conn = new LdapConnection(){ SecureSocketLayer = true};
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.