Added start of Muldap web service
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-03-29 18:07:46 -04:00
parent 092c9f3791
commit 8a572e70b1
12 changed files with 227 additions and 2 deletions

11
templates/index.html Normal file
View File

@ -0,0 +1,11 @@
{{ template "layout/header" . }}
<p>This is a test.</p>
<ul>
{{ range .results.Entries }}
<li><a href="/user/{{ .GetAttributeValue "uid" }}">{{ .GetAttributeValue "displayName" }}</a></li>
{{ end }}
</ul>
{{ template "layout/footer" . }}

View File

@ -0,0 +1,2 @@
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .title }} | Muldap Web</title>
<link rel="stylesheet" href="/css/dustdevil.css">
</head>
<body>

10
templates/user/info.html Normal file
View File

@ -0,0 +1,10 @@
{{ template "layout/header" . }}
<h1>{{ .user.GetAttributeValue "displayName" }}</h1>
<p>First name: {{ .user.GetAttributeValue "givenName" }}</p>
<p>Last name: {{ .user.GetAttributeValue "sn" }}</p>
<p>User ID: {{ .user.GetAttributeValue "uid" }}</p>
<p>Email address: {{ .user.GetAttributeValue "mail" }}</p>
{{ template "layout/footer" . }}