https://github.com/pyhedgehog/saltcorn-tblprov-ldap
Saltcorn plugin with table provider for LDAP protocol
https://github.com/pyhedgehog/saltcorn-tblprov-ldap
Last synced: 3 months ago
JSON representation
Saltcorn plugin with table provider for LDAP protocol
- Host: GitHub
- URL: https://github.com/pyhedgehog/saltcorn-tblprov-ldap
- Owner: pyhedgehog
- License: mit
- Created: 2023-11-24T14:26:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-24T15:50:40.000Z (over 1 year ago)
- Last Synced: 2024-04-25T05:22:27.540Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/saltcorn-tblprov-ldap
- Size: 151 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# saltcorn-tblprov-ldap
This is Saltcorn plugin, to use it you need install it into your saltcorn instance/tenant.
Table provider for LDAP protocol.
## Usage
As with any table provider you can create table with LDAP provider.
On next page you can fill configuration fields almost same as in `auth-ldap`.
As with all table providers resulting table is read-only.### Columns
1. id - Primary key from order.
2. dn - Distinguished name
3. data - JSON object with fetched fields. Value is either array or single element of array.
4. ldap_data - (undoc) JSON object of raw data returned by library. Not recommended to use as it's format can be changed with library.### Data
Logic of converting attributes to object fields contained in `ldap_get_attribute_entry()`.
## TODO
* Document data conversion.
* Implement converting types of fields. Examples:
* Convert to Date AD field `whenCreated` formatted as YYYYmmddHHMMSS.fZ.
* Convert to Date AD field `lastLogon` (which is `10^-8` seconds since `1601-01-01`).
* Convert to boolean AD field `mDBUseDefaults`.
* Revert conversion to Buffer (or ArrayBuffer, Int8Array) of binary-only fields like AD field `objectSid`.