WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] CA-39450: during domainjoin error 0x57 is also permiss

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CA-39450: during domainjoin error 0x57 is also permission-denied
From: Marcus Granado <marcus.granado@xxxxxxxxxx>
Date: Fri, 26 Mar 2010 12:48:44 +0000
Delivery-date: Fri, 26 Mar 2010 05:47:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Marcus Granado <marcus.granado@xxxxxxxxxx>
# Date 1269607093 0
# Node ID 969859f9898636692b48271373351ba5d09cc945
# Parent  3a266c31aaf5b6a047ec4f9493f0c01da87bfbd1
CA-39450: during domainjoin error 0x57 is also permission-denied

Signed-off-by: Marcus Granado <marcus.granado@xxxxxxxxxxxxx>

diff -r 3a266c31aaf5 -r 969859f98986 ocaml/auth/extauth_plugin_ADlikewise.ml
--- a/ocaml/auth/extauth_plugin_ADlikewise.ml   Fri Mar 26 11:10:59 2010 +0000
+++ b/ocaml/auth/extauth_plugin_ADlikewise.ml   Fri Mar 26 12:38:13 2010 +0000
@@ -589,7 +589,8 @@
                then begin
                        raise (Auth_signature.Auth_service_error 
(Auth_signature.E_CREDENTIALS,"The username or password is wrong."))
                end
-               else if has_substr errmsg "(0x5)" (* Unknown error *)
+               else if has_substr errmsg "(0x5)" (* Windows 
ERROR_ACCESS_DENIED error *)
+                       or has_substr errmsg "(0x57)" (* CA-39450 
INVALID_PARAMETER meaning permission-denied *)
                then begin (* this seems to be a 
not-enough-permission-to-join-the-domain error *)
                        raise (Auth_signature.Auth_service_error 
(Auth_signature.E_DENIED,"Permission denied. The user has no rights to join the 
domain or to modify the machine account in the Active Directory database."))
                end
1 file changed, 2 insertions(+), 1 deletion(-)
ocaml/auth/extauth_plugin_ADlikewise.ml |    3 ++-


Attachment: xen-api.hg.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] CA-39450: during domainjoin error 0x57 is also permission-denied, Marcus Granado <=