Add more string explanations of RAP errors that are already documented
authorMartin Pool <mbp@samba.org>
Tue, 22 Jan 2002 05:11:28 +0000 (05:11 +0000)
committerMartin Pool <mbp@samba.org>
Tue, 22 Jan 2002 05:11:28 +0000 (05:11 +0000)
in clirap2.

source/libsmb/clierror.c

index 81e8be36a8f196b602d7c8c2ca04265db61821d8..637f362ae874cbe54598b4ba4463204ca39a7267 100644 (file)
 
 /*****************************************************
  RAP error codes - a small start but will be extended.
+
+ XXX: Perhaps these should move into a common function because they're
+ duplicated in clirap2.c
+
 *******************************************************/
 
 static const struct
@@ -33,14 +37,19 @@ static const struct
   char *message;
 } rap_errmap[] =
 {
-  {5,    "User has insufficient privilege" },
-  {86,   "The specified password is invalid" },
-  {2226, "Operation only permitted on a Primary Domain Controller"  },
-  {2242, "The password of this user has expired." },
-  {2243, "The password of this user cannot change." },
-  {2244, "This password cannot be used now (password history conflict)." },
-  {2245, "The password is shorter than required." },
-  {2246, "The password of this user is too recent to change."},
+  {5,    "RAP5: User has insufficient privilege" },
+  {50,   "RAP50: Not supported by server" },
+  {65,   "RAP65: Access denied" },
+  {86,   "RAP86: The specified password is invalid" },
+  {2220, "RAP2220: Group does not exist" },
+  {2221, "RAP2221: User does not exist" },
+  {2226, "RAP2226: Operation only permitted on a Primary Domain Controller"  },
+  {2237, "RAP2237: User is not in group" },
+  {2242, "RAP2242: The password of this user has expired." },
+  {2243, "RAP2243: The password of this user cannot change." },
+  {2244, "RAP2244: This password cannot be used now (password history conflict)." },
+  {2245, "RAP2245: The password is shorter than required." },
+  {2246, "RAP2246: The password of this user is too recent to change."},
 
   /* these really shouldn't be here ... */
   {0x80, "Not listening on called name"},