r16749: BUG 3905: don't fail in create_local_nt_token() when a
authorGerald Carter <jerry@samba.org>
Sat, 1 Jul 2006 17:55:07 +0000 (17:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:19:09 +0000 (11:19 -0500)
checking for the builtin Administrators group membership.
security = server has no domain info in secrets.tdb
(This used to be commit fa477969fbbcd9f707461a2d9015bebf719ddfbb)

source3/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)));
                        }                       
                }               
        }