SSO 'LDAP Group' Character Limitation

book

Article ID: 37256

calendar_today

Updated On:

Products

CA Infrastructure Management CA Infrastructure Management CA Performance Management - Usage and Administration CA Performance Management - Data Polling

Issue/Introduction

 

Symptoms: 

This is specific to configuring SsoConfig ("SSO Configuration/CA Performance Center/LDAP Authentication/Remote Value", Option #10 to set LDAP Groups. )

When trying to paste in an updated <LDAPGroups> configuration into the SsoConfig utility, you may run into a character limit, as the entire configuration is not pasting in completely.

Environment:  

CA Performance Management

Redhat Linux

Cause: 

This is a limit of whatever terminal you are using to connect to the CAPC server with. See solution below
The field is a mysql TEXT field, which can contain a large amount of data. There is no length validation.
During internal testing, we were able to save the following single line (6308 characters) XML to this Groups setting. It saved to the database just fine.

<extension xmlns="http://www.ca.com/im/pc/importplugin.xsd"><plugin><deleteRanges><rendererRange owner="com.ca.im.portal.api.traits.site.report"><rendererRef type="desktop"/><rendererRef type="desktop2"/><rendererRef type="pdf"/><rendererRef type="csv"/></rendererRange></deleteRanges><renderers owner="com.ca.im.portal.api.traits.site.report"><trait type="com.ca.im.portal.api.traits.site.report.ViewContainerTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.ViewContainerRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.ViewContainerRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.PdfViewContainerRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.ViewContainerRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.GenerateURLContainerTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.GenerateURLContainerRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.GenerateURLContainerRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.TableTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.GridRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.GridRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.PdfTableRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.GridRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.OnDemandTrendModelTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.OnDemandTrendModelRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.OnDemandTrendModelRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.report.PdfOnDemandTrendModelRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.XYChartTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.XYChartRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.XYChartRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.report.PdfXYChartRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.XYChartRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.PieChartTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.PieChartRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.PieChartRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.report.PdfPieChartRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.PieChartRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.PieChartTrait" factor="CSV_Hidden"><renderer type="csv" class="com.ca.im.portal.render.csv.NoRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.GaugeChartTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.GaugeChartRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.GaugeChartRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.report.PdfGaugeRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.GaugeChartRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.CalendarHeatChartTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.CalendarHeatChartRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.CalendarHeatChartRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.CalendarHeatChartRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.CalendarHeatChartRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.HorizontalTimeBarChartTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.HorizontalTimeBarChartRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.HorizontalTimeBarChartRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.HorizontalTimeBarChartRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.HorizontalTimeBarChartRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.DeviceDetailsTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.DeviceDetailsRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.DeviceDetailsRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.PdfDeviceDetailsRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.composite.ChartTableTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.ChartTableRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.ChartTableRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.report.PdfChartTableRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.composite.DynamicTrendTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.DynamicTrendRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.DynamicTrendRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.report.PdfDynamicTrendRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.BasicContextDetailsTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.BasicContextDetailsRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.BasicContextDetailsRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.PdfDeviceDetailsRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.sdn.SdnItemContextDetailsTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.sdn.SdnItemContextDetailsRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.sdn.PdfSdnItemContextDetailsRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.sdn.SdnServiceChainViewTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.sdn.SdnServiceChainViewRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.sdn.PdfSdnServiceViewRenderer"/></trait></renderers></plugin></extension>

 

Resolution:

When we used the PuTTY client to connect to an installed CAPC system and tried the same, it only allowed us to paste this much of that string (About 4095 of 6308 charcters):

 

<extension xmlns="http://www.ca.com/im/pc/importplugin.xsd"><plugin><deleteRanges><rendererRange owner="com.ca.im.portal.api.traits.site.report"><rendererRef type="desktop"/><rendererRef type="desktop2"/><rendererRef type="pdf"/><rendererRef type="csv"/></rendererRange></deleteRanges><renderers owner="com.ca.im.portal.api.traits.site.report"><trait type="com.ca.im.portal.api.traits.site.report.ViewContainerTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.ViewContainerRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.ViewContainerRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.PdfViewContainerRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.ViewContainerRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.GenerateURLContainerTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.GenerateURLContainerRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.GenerateURLContainerRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.TableTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.GridRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.GridRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.PdfTableRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.GridRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.OnDemandTrendModelTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.OnDemandTrendModelRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.OnDemandTrendModelRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.report.PdfOnDemandTrendModelRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.XYChartTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.XYChartRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.XYChartRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.report.PdfXYChartRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.XYChartRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.PieChartTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.PieChartRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.PieChartRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.report.PdfPieChartRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.PieChartRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.PieChartTrait" factor="CSV_Hidden"><renderer type="csv" class="com.ca.im.portal.render.csv.NoRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.GaugeChartTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.GaugeChartRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.GaugeChartRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.report.PdfGaugeRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.GaugeChartRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.CalendarHeatChartTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.CalendarHeatChartRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.CalendarHeatChartRenderer"/><renderer type="pdf" class="com.ca.im.portal.render.pdf.CalendarHeatChartRenderer"/><renderer type="csv" class="com.ca.im.portal.render.csv.report.CalendarHeatChartRenderer"/></trait><trait type="com.ca.im.portal.api.traits.site.report.HorizontalTimeBarChartTrait"><renderer type="desktop" class="com.ca.im.portal.render.desktop.report.HorizontalTimeBarChartRenderer"/><renderer type="desktop2" class="com.ca.im.portal.render.desktop2.report.HorizontalTimeBarChartRenderer"/><renderer type="pdf" class="com.ca.im.p

 

The article below explains the reason for this problem:

 

POSIX limits the number of character acceptable as user input to 4096, how to increase it?

http://stackoverflow.com/questions/18226274/posix-limits-the-number-of-character-acceptable-as-user-input-to-4096-how-to-in

 Run the following command before running your application: (in this case, ./SsoConfig )

 

stty cbreak


You will then be able to paste in the whole XML value into the SsoConfig option and it will be saved.

 

 

Environment

Release: IMDAGG99000-2.8-Infrastructure Management-Data Aggregator
Component: