Enterprise Single Sign-On for All

LDAP Service Registry

Service registry implementation which stores the services in a LDAP Directory. Uses an instance of LdapRegisteredServiceMapper, that by default is DefaultLdapRegisteredServiceMapper in order to configure settings for retrieval, search and persistence of service definitions. By default, entries are assigned the objectclass casRegisteredService attribute and are looked up by the uid attribute.

Support is enabled by adding the following module into the Maven overlay:

1
2
3
4
5
<dependency>
    <groupId>org.jasig.cas</groupId>
    <artifactId>cas-server-support-ldap-service-registry</artifactId>
    <version>${cas.version}</version>
</dependency>

Configuration

1
2
3
4
...
<alias name="ldapServiceRegistryDao" alias="serviceRegistryDao" />
<alias name="myConnectionFactory" alias="ldapServiceRegistryConnectionFactory" />
...

The default mapper has support for the following optional items:

Field Default Value
objectClass casRegisteredService
serviceDefinitionAttribute description
idAttribute uid

Service definitions are by default stored inside the serviceDefinitionAttribute attribute as JSON objects. The format and syntax of the JSON is identical to that of JSON Service Registry.

The following settings are applicable:

1
svcreg.ldap.baseDn=dc=example,dc=org