-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add support for Controls #4
Comments
Perhaps a nice construct would be to use commands for every integer-numbered OID:
In addition, a callback might be made when a value is present. So, the interesting information would map a control identifier to
All this could be combined into a union, much like the operations registry, which has a variant that lists comands by numbers, and another by name. This registry could be placed in the |
How to generate all this? We might use gperf once more, and map OID values to table entries. The table entries might specify, using the index derived by
Note that the packer also implies that we might need supporting packer and/or unpacker structures. In fact we should reason what sort of values we want to use —be it Having this table does not mean we have the An alternative might be to have another indexing mechanism, and only use |
Commands may be generalised in a number of behaviour aspects:
In terms of these, the commands specified above can be written as:
|
LillyDAP does not support LDAP Controls yet, it just passes them verbatim. The use is simply a matter of iteration, and perhaps the standardised OIDs could be collected in a perfect hash function.
Functionality that would be useful however, is filtering. One should not pass influential instructions, such as the Proxied Authorization Control without spending attention to it. In general, a filtering function on LDAP Controls would be prudent. Whether an LDAP Control is critical might play a role in doing so.
In addition, one will want to check the presence of a given LDAP Control, and potentially its parsed value and maybe even whether it is critical.
Finally, one will want to send, or attach, an LDAP Control or list of LDAP Controls. Doing this would ideally involve construction from a Quick DER class.
The text was updated successfully, but these errors were encountered: