[strongSwan] Prompting for Credentials with strongswan 5

Martin Willi martin at strongswan.org
Mon Sep 10 15:51:40 CEST 2012

> I would like to popup a Dialog when xauth credentials or a smartcard
> pin is needed and not provided by the config files.

> As far as I see there is no such plugin yet, right?


> Are there any additional docs or any plugin that I can use as starting
> point?

There is no way around reading the sources. These interfaces are well
commented and it shouldn't be too hard to understand them.

At the credential manager [1], you can register your own credential set
[2]. Once registered, the set will be asked for credentials when needed.
XAuth credentials and PINs are both handled as shared key [3] (XAuth as
SHARED_EAP). An example of a simple credential set is the NM backend

For an example how to write a plugin in general, take a look at the LED
plugin [5].



More information about the Users mailing list