r16749: BUG 3905: don't fail in create_local_nt_token() when a
[ira/wip.git] / source / auth / auth_util.c
index 0401e02b7d4c891067c37c454ed8aa3d95d76eff..df4a4e1b3887b9935effae57130a540a78b1dc4f 100644 (file)
@@ -876,9 +876,10 @@ static struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
                }
                else {
                        status = add_builtin_administrators( tmp_ctx, result ); 
-                       if ( !NT_STATUS_IS_OK(status) ) {                       
-                               result = NULL;
-                               goto done;
+                       if ( !NT_STATUS_IS_OK(status) ) {
+                               /* just log a complaint but do not fail */
+                               DEBUG(3,("create_local_nt_token: failed to check for local Administrators"
+                                       " membership (%s)\n", nt_errstr(status)));
                        }                       
                }               
        }