Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request: notification example #302

Open
jdef opened this issue Jan 8, 2021 · 3 comments
Open

request: notification example #302

jdef opened this issue Jan 8, 2021 · 3 comments
Assignees
Labels

Comments

@jdef
Copy link

jdef commented Jan 8, 2021

I see the API has a ControlTypeMicrosoftNotification, presumably to support async search results coming back from the server. I spent a few minutes skimming the search code and it's not immediately clear to me how to perform an async search using the v3 API.

Would someone be so kind as to provide an example? Or, if not possible given the current API, perhaps suggest a set of changes that might suffice to enable such?

@stefanmcshane
Copy link
Contributor

Hi @jdef,

The controls can be passed into the search requests using []Control.
Here is an example for manual paging, which does an overlay on how to pass in controls.
Beherap Policy is another example where such controls are used.

Let me know if this helps or if there is anything else I can do to help.

Thanks,
Stefan

@jdef
Copy link
Author

jdef commented Mar 26, 2021 via email

@stefanmcshane
Copy link
Contributor

Hi @jdef,
Thanks for clarifying. I'm going to dig further into this at the weekend and will get back to you then.
From what I know, the LDAP client should still receive notifications, however I see your issue in that there may not be an exposed method for listening to the responses, unless it was a direct request-response method.

In theory, they should appear in the debug logs in line 498 or 502.
I don't believe that you are missing anything obvious. If the feature exists, ill add an example for this so it is more obvious in future.
If you have any specific usecases you would like me to test, let me know.

Thanks,
Stefan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants