473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DirectorySearcher protocol error with Notes Domino directory

12
Using Studio 2013 VB.

I am attempting to retrieve group members from our Lotus Notes Domino directory - but I cannot get past this error: "A protocol error occurred. Failed, invalid authentication method specified." I was assuming (maybe incorrectly) that this could be done using DirectorySearcher as we do for our Active Directory.

I have tried retrieving various data with the same results. My research seems to indicate a problem with the ldapsettings but I am using the same alias and specific ldapsettings used by other in-house scripts (albeit written in perl). So the ldapsettings still might be the problem.

The line of code that fails is:
Expand|Select|Wrap|Line Numbers
  1. Dim result As SearchResult = searcher.FindOne
The value of searcher.Filter is (&(objectclass=dominoGroup)(cn=mydominogroup)) So this looks like it is build right.

Any help with errors in my code - or even suggestions to accomplish this task a better way are appreciated.

Here is my code:
Expand|Select|Wrap|Line Numbers
  1. dim grp as String = "mydominogroup"
  2. Using dEntry As New DirectoryEntry("LDAP://mycompanyldapsettings")
  3.    dEntry.Username = myadminaccount
  4.    dEntry.Password = myadminpassword
  5.  
  6.    Using searcher As New DirectorySearcher(dEntry)
  7.       searcher.Filter = String.Format("(&(objectclass=dominoGroup)(cn={0}))", grp)
  8.       Dim result As SearchResult = searcher.FindOne <--fails here
  9.       If result Is Nothing Then
  10.           "report group not found"
  11.       Else
  12.            Dim members As Object = result.GetDirectoryEntry.Invoke("Members", Nothing)
  13.            If members Is Nothing Then
  14.                "report no members found in group"
  15.            Else
  16.                For Each member As Object In CType(members, IEnumerable)
  17.                   Dim currentMember As New DirectoryEntry(member)
  18.                   If currentMember.SchemaClassName.ToLower = "user" Then
  19.                         Dim props As PropertyCollection = currentMember.Properties
  20.                         "get and list the user pros("someattribute").Value)"
  21.                   End If
  22.                Next
  23.            End If
  24.       End If
  25.    End Using
  26. End Using
  27.  
Jul 17 '14 #1
0 986

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: JA | last post by:
Does anyone know how to access a Lotus Notes, or more correctly Lotus Domino, file or ntf using php? I have heard it is fairly easy, but I can find no references to it. Any ides? Thanks.
0
by: christian_stengel | last post by:
Hi *, I have just started to learn python and I am having a problem with an python client connecting to a perl server using ssl (I tried this with pyOpenSSL and with the build in SSL Module). ...
0
by: Benjamin Schollnick | last post by:
Folks, With Windows XP, and Python v2.41 I am running into a problem.... The following code gives me an unknown protocol error.... And I am not sure how to resolve it... I have a API...
4
by: Justin Malloy | last post by:
I am using the System.Net.Webclient to try and download an XML file from a website but am receiving a HTTP protocol error when running the DownloadFile() sub routine. I did a HTTP trace using...
3
by: xixi | last post by:
hi, we are using db2 udb v8.1 on win 64 bit with fp3 with type 4 db2jcc.jar driver. i have this problem happened sometimes when try to execute a query and failed. ...
1
by: Zri Man | last post by:
The Error in play is CLI Driver] SQL30020N Execution failed because of a Distributed Protocol Error that will affect the successful execution of subsequent commands and SQL statements: Reason Code...
2
by: gabriel.salama | last post by:
I am desperately trying to create a login page in ASP.NET in which a user can be authenticated against a Domino Directory but for the life of me, I cannot even find anything remotely close to this...
0
by: Chuck Anderson | last post by:
I have a set of Php scripts that run on my home PC (Windows XP- Apache 2 - Php 4.4.1) that reads my web sites' daily Apache access log file (a gzipped file) on the remote server...
0
by: Vivek N | last post by:
Hi, I'm getting this oracle error intemittently Error Description: ORA-03106: fatal two-task communication protocol error. I'm not sure what is causing this. My application is a ASP.Net 2.0...
4
by: keychain | last post by:
I'm experience the infamous "SSL: Fatal Protocol Error" bug with Apache 2.x According the fopen() documentation: "If you are using fsockopen() to create an ssl:// socket, you are responsible...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.