Declare errors in Config and Create interfaces

The Config interface and Create interface can throw a
"NoCACertificate" error.

For example: If LDAP server's CA certificate not provided and
someone tries to enable secure LDAP, this error should be thrown.

Change-Id: Ie773245fb7c6b36f25cd1acca2bfc3b0391dfeac
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/xyz/openbmc_project/User/Ldap/Config.interface.yaml b/xyz/openbmc_project/User/Ldap/Config.interface.yaml
index d644eef..387a36f 100644
--- a/xyz/openbmc_project/User/Ldap/Config.interface.yaml
+++ b/xyz/openbmc_project/User/Ldap/Config.interface.yaml
@@ -9,6 +9,7 @@
       default: false
       errors:
         - xyz.openbmc_project.Common.Error.InternalFailure
+        - xyz.openbmc_project.Common.Error.NoCACertificate
     - name: LDAPServerURI
       type: string
       description: >
diff --git a/xyz/openbmc_project/User/Ldap/Create.interface.yaml b/xyz/openbmc_project/User/Ldap/Create.interface.yaml
index 24f5d28..3255fba 100644
--- a/xyz/openbmc_project/User/Ldap/Create.interface.yaml
+++ b/xyz/openbmc_project/User/Ldap/Create.interface.yaml
@@ -52,6 +52,7 @@
       errors:
         - xyz.openbmc_project.Common.Error.InternalFailure
         - xyz.openbmc_project.Common.Error.InvalidArgument
+        - xyz.openbmc_project.Common.Error.NoCACertificate
 
 enumerations:
     - name: SearchScope