Browse Source

Moved src/conf.xml to pusb.conf

master
Andrea Luzzardi 18 years ago
parent
commit
72f952a079
2 changed files with 47 additions and 1 deletions
  1. +46
    -0
      pam_usb/pusb.conf
  2. +1
    -1
      pam_usb/src/test.c

+ 46
- 0
pam_usb/pusb.conf View File

@ -0,0 +1,46 @@
<configuration>
<defaults>
<!-- <option name="hostname">foobar</option> -->
<option name="one_time_pad">true</option>
<option name="probe_timeout">10</option>
<option name="system_pad_directory">/usr/share/pam_usb/pads</option>
<option name="device_pad_directory">.auth</option>
</defaults>
<devices>
<device id="foobar">
<vendor>SanDisk Corp.</vendor>
<model>Cruzer Titanium</model>
<serial>SNDKB882652FC4A03701</serial>
<volume_uuid>3B69-1AFD</volume_uuid>
</device>
</devices>
<users>
<user id="scox">
<device>foobar</device>
<!--<option name="one_time_pad">false</option> -->
</user>
<user id="root">
<device>foobar</device>
<option name="color_log">false</option>
</user>
</users>
<services>
<!-- Disable pam_usb for sshd (nonsense) -->
<service id="ssh">
<option name="enable">false</option>
</service>
<!-- Speed up 'login' authentication by disabling one time pads.
This setting will not affect user 'root' as he/she is
enforcing one time pads (enforce_otp).
-->
<service id="login">
<option name="one_time_pad">false</option>
</service>
</services>
</configuration>

+ 1
- 1
pam_usb/src/test.c View File

@ -51,7 +51,7 @@ int main(int argc, char **argv)
log_info("Authentication request for user \"%s\" (%s)\n",
argv[1], argv[2]);
pusb_conf_init(&opts);
if (!pusb_conf_parse("conf.xml", &opts, argv[1], argv[2]))
if (!pusb_conf_parse("pusb.conf", &opts, argv[1], argv[2]))
return (0);
pusb_log_init(&opts);
pusb_conf_dump(&opts);


Loading…
Cancel
Save