Skip to content

Commit f251eb7

Browse files
author
Andreas Voegele
committed
Implement PAM authentication extension.
1 parent 2b9a7da commit f251eb7

File tree

16 files changed

+1086
-0
lines changed

16 files changed

+1086
-0
lines changed

.classpath

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
10+
<attributes>
11+
<attribute name="maven.pomderived" value="true"/>
12+
</attributes>
13+
</classpathentry>
14+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
15+
<attributes>
16+
<attribute name="optional" value="true"/>
17+
<attribute name="maven.pomderived" value="true"/>
18+
</attributes>
19+
</classpathentry>
20+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
21+
<attributes>
22+
<attribute name="maven.pomderived" value="true"/>
23+
</attributes>
24+
</classpathentry>
25+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
26+
<attributes>
27+
<attribute name="maven.pomderived" value="true"/>
28+
</attributes>
29+
</classpathentry>
30+
<classpathentry kind="output" path="target/classes"/>
31+
</classpath>

.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>guacamole-auth-pam</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
eclipse.preferences.version=1
2+
encoding//src/main/java=UTF-8
3+
encoding//src/main/resources=UTF-8
4+
encoding/<project>=UTF-8
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
line.separator=\n

.settings/org.eclipse.jdt.core.prefs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
3+
org.eclipse.jdt.core.compiler.compliance=1.8
4+
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5+
org.eclipse.jdt.core.compiler.source=1.8

.settings/org.eclipse.m2e.core.prefs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=false
4+
version=1

doc/example/guacamole.pam

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# The PAM configuration file for Guacamole logins
2+
3+
@include common-auth
4+
@include common-account

doc/example/unix-user-mapping.xml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
14+
-->
15+
<unix-user-mapping serviceName="guacamole">
16+
<!--
17+
<config name="RDP Connection" protocol="rdp">
18+
<param name="hostname" value="localhost" />
19+
<param name="username" value="${GUAC_USERNAME}" />
20+
<param name="password" value="${GUAC_PASSWORD}" />
21+
</config>
22+
-->
23+
24+
<!--
25+
<config name="VNC Connection" protocol="vnc">
26+
<param name="hostname" value="localhost" />
27+
<param name="port" value="5901" />
28+
<param name="password" value="VNCPASS" />
29+
</config>
30+
-->
31+
32+
<!--
33+
<user name="USERNAME">
34+
<config-ref name="RDP Connection" />
35+
<config-ref name="VNC Connection" />
36+
</user>
37+
-->
38+
39+
<!--
40+
<group name="GROUPNAME">
41+
<config-ref name="RDP Connection" />
42+
</group>
43+
-->
44+
</unix-user-mapping>

pom.xml

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
14+
-->
15+
<project xmlns="http://maven.apache.org/POM/4.0.0"
16+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
18+
http://maven.apache.org/maven-v4_0_0.xsd">
19+
20+
<modelVersion>4.0.0</modelVersion>
21+
<groupId>com.andreasvoegele</groupId>
22+
<artifactId>guacamole-auth-pam</artifactId>
23+
<packaging>jar</packaging>
24+
<version>0.9.13-incubating</version>
25+
<name>guacamole-auth-pam</name>
26+
<url>https://github.com/voegelas/guacamole-auth-pam</url>
27+
28+
<properties>
29+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30+
</properties>
31+
32+
<build>
33+
<plugins>
34+
35+
<!-- Written for 1.8 -->
36+
<plugin>
37+
<groupId>org.apache.maven.plugins</groupId>
38+
<artifactId>maven-compiler-plugin</artifactId>
39+
<version>3.3</version>
40+
<configuration>
41+
<source>1.8</source>
42+
<target>1.8</target>
43+
<compilerArgs>
44+
<arg>-Xlint:all</arg>
45+
<arg>-Werror</arg>
46+
</compilerArgs>
47+
<fork>true</fork>
48+
</configuration>
49+
</plugin>
50+
51+
<!-- Copy dependencies prior to packaging -->
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-dependency-plugin</artifactId>
55+
<version>2.10</version>
56+
<executions>
57+
<execution>
58+
<id>unpack-dependencies</id>
59+
<phase>prepare-package</phase>
60+
<goals>
61+
<goal>unpack-dependencies</goal>
62+
</goals>
63+
<configuration>
64+
<includeScope>runtime</includeScope>
65+
<outputDirectory>${project.build.directory}/classes</outputDirectory>
66+
</configuration>
67+
</execution>
68+
</executions>
69+
</plugin>
70+
71+
<!-- Assembly plugin - for easy distribution -->
72+
<plugin>
73+
<artifactId>maven-assembly-plugin</artifactId>
74+
<version>2.5.3</version>
75+
<configuration>
76+
<finalName>${project.artifactId}-${project.version}</finalName>
77+
<appendAssemblyId>false</appendAssemblyId>
78+
<descriptors>
79+
<descriptor>src/main/assembly/dist.xml</descriptor>
80+
</descriptors>
81+
</configuration>
82+
<executions>
83+
<execution>
84+
<id>make-dist-archive</id>
85+
<phase>package</phase>
86+
<goals>
87+
<goal>single</goal>
88+
</goals>
89+
</execution>
90+
</executions>
91+
</plugin>
92+
93+
</plugins>
94+
</build>
95+
96+
<dependencies>
97+
98+
<!-- Guacamole Extension API -->
99+
<dependency>
100+
<groupId>org.apache.guacamole</groupId>
101+
<artifactId>guacamole-ext</artifactId>
102+
<version>0.9.13-incubating</version>
103+
<scope>provided</scope>
104+
</dependency>
105+
106+
<!-- libpam4j -->
107+
<dependency>
108+
<groupId>org.kohsuke</groupId>
109+
<artifactId>libpam4j</artifactId>
110+
<version>1.8</version>
111+
</dependency>
112+
113+
</dependencies>
114+
115+
</project>

0 commit comments

Comments
 (0)