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 Carter <jerry@samba.org>
Sat, 1 Jul 2006 17:55:07 +0000 (17:55 +0000)
checking for the builtin Administrators group membership.
security = server has no domain info in secrets.tdb

source/auth/auth_util.c

index f450890a9f677e78a5ec2929c6610f0b7db0cf04..3986872eff395d91f2e052a1d8b2f8a9bfb97aeb 100644 (file)
@@ -876,9 +876,10 @@ static struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
                }
                else {
                        status = add_builtin_administrators( result );
-                       if ( !NT_STATUS_IS_OK(status) ) {                       
-                               TALLOC_FREE(result);
-                               return NULL;
+                       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)));
                        }                       
                }               
        }