blazam-app / blazam Goto Github PK
View Code? Open in Web Editor NEWA modern Active Directory management web application with a focus on delegation
Home Page: https://blazam.org
License: Other
A modern Active Directory management web application with a focus on delegation
Home Page: https://blazam.org
License: Other
I see that the error output shows that some part of this code is fixed however, a new error output is being thrown for the same ApplicationNewsService.cs, image attached:
Something terrible has happened...
BLAZAMSession : System.NullReferenceException
Error Message: Object reference not set to an instance of an object.
Stack Trace:
at BLAZAM.Session.ApplicationNewsService.GetUnreadNewsItems(IApplicationUserState user) in D:\a\BLAZAM\BLAZAM\BLAZAMSession\ApplicationNewsService.cs:line 69
at BLAZAM.Gui.UI.Outputs.ApplicationNewsProvider.RefreshUnreadItems() in D:\a\BLAZAM\BLAZAM\BLAZAMGui\UI\Outputs\ApplicationNewsProvider.razor:line 111
at BLAZAM.Gui.UI.Outputs.ApplicationNewsProvider.RefreshItems() in D:\a\BLAZAM\BLAZAM\BLAZAMGui\UI\Outputs\ApplicationNewsProvider.razor:line 96
at BLAZAM.Gui.UI.Outputs.ApplicationNewsProvider.OnInitialized() in D:\a\BLAZAM\BLAZAM\BLAZAMGui\UI\Outputs\ApplicationNewsProvider.razor:line 92
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
Originally posted by @swamipurnamsha in #276 (comment)
If no email for a user exists, populate from AD if available.
Describe the bug
I thought I wrote it already, 90% sure but seemed to have lost it. Will have to write again.
Finish the installer
For Nightly 0.8.8.2024.02.11.2203 after logging in the dashboard widgets are not loaded. After navigating or refreshing they are loaded.
Nuff said
Hi,
i have installed it manually.
On the first try to open the install-process starts and after creating the database it stops. Step 2 doesn's start...
What could be the issue?
I'm running it on a Windows Server 2022 / IIS/ Database is on an external NAS
Any idea???
Hi again @jacobsen9026
We have used the latest release version: 0.9.1.2024.04.13.2119 running as a service.
We encountered a bug while creating a user(custom method), using a non-superuser account in Blazam.
Please note that the feature works very well with super-user blazam accounts.
Null pointer exception occurs after clicking the "next" button as shown in the attached snippets.
Not sure if this extends all the way to Dev branch, but on Nightly 0.8.9 stable 0.8.9. was not being updated to, it was reapplying the nightly, the branch setting was also nightly.
Describe the solution you'd like
Add all, or a selection, of the shared printers on a print server into Active Directory.
Describe alternatives you've considered
Create one at a time....
The button does not change to disabled after saving changes.
Error Message: Cannot access a disposed context instance. A common cause of this error is disposing a context instance that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling 'Dispose' on the context instance, or wrapping it in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances. Object name: 'SqlDatabaseContext'.
Stack Trace:
at Microsoft.EntityFrameworkCore.DbContext.CheckDisposed()
at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()
at Microsoft.EntityFrameworkCore.DbContext.get_ChangeTracker()
at Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator.GenerateCacheKeyCore(Expression query, Boolean async)
at Microsoft.EntityFrameworkCore.Query.RelationalCompiledQueryCacheKeyGenerator.GenerateCacheKeyCore(Expression query, Boolean async)
at Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlServerCompiledQueryCacheKeyGenerator.GenerateCacheKey(Expression query, Boolean async)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
at BLAZAM.Gui.UI.Settings.SystemSettings.OnInitializedAsync() in D:\a\BLAZAM\BLAZAM\BLAZAMGui\UI\Settings\SystemSettings.razor:line 53
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Will add more later
Recent update to category dropdown, now can not edit to custom value for new category
A recent change to password changes has caused a long ~10 second delay when changing
Hi @jacobsen9026 definitely we would like to have blazam for an AD delegation for non IT members. Sharing the use case below:
Use Case 1:
The tasks we are currently doing in AD on daily basis:
Creating users, Enabling/Disabling users, Resetting passwords, Assigning/Unassigning users to groups, Mapping computers to users.
All these tasks are being done by a couple of people(lets call this group: helpdesk) and they do these taassks by accessing AD.
In order to make sure that AD data is not modified unintentionally by helpdesk, we need to stop anyone from accessing Active directory directly (except a couple of admins).
Blazam can help in this case where we need to provide these group of people a non-superuser access through Blazam and the above mentioned administrative tasks can be performed through Blazam. But currently due to a bug in Blazam, helpdesk members are not able to perform these tasks (but a blazam super user can perform just fine)
Use case 2:
We have different departments in our organization which are represented by different OUs in AD.
We want to delegate these administrative tasks to the respective departments.
In order for that to happen, we need a couple of persons from each OU/department(lets call these couple of people: dept_spoc group) to be given a non-superuser access to Blazam. Effectively, there will be 1 dept spoc group in each departmet/OU.
And they can login to Blazam and perform these tasks for members of their own departments.
The important thing here is that they should not be able to perform these actions on any OU/department, other than their own.
For this we need to set access permissions for each dept_spoc group in such a way that this group can not modify any property outside their own department/OU.
(Right now it is not possible in Blazam).
BLAZAM : System.NullReferenceException
Error Message: Object reference not set to an instance of an object.
Stack Trace:
at BLAZAM.Pages.OU.ViewOU.OnInitializedAsync() in D:\a\BLAZAM\BLAZAM\BLAZAM\Pages\OU\ViewOU.razor:line 78
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Microsoft.EntityFrameworkCore : System.InvalidOperationException
Error Message: The instance of entity type 'ActiveDirectoryField' cannot be tracked because another instance with the key value '{Id: 5}' is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached.
Stack Trace:
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.ThrowIdentityConflict(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.Add(TKey key, InternalEntityEntry entry, Boolean updateDuplicate)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.StartTracking(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges, Boolean modifyProperties)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState entityState, Boolean acceptChanges, Boolean modifyProperties, Nullable1 forceStateWhenUnknownKey, Nullable
1 fallbackState)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.PaintAction(EntityEntryGraphNode`1 node)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode1 node, Func
2 handleNode)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode1 node, Func
2 handleNode)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode1 node, Func
2 handleNode)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode1 node, Func
2 handleNode)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.AttachGraph(InternalEntityEntry rootEntry, EntityState targetState, EntityState storeGeneratedWithKeySetTargetState, Boolean forceStateWhenUnknownKey)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.NavigationFixer.NavigationReferenceChanged(InternalEntityEntry entry, INavigationBase navigationBase, Object oldValue, Object newValue)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.ChangeDetector.DetectNavigationChange(InternalEntityEntry entry, INavigationBase navigationBase)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.ChangeDetector.LocalDetectChanges(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.ChangeDetector.DetectChanges(IStateManager stateManager)
at Microsoft.EntityFrameworkCore.ChangeTracking.ChangeTracker.DetectChanges()
at Microsoft.EntityFrameworkCore.DbContext.TryDetectChanges()
at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
at BLAZAM.Gui.UI.Settings.Templates.EditDirectoryTemplate.SaveTemplate() in D:\a\BLAZAM\BLAZAM\BLAZAMGui\UI\Settings\Templates\EditDirectoryTemplate.razor:line 633
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.Forms.EditForm.HandleSubmitAsync()
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Supplied bad credentials for their AD connection, I don't need remote logging of bad credentials....
Error
{Data: [], ErrorCode: -2147023570, ExtendedError: -2146893044, ExtendedErrorMessage: '8009030C: LdapErr: DSID-0C09070F, comment: AcceptSecurityContext error, data 52f, v4563', HResult: -2147023570, HelpLink: null, InnerException: null, Message: 'The user name or password is incorrect.', Source: 'System.DirectoryServices', StackTrace: ' at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
at BLAZAM.ActiveDirectory.Searchers.ADSearch.PerformSearch[TObject,TInterface](DateTime startTime, DirectorySearcher searcher, Int32 pageSize) in D:\a\BLAZAM\BLAZAM\BLAZAMActiveDirectory\Searchers\ADSearch.cs:line 283
at BLAZAM.ActiveDirectory.Searchers.ADSearch.Search[TObject,TInterface](Nullable`1 token) in D:\a\BLAZAM\BLAZAM\BLAZAMActiveDirectory\Searchers\ADSearch.cs:line 253', TargetSite: 'Void Bind(Boolean)'}
Describe the bug
When renaming the display name of a directory entry, the check for duplicate warning always happens, and it prevents changing, it should only prevent saving.
Something terrible has happened...
Microsoft.EntityFrameworkCore : System.InvalidOperationException
Error Message: The instance of entity type 'ActiveDirectoryField' cannot be tracked because another instance with the key value '{Id: 22}' is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached.
Stack Trace:
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.ThrowIdentityConflict(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.Add(TKey key, InternalEntityEntry entry, Boolean updateDuplicate)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.Add(TKey key, InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.Add(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.StartTracking(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges, Boolean modifyProperties)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityStateAsync(EntityState entityState, Boolean acceptChanges, Boolean modifyProperties, Nullable1 forceStateWhenUnknownKey, Nullable
1 fallbackState, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.PaintActionAsync(EntityEntryGraphNode`1 node, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraphAsync[TState](EntityEntryGraphNode1 node, Func
3 handleNode, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraphAsync[TState](EntityEntryGraphNode1 node, Func
3 handleNode, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraphAsync[TState](EntityEntryGraphNode1 node, Func
3 handleNode, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.AttachGraphAsync(InternalEntityEntry rootEntry, EntityState targetState, EntityState storeGeneratedWithKeySetTargetState, Boolean forceStateWhenUnknownKey, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.AddAsync(TEntity entity, CancellationToken cancellationToken)
at BLAZAM.Gui.UI.Settings.Templates.EditDirectoryTemplate.SaveTemplate() in C:\Users\cjacobsen\source\repos\Blazam-App\BLAZAM\BLAZAMGui\UI\Settings\Templates\EditDirectoryTemplate.razor:line 503
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.Forms.EditForm.HandleSubmitAsync()
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Error Message: Access to the registry key 'Global' is denied.
Stack Trace:
at System.Diagnostics.PerformanceDataRegistryKey.Win32Error(Int32& errorCode, String name)
at System.Diagnostics.PerformanceDataRegistryKey.GetValue(String name, Boolean usePool)
at System.Diagnostics.PerformanceMonitor.GetData(String item, Boolean usePool)
at System.Diagnostics.PerformanceCounterLib.GetPerformanceData(String item, Boolean usePool)
at System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
at System.Diagnostics.PerformanceCounterLib.CounterExists(String category, String counter, Boolean& categoryExists)
at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter)
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.Initialize()
at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)
at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName)
at BLAZAM.Gui.UI.Settings.ProcessResourceUsage.b__12_1() in D:\a\BLAZAM\BLAZAM\BLAZAMGui\UI\Settings\ProcessResourceUsage.razor:line 61
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at BLAZAM.Gui.UI.Settings.ProcessResourceUsage.OnInitializedAsync() in D:\a\BLAZAM\BLAZAM\BLAZAMGui\UI\Settings\ProcessResourceUsage.razor:line 59
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Describe the bug
The configured session cookie timeout is not applied after login, until a refresh is made.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Have the proper timeout after login without user interaction.
The Blazor application encounters an error "BLAZAMSession : System.NullReferenceException"
"Error Message: Object reference not set to an instance of an object.
Stack Trace:
at BLAZAM.Session.ApplicationNewsService.<>c__DisplayClass12_0.b__0(NewsItem x) in D:\a\BLAZAM\BLAZAM\BLAZAMSession\ApplicationNewsService.cs:line 62"
I am running the Blazam App using IIS with all the .Net dependencies installed and using a MySQL database, we have configured the active directory and finalized the installation. After the installation the page results in the same error mentioned earlier "BLAZAMSession : System.NullReferenceException"
The Blazor WebAssembly application should not throw an exception related to the "applications news service" not able to be handled.
Within the IIS authentication configuration, it is set to allow Anonymous Authentication and the .Net Authorization is set to Allow All Users.
For additional troubleshooting: Within the Blazam application directory the IIS_IUSRS and IUSR have been granted full control of the Blazam root directory.
ApplicationPool is set to AlwayRunning and have Set IIS Site to Preload true
OS: Windows Server 2022
Browser: Edge
Version: 122.0.2365.92
Blazam version: 0.8.9.2024.02.28.0056
Describe the bug
When setting display name, at least in custom user creation, the value is cleared on the fields step
Error
{Data: [], HResult: -2146232832, HelpLink: null, InnerException: null, Message: 'Impersonation running as application identity', Source: null, StackTrace: ' at BLAZAM.Common.Data.WindowsImpersonation.<>c__DisplayClass18_01.<Run>b__0() in D:\a\BLAZAM\BLAZAM\BLAZAMCommon\Data\WindowsImpersonation.cs:line 107 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Security.Principal.WindowsIdentity.RunImpersonatedInternal(SafeAccessTokenHandle token, Action action) at BLAZAM.Common.Data.WindowsImpersonation.Run[T](Func
1 task) in D:\a\BLAZAM\BLAZAM\BLAZAMCommon\Data\WindowsImpersonation.cs:line 99
at BLAZAM.ActiveDirectory.Adapters.RemoteSession.GetNewSessionState() in D:\a\BLAZAM\BLAZAM\BLAZAMActiveDirectory\Adapters\RemoteSession.cs:line 236
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
at System.Threading.TimerQueue.FireNextTimers()
at System.Threading.UnmanagedThreadPoolWorkItem.ExecuteUnmanagedThreadPoolWorkItem(IntPtr callback, IntPtr state)
at System.Threading.UnmanagedThreadPoolWorkItem.ExecuteUnmanagedThreadPoolWorkItem(IntPtr callback, IntPtr state)
at System.Threading.UnmanagedThreadPoolWorkItem.System.Threading.IThreadPoolWorkItem.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
--- End of stack trace from previous location ---
Describe the bug
Title
To Reproduce
Steps to reproduce the behavior:
Expected behavior
User is restored
The OU privilege mapper cannot be edited.
We are running the Blazam App as a service on Blazam version: 0.9.0.2024.03.30.1856
When accessing Blazam Configure->Permissions->Mappings->OU Privilege Mapper, we've encountered an issue where the checkbox for providing mappings to delegates doesn't become selected, preventing us from saving new mappings. This problem persists in the demo website, as illustrated in the attached .GIF
This issue was not there in the earlier releases.
OS: Windows Server 2022
Browser: Google Chrome
Version: 123.0.6312.105
Describe the bug
The default deny all access level has nothing in it.
Environment (please complete the following information):
Installation wizard has many bugs, requires refreshes and server restarts to get through
Currently only an entire job can be set to stop on a failed step. Extend this functionality to each step for different behavior depending on the importance of the step.
If more changes are made and another save is made, all the changes from the first attempt are re-attempted.
Need to fully test
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.