File: qserver_auth_sys.ml

package info (click to toggle)
ocamlnet 4.1.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 54,040 kB
  • sloc: ml: 151,939; ansic: 11,071; sh: 2,003; makefile: 1,310
file content (17 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(* $Id$ *)

(* Configure qserver for system authentication (UNSAFE) *)

Qserver.pluggable_auth_module :=
  ( "auth_sys",
    (`Socket(Rpc.Tcp, Rpc_server.Portmapped, Rpc_server.default_socket_config)),
    (fun srv ->
       Rpc_server.set_auth_methods
	 srv
	 [ Rpc_auth_sys.server_auth_method
	      ~require_privileged_port:false 
	      ~user_name_as:`UID
	      () ]
    )
  )
;;