15 Commits

Author SHA1 Message Date
Jason SECULA
2fb040ce8f Switch UI to WPF 2026-05-11 13:56:49 +02:00
Jason SECULA
e618bf03bf Added to show laps account name 2026-04-16 16:49:05 +02:00
Jason SECULA
351d0d70ad Ajout d'une icone pour l'application 2025-07-08 11:13:32 +02:00
Jason SECULA
6cc9eb82c9 Changement de la police du mot de passe LAPS 2025-07-08 11:04:19 +02:00
Jason SECULA
22c05e2f51 Suppression de l'exécutable 2025-06-23 08:50:36 +02:00
Jason SECULA
fa6745da83 Suppression du script de pipeline 2025-06-05 15:09:37 +02:00
J. Secula
039f07a3db Update .gitlab-ci.yml file 2025-06-05 13:30:15 +02:00
Jason SECULA
395843fe7c Merge branch 'main' of https://gitlab.forge.education.gouv.fr/jsecula/laps 2025-06-05 13:15:20 +02:00
Jason SECULA
e8508a920e Merge branch 'main' of https://gitlab.forge.education.gouv.fr/jsecula/laps 2025-06-05 13:14:51 +02:00
Jason SECULA
40f76367b1 Merge branch 'main' of https://gitlab.forge.education.gouv.fr/jsecula/laps 2025-06-05 13:13:10 +02:00
Jason SECULA
79fde281c1 Ajout de l'exécutable 2025-06-05 13:12:12 +02:00
J. Secula
66dec81aab Update .gitlab-ci.yml file 2025-06-05 13:09:20 +02:00
J. Secula
09048b0717 Update .gitlab-ci.yml file 2025-06-05 13:07:48 +02:00
J. Secula
8143cda4aa Update .gitlab-ci.yml file 2025-06-05 13:06:42 +02:00
J. Secula
567f23ba94 Update .gitlab-ci.yml file 2025-06-05 10:57:28 +02:00
13 changed files with 214 additions and 234 deletions

View File

@@ -1,41 +0,0 @@
# This file is a template, and might need editing before it works on your project.
# This is a sample GitLab CI/CD configuration file that should run without any modifications.
# It demonstrates a basic 3 stage CI/CD pipeline. Instead of real tests or scripts,
# it uses echo commands to simulate the pipeline execution.
#
# A pipeline is composed of independent jobs that run scripts, grouped into stages.
# Stages run in sequential order, but jobs within stages run in parallel.
#
# For more information, see: https://docs.gitlab.com/ee/ci/yaml/#stages
#
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
#
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/development/cicd/templates/
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
image: philippheuer/docker-gitlab-powershell
stages: # List of stages for jobs, and their order of execution
- build
- deploy
prep-job: # This job runs in the build stage, which runs first.
stage: build
script:
- powershell -Command 'Install-Module ps2exe -Confirm:$False -Force'
- powershell -Command "ps2exe ./laps.ps1 -requireAdmin -noOutput -noError -title 'LAPS' -description 'Outil pour récupérer un mot de passe LAPS dans un Active Directory' -Company 'Académie Nancy-Metz' -noconsole -version 1.2 -outputFile /builds/jsecula/laps/laps.exe"
artifacts:
when: on_success
access: all
paths:
- ./laps.exe
expire_in: 30 days
deploy-job: # This job runs in the deploy stage.
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
environment: production
script:
- echo "Deploying application..."
- echo "Application successfully deployed."

19
LoginScreen.xaml Normal file
View File

@@ -0,0 +1,19 @@
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:LAPS"
Title="LAPS" Height="200" Width="400" ResizeMode="NoResize">
<Grid FocusManager.FocusedElement="{Binding ElementName=UsernameTextbox}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="400*"/>
</Grid.ColumnDefinitions>
<Label Content="Identifiant" HorizontalAlignment="Left" Margin="55,27,0,0" VerticalAlignment="Top"/>
<Label x:Name="UserNameHelp" Content="admin-uid" HorizontalAlignment="Right" Margin="0,27,42,0" VerticalAlignment="Top" Width="220" Height="23" Foreground="#A5909090"/>
<TextBox x:Name="UsernameTextbox" HorizontalAlignment="Right" Margin="0,30,40,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="220" Height="20" Background="Transparent"/>
<Label Content="Mot de passe" HorizontalAlignment="Left" Margin="38,64,0,0" VerticalAlignment="Top"/>
<PasswordBox x:Name="PasswordBox" HorizontalAlignment="Right" Margin="0,67,40,0" VerticalAlignment="Top" Width="220" Height="20"/>
<Button x:Name="ValidateButton" IsDefault="True" Content="OK" HorizontalAlignment="Right" Margin="42,108,40,0" VerticalAlignment="Top" Height="27" Width="72" Grid.Column="1"/>
<Label x:Name="errorLabel" Content="Error Label" HorizontalAlignment="Left" Margin="38,109,0,0" VerticalAlignment="Top" Width="220" Foreground="Red" Visibility="Hidden"/>
</Grid>
</Window>

24
SearchScreen.xaml Normal file
View File

@@ -0,0 +1,24 @@
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:LAPS" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="LAPS" Height="300" Width="450" ResizeMode="NoResize">
<Grid FocusManager.FocusedElement="{Binding ElementName=computerNameTextbox}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="450*"/>
</Grid.ColumnDefinitions>
<Label Content="Nom de l'ordinateur" HorizontalAlignment="Left" Margin="42,37,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.5,-0.024"/>
<TextBox x:Name="computerNameTextbox" HorizontalAlignment="Left" Margin="173,41,0,0" TextWrapping="NoWrap" Text="" VerticalAlignment="Top" Width="169"/>
<Image x:Name="searchBtn" HorizontalAlignment="Left" Height="15" Margin="352,41,0,0" VerticalAlignment="Top" Width="16" RenderTransformOrigin="89.583,46.589"/>
<Label x:Name="expirationLabel" Content="Date d'expiration" HorizontalAlignment="Left" Margin="42,83,0,0" VerticalAlignment="Top" Visibility="Hidden" RenderTransformOrigin="0.5,-0.024"/>
<xctk:DateTimePicker x:Name="expirationTimeSelector" HorizontalAlignment="Left" Margin="173,85,0,0" Visibility="Hidden" VerticalAlignment="Top" Width="169" AllowSpin="False" ButtonSpinnerHeight="0" Format="Custom" Minimum="1970-01-01" FormatString="dd/MM/yyyy - HH:mm:ss" ShowButtonSpinner="False" TimePickerAllowSpin="False" TimePickerShowButtonSpinner="False" Text="" AutoCloseCalendarOnTimeSelection="True" TextAlignment="Left" TimeFormat="LongTime"/>
<Label x:Name="lapsAccountLabel" Content="Compte LAPS : " HorizontalAlignment="Left" Margin="170,115,0,0" VerticalAlignment="Top" Visibility="Hidden" RenderTransformOrigin="0.5,-0.024"/>
<Label x:Name="lapsPasswordLabel" Content="Mot de passe LAPS" HorizontalAlignment="Left" Margin="42,133,0,0" VerticalAlignment="Top" Visibility="Hidden" RenderTransformOrigin="0.5,-0.024"/>
<TextBox x:Name="LAPSTextbox" FontFamily="Consolas" FontSize="15" Text="P@ssw0rdO1234iJljL" TextWrapping="NoWrap" HorizontalAlignment="Left" Margin="173,137,0,0" Visibility="Hidden" VerticalAlignment="Top" Width="169" IsReadOnly="True" Background="#FFE4E4E4"/>
<Image x:Name="copyBtn" HorizontalAlignment="Left" Height="15" Margin="352,139,0,0" VerticalAlignment="Top" Width="16" Visibility="Hidden"/>
<TextBlock x:Name="errorText" Width="200" TextWrapping="Wrap" Text="Erreur : ????" HorizontalAlignment="Left" Margin="42,162,0,0" VerticalAlignment="Top" Visibility="Hidden" RenderTransformOrigin="0.5,-0.024"/>
<Button x:Name="updateBtn" Content="Mettre à jour" HorizontalAlignment="Left" Margin="258,181,0,0" VerticalAlignment="Top" Visibility="Hidden" Height="27" Width="84"/>
</Grid>
</Window>

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Xceed.Wpf.AvalonDock.dll Normal file

Binary file not shown.

BIN
Xceed.Wpf.Toolkit.dll Normal file

Binary file not shown.

BIN
copy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

BIN
key.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
key.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

364
laps.ps1

File diff suppressed because one or more lines are too long

BIN
search.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B