Custom Attribute not present in SAML response

Custom Attribute not present in SAML response

Problem

Custom attribute defined in the authorisation policy is not returned in the SAML response message

When debug level logs are on , you can see blank value in logs e.g.  SSO - - - DEBUG name=test, expr=${eidm['userid']}, result=

In iam_diag.log you can see below error : 

2021-12-23 13:38:19,235 init Error: com.ubisecure.ubilogin.directory.spi.DirectoryFactoryException: DataSource: CustomerID SQL: java.sql.SQLException: Cannot create JDBC driver of class '' for connect URL 'jdbc:postgresql://<CID Database Server>:5432/customeriddb'

 

Solution

  1. Transfer the postgresql-x.x.x.jar library to the Ubisecure SSO server and copy it to the following folder: /usr/local/ubisecure/ubilogin-sso/tomcat/lib, remove the previous postgresql-x.x.x.jar file.

Restart of java services is required after copying postgreSQL JDBC driver ( ubilogin-server.service and ubisecure-accounting.service ) 

See also PostgreSQL JDBC driver installation to SSO on Linux  / PostgreSQL JDBC driver installation to SSO on Windows

Related articles