This section provides a sample of enabling the user information synchronization function for Portal authentication using the merge method. You can also use the create method to enable the user information synchronization function for Portal authentication.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-aaa-portal/portal/portal-server/user-sync-function |
Item |
Data |
Description |
---|---|---|
user-sync-enable |
true |
Enable the user information synchronization function for Portal authentication. |
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123"> <edit-config> <target> <running/> </target> <error-option>rollback-on-error</error-option> <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> <portal xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa-portal"> <portal-server xc:operation="merge"> <name>huawei</name> <user-sync-function> <user-sync-enable>true</user-sync-enable> </user-sync-function> </portal-server> </portal> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123"> <ok/> </rpc-reply>
Sample of failed response
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-message>parse rpc config error.</error-message> </rpc-error> </rpc-reply>