Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • Courses
    • Certification
      • DataMiner Operator
      • DataMiner Administrator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
    • Video Library
    • Books We Like
    • Third-party Courses
    • DevOps Enablement Services
    • Quizzes
  • RESOURCES
  • Agile
    • Agile Webspace
    • Everything Agile
      • The Agile Manifesto
      • Best Practices
      • Retro Recipes
    • Methodologies
      • The Scrum Framework
      • Kanban
      • Extreme Programming
    • Roles
      • The Product Owner
      • The Agile Coach
      • The Quality & UX Coach (QX)
  • Expert Hubs
    • DataMiner DevOps Professional Program
    • DataMiner
      • DataMiner Releases & Updates
      • System Architecture
      • Integration Studio
      • Visual Overview
      • Security
    • Technologies
      • CI/CD
      • Converged Interconnect Networks
      • DOCSIS 3.1 / DAA
      • Elasticsearch
      • Kubernetes
      • Telemetry / Flow Monitoring
      • PTP
      • SDN / ST2110 / NMOS
    • Business
      • Software Business models
      • Perpetual Use or Usage-based Services
  • Discover
    • Markets
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Solutions
    • Use Case Library
    • DataMiner Dashboards
    • DataMiner Downloads
    • DataMiner Modules
      • Core features
      • SRM features
    • DataMiner Apps
    • Professional Services
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • Pricing
  • More
    • Feature Suggestions
    • Online DataMiner Systems
    • Leaderboard
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
    • Verify a certificate
  • >> Go to dataminer.services

Unable to use ConnectApp WebAPI – unable to authenticate using Active Directory user

262 views19th September 2023ConnectApp WebService
0
Bing Herng Chong [SLC] [DevOps Advocate]445 19th September 2023 0 Comments

Hi, at a user site we are experiencing difficulties with using the ConnectApp Web Services method.
DMA version being used for testing is v10.0.0 CU5.

In System Centre > Users/Groups:

  • The user is part of a group.
  • The group was added via Active Directory.
  • The group has been given all permissions (Administrator role)

In addition, the web.config file on DataMiner has been updated to uncomment the HttpGet and HttpPost protocols.

However we are observing the following results (each of them HTTP error 500):
NOTE: it is possible to log in using the ‘user1’ user via the Cube GUI.

Attempt #1:

# curl -X POST http://172.3.6.1/api/v1/soap.asmx --header "Content-Type: text/xml; charset=utf-8" --data @ConnectApp_1.xml

Contents of the ConnectApp_1.xml file:

<soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:v1=http://www.skyline.be/api/v1>
<soapenv:Header/>
<soapenv:Body>
<v1:ConnectApp>
<!--Optional:-->
<v1:host>myHost</v1:host>
<!--Optional:-->
<v1:login>DOMAIN1\user1</v1:login>
<!--Optional:-->
<v1:password>password1</v1:password>
<!--Optional:-->
<v1:clientAppName>AppName</v1:clientAppName>
<!--Optional:-->
<v1:clientAppVersion>1.1.1</v1:clientAppVersion>
<!--Optional:-->
<v1:clientComputerName>hostname123</v1:clientComputerName>
</v1:ConnectApp>
</soapenv:Body>
</soapenv:Envelope>

Response from DMA:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Unable to authenticate as user1</faultstring>
<detail/>
</soap:Fault>
</soap:Body>
</soap:Envelope>

Information events show: Authentication Failure. Connectoin did not authenticate. Computer hostname123 Application: AppName

Attempt #2

# curl -X POST http://172.3.6.1/api/v1/soap.asmx --header "Content-Type: text/xml; charset=utf-8" --data @ConnectApp_2.xml

Contents of ConnectApp_2 file:

<soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:v1=http://www.skyline.be/api/v1>
<soapenv:Header/>
<soapenv:Body>
<v1:ConnectApp>
<!--Optional:-->
<v1:host>myHost</v1:host>
<!--Optional:-->
<v1:login>user1</v1:login>
<!--Optional:-->
<v1:password>password1</v1:password>
<!--Optional:-->
<v1:clientAppName>AppName</v1:clientAppName>
<!--Optional:-->
<v1:clientAppVersion>1.1.1</v1:clientAppVersion>
<!--Optional:-->
<v1:clientComputerName>hostname123</v1:clientComputerName>
</v1:ConnectApp>
</soapenv:Body>
</soapenv:Envelope>

Response from DMA:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Cannot connect to the DMA; exception trapped: Failed getting the user info (user not found).</faultstring>
<detail/>
</soap:Fault>
</soap:Body>
</soap:Envelope>

In information events, no indication of errors or authentication failure.

Question 1: How should we be specifying the username in the POST body? With the domain or without the domain?
Question 2: Why is it that we are able to log in using the ‘user1’ user via the Cube GUI but through the WebAPI authentication fails?
Question 3: There are no lines in ActiveDirectory.txt providing details why the authentication is failing. Which log files captures WebAPI request attempts and responses?
Question 4: Using the same command above for Attempt #2 works for DMA v9.6 CU23 in the user's other environment.

Wim Bruynooghe [SLC] [DevOps Enabler] Answered question 19th September 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Wim Bruynooghe [SLC] [DevOps Enabler]5.12K Posted 19th September 2023 1 Comment

A few things you could try:

  • On the server hosting the DMA, restart the IIS webserver (iisreset)
  • Can you login on the Monitoring app? (http://dma/m/)
  • The WebAPI connects to SLNet, so more logging can be found in the log file of SLNet
Bing Herng Chong [SLC] [DevOps Advocate] Posted new comment 20th September 2023
Bing Herng Chong [SLC] [DevOps Advocate] commented 20th September 2023

Hi Wim, thanks for the suggestions.

– Triggering iisreset did not make a difference.
– Attempts to log into http://dma/m results in the same error seen when using curl.
– I’ll increase the logging to (6) and see what I can find.

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My Dojo Points

0 Credits
0 Reputation

Question Tag Cloud

adl2099 (54) Alarm Console (53) alarms (70) alarm template (58) API (35) Automation (144) automation scipt (65) Automation script (95) backup (54) Cassandra (142) cloud (37) Connector (44) Correlation (42) Cube (114) Dashboard (134) Dashboards (136) database (64) DataMiner Cube (37) DIS (53) DMS (48) DOM (68) driver (48) DVE (43) Elastic (73) Elasticsearch (99) elements (49) Failover (90) GQI (51) HTTP (45) IDP (55) low code app (70) low code apps (43) MySQL (50) protocol (145) QAction (58) resources (35) security (71) SNMP (56) SRM (267) SRM resources (39) timeout (35) trending (66) upgrade (44) Visio (373) Visual Overview (290)
Privacy Policy • Terms & Conditions • Contact

© 2023 Skyline Communications. All rights reserved.

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin