Implement multiple authorized connections per user.
[guacamole.git] / doc / example / user-mapping.xml
1 <user-mapping>
2         
3     <!-- Per-user authentication and config information -->
4     <authorize username="USERNAME" password="PASSWORD">
5
6         <!-- Single authorized connection -->
7                 <remote-server servername="localhost">
8             <protocol>vnc</protocol>
9             <param name="hostname">localhost</param>
10             <param name="port">5900</param>
11             <param name="password">VNCPASS</param>
12         </remote-server>
13
14     </authorize>
15
16     <!-- Another user, but using md5 to hash the password
17          (example below uses the md5 hash of "PASSWORD") -->
18     <authorize 
19             username="USERNAME2"
20             password="319f4d26e3c536b5dd871bb2c52e3178"
21             encoding="md5">
22
23         <!-- First authorized connection -->
24                 <remote-server servername="localhost">
25             <protocol>vnc</protocol>
26             <param name="hostname">localhost</param>
27             <param name="port">5901</param>
28             <param name="password">VNCPASS</param>
29         </remote-server>
30
31         <!-- Second authorized connection -->
32                 <remote-server servername="otherhost">
33             <protocol>vnc</protocol>
34             <param name="hostname">otherhost</param>
35             <param name="port">5900</param>
36             <param name="password">VNCPASS</param>
37         </remote-server>
38
39  </authorize>
40
41 </user-mapping>