Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Configuring an AD Authentication Provider

Updated on 2024-12-30 GMT+08:00

Active Directory (AD) is a database that stores network objects, allowing administrators and users to search for required information.

To facilitate user authentication, OneAccess uses LDAP to direct the authentication to the AD domain. After the AD authentication succeeds, OneAccess matches the user attributes returned by the AD domain with the user association attributes in OneAccess. If the authentication is successful, the user can log in to OneAccess.

This section describes how to configure an AD authentication provider.

Prerequisite

You have permissions to access the administrator portal.

Setting Up an AD Server

Windows Server 2012 R2 is used as an example to describe how to set up a domain server.

  1. In Server Manager, choose Manage > Add Roles and Features in the upper right.
  2. In the Add Roles and Features Wizard dialog box, click Next until the Select server roles page is displayed. Select Active Directory Domain Services and click Add Features in the displayed box.
  3. Click Next until the Confirm installation selections page is displayed. Click Install to start the role installation process.
  4. After the installation is complete, click the yellow triangle icon displayed in the upper right, and click Promote this server to a domain controller. The Active Directory Domain Services Configuration Wizard window is displayed.
  5. On the Deployment Configuration page, select Add a new forest and set a domain name, such as oneaccess.com.
  6. Click Next. On the displayed page, enter the DSRM password of a non-domain user.
  7. Click Next until the Prerequisites Check page is displayed. Click Install. After the installation is complete, the server is automatically restarted.

Creating a Domain Account

  1. Choose Tools > Active Directory Users and Computers in the upper right corner.
  2. Right-click the target domain, choose New > User, enter a username, and click Next.
  3. Set Full name and User logon name and click Next. For example, john@oneaccess.com.
  4. Enter a password for the domain account and enter the password again. Deselect all check boxes. (You do not need to change the password at the first login.)

Configuring LDAP to Connect to AD

  1. Download and install ApacheDirectoryStudio, an LDAP client.
  2. Choose LDAP > New Connection and set the connection parameters. If the connection is successful, user and organization information in the AD is displayed.

    Figure 1 Creating a connection
    Figure 2 Setting parameters

Adding an AD Authentication Provider

  1. Log in to the administrator portal.
  2. On the top navigation bar, choose Authentication > Authentication Providers.
  3. Choose Enterprise Authentication Providers > AD.
  4. On the AD Authentication Providers page, click Add Authentication Provider in the upper right corner and set the parameters required.

    Figure 3 Setting parameters
    Table 1 Configuration parameters

    Parameter

    Description

    Display Name

    Mandatory. Display name of the authentication provider, for example, AD.

    Connection Mode

    You can choose Directly connect (default) or Connect by CloudBridge agent.

    AD Address

    Mandatory. Connection address of AD in the format "ldap://{hostname}:{port}/", where {hostname} indicates the AD server address and {port} indicates the port. The default port is 389. For details, see Configuring LDAP to Connect to AD.

    rootDN

    Mandatory. A node of AD used to authenticate users. The format of the value is "dc=,dc=". For details, see Configuring LDAP to Connect to AD.

    Domain Name

    Optional. Domain name set when the AD server is set up. If this parameter is set, the query condition consists of the "login name + @ + domain name". If this parameter is left blank, the query condition contains only the login name. For details, see 5.

    Query Conditions

    Mandatory. Consists of the object class and user login name. Adjust userPrincipalName to meet service requirements. If the placeholder is {0}, query is performed based on the username entered by a user during login and the domain name, for example, mike@companya.cn. If no domain name exists, the domain name of the authentication provider is used. If the placeholder is {1}, query is performed only based on the username entered by a user, for example, mike.

    Source Attribute

    Mandatory. Attribute of the AD user associated with the user login name. For example, userPrincipalName. Obtain the attribute from Configuring LDAP to Connect to AD.

    Related User Attribute

    Mandatory. User attribute mapped by AD in the system. The user attribute must be a unique text.

    No User Associated

    Mandatory. Operation that will be performed if a user logs in successfully but fails to be associated with a system user.

    NOTE:

    Define more user attributes if needed. The attributes must be unique texts. For details, see Adding an Extended Attribute.

Enabling AD Authentication

  1. On the top navigation bar, choose Resources > Applications.
  2. On the Applications page, click User Portal.
  3. Click the user portal icon to go to the general information page.
  1. Choose Login Settings > Web Applications, click in the Operation column of AD to enable AD authentication, and select the authentication provider added in Adding an AD Authentication Provider.

    NOTE:

    When AD authentication is enabled, the password login mode text box is used. You need to click in the Operation column of Password to disable the database authentication mode. If LDAP authentication is enabled, click in the Operation column of LDAP to disable LDAP authentication.

FAQs

  1. When creating a domain account, why am I prompted that the AD cannot be opened because the domain does not exist or cannot be connected?
    1. Check whether the Netlogon and DFS services have been started.
    2. Run the net share command to check whether the sharing is normal.

      If the sharing is abnormal, change the value of SysvolReady in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters to 1. Run the net share command again. The sharing should become normal.

    3. For the AD domain, check the logs in the event viewer and use the Dcdiag tool to locate the error.
  2. Why is [LDAP: error code 49-80090308:LdapErr:……AcceptSecurityContext error.data.52e.vece] displayed during LDAP configuration for AD connection?

    The password or credential is invalid. The correct username format is "{Username}@{Domain name}".

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback