- 24 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
LDAP Data Sources
- Updated on 24 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
LDAP Data Sources use an LDAP adapter and an LDAP translator, to expose an LDAP directory tree relationally.
Creating a Data Source
To create a Data Source based on LDAP repository:
- In the Tenant Settings screen, select the PIP Settings tab.
- From the Policy Authorization Agent drop-down list, select the PAA in which you wish to create the new Data Source.
- Click New Data Source.
- In the Name field, enter the name of the new Data Source.
Note: The Data Source name must be unique.
Under Connection Adapter, choose the LDAP option.
Fill in the Connection Settings details, including:
- In the LDAP Url field, fill in the LDAP URL.
- Fill in the LDAP Admin User DN, the Base DN for LDAP Searches.
- Add the LDAP password in the LDAP Admin User Password field.
Click Test Connection.
Under the Models section:
- In the Name field, enter a virtual schema name.
Note: The Model name must be unique.
Under DDL field write a valid DDL to fetch LDAP Attributes, according to this pattern:
CREATE FOREIGN TABLE <table name> ( <attr1> string options(nameinsource '<attr name in ldap>'), <attr2> string options(nameinsource '<attr name in ldap>'), … ) OPTIONS(nameinsource '<Base DN>?<Search-Scope>?<Object-Class>?updatable false');
Example: This DDL example fetches all users from the node
cn=pidAdmin,ou=users,dc=example,dc=com
in the LDAP tree and down the tree with nested searches.CREATE FOREIGN TABLE LDAP_TEST ( Name string options(nameinsource 'sAMAccountname'), Company string options(nameinsource 'company'), CommonName string options(nameinsource 'cn') ) OPTIONS(nameinsource 'cn=pidAdmin,ou=users,dc=example,dc=com?User?SUBTREE_SCOPE?updatable false');
Note:
search-scope
can have these values: SUBTREE_SCOPE, OBJECT_SCOPE, ONELEVEL_SCOPE (this is the default, if not you do not set any other options as part of the DDL)
For more advanced settings and options you can reach our support with specific requirements and use cases.
- You can add Translator Properties under the translator section.
Note: Usually, you do not need to set translator properties, you can find a list of possible properties for advanced use in the Get List of Translators.
- Click Create to save your configuration settings and create the Data Source object in the Platform.
LDAP Connector Limitations
Due to limitations in LDAP, the following capabilities are not supported in the LDAP Connector.
- Aggregates
- Aliased Groups
- BETWEEN Criteria
- Case Expressions
- Correlated Subqueries
- EXISTS Criteria
- Functions
- Inline views
- IS NULL criteria
- Joins
- NOT criteria
- ORDER BY
- Quantified compare criteria
- Row Offset
- Searched Case Expressions
- Select Distinct
- Select Literals
- UNION
- XA Transactions