s4/idl: DIRERR error codes definition
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>
Fri, 12 Mar 2010 11:39:52 +0000 (13:39 +0200)
committerKamen Mazdrashki <kamen.mazdrashki@postpath.com>
Wed, 24 Mar 2010 15:34:32 +0000 (17:34 +0200)
DIRERR codes specify class of error returned from
DsAddEntry method call.

Ref: [MS-DRSR], section 4.1.1.1.25

librpc/idl/drsuapi.idl

index 77a619260749ed5a084a46a16c1fab890f3f6ebf..5f9b81d632a69418ac97f0dc0708a37594093f53 100644 (file)
@@ -1203,6 +1203,20 @@ interface drsuapi
         */
        const char *DRSUAPI_NTDSDSA_KRB5_SERVICE_GUID = "E3514235-4B06-11D1-AB04-00C04FC2DCD2";
 
+       /* Error codes to classify an error that occurs
+        * during a search for, or the update of,
+        * a directory object */
+       typedef [v1_enum] enum {
+               DRSUAPI_DIRERR_OK         = 0,
+               DRSUAPI_DIRERR_ATTRIBUTE  = 1,
+               DRSUAPI_DIRERR_NAME       = 2,
+               DRSUAPI_DIRERR_REFERRAL   = 3,
+               DRSUAPI_DIRERR_SECURITY   = 4,
+               DRSUAPI_DIRERR_SERVICE    = 5,
+               DRSUAPI_DIRERR_UPDATE     = 6,
+               DRSUAPI_DIRERR_SYSTEM     = 7
+       } drsuapi_DsAddEntry_DirErr;
+
        /*
         * please note the the current idl
         * for DsAddEntry does only parse