Import SafeNet etoken pass XML

Hello Cornelius!
The documentation says that there’s an option to import SafeNet XMLs
http://privacyidea.readthedocs.org/en/latest/import/index.html
In fact, there’s no such option:
https://lh3.googleusercontent.com/-Q-FyghMw9k0/VpOZOEjap6I/AAAAAAAAKxA/KR-Qv5ZG6ik/s1600/Screenshot_1.png

I tried to form a csv file using data from an xml and importing csv works
well.

Should I make my own converter xml->csv and then import csv or it is going
to be implemented soon? We have a lot of token data in safenet xmls…

Hello Sergey,

version 2.10 is scheduled for February 11th.

Till now, we were able to meet the milestones.

Kind regards
CorneliusAm Montag, den 11.01.2016, 06:55 -0800 schrieb Sergey Kolosovski:

Thank you very much!
When approximately could we expect new updated version in the
repository?

You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/67ceb129-90ba-4133-8d6e-00ed3c91fb9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cornelius Kölbel
@cornelinux
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel

signature.asc (836 Bytes)

Hi Cornelius!

will be a bit more than one line… due to some help texts :wink:

sure )) It is just roughly saying

the example of XML is:

<?xml version="1.0" encoding="utf-8"?> 5 517 10/07/2013 eTPass 6.20 ffffffffffffffffffffffffffffffffffffffff 1

Therefore the should be more than one sections. For an example I
left only one

Is your eToken Pass an HOTP or an TOTP token?

HOTP

40 → SHA1

correct

Hi Sergey,

will be a bit more than one line… due to some help texts :wink:

I assume your XML still looks like this:

    <Tokens>
    <Token serial="000400081DFFA5">
    <CaseModel>5</CaseModel>
    <Model>101</Model>
    <ProductionDate>02/19/2009</ProductionDate>
    <ProductName>Safeword Alpine</ProductName>
    <Applications>
    <Application

ConnectorID=“{ab1397d2-ddb6-4705-b66e-9f83f322deb9}”>
123412354
1


</Tokens>

Is your eToken Pass an HOTP or an TOTP token?
What is the length of your ?

40 → SHA1
64 → SHA256

Kind regards
CorneliusAm Montag, den 11.01.2016, 05:14 -0800 schrieb Sergey Kolosovski:

    But as a matter of fact it is still there: 
    https://github.com/privacyidea/privacyidea/blob/master/privacyidea/lib/importotp.py#L312 
    
    ...and also well test covered: 
    https://coveralls.io/builds/4680044/source?filename=privacyidea%2Flib% 
    2Fimportotp.py#L312 
    
    Cool. You see. We even have tested code, which we do not
    use. ;-) 
    
    What is your time frame? The import will be rewired in version
    2.10. 

Don’t have a strict time frame. Just plan to move tokens and how to do
it…
So you propose to wait for the nearest update to have it working(As I
understood there’s only need to add one line in imports dropdown list
which will fire the function you provided) ?


You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/f4127992-02cc-477c-93ef-b9093b1199b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cornelius Kölbel
@cornelinux
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel

signature.asc (836 Bytes)

Hello Sergey,

thank you and done.

Kind regards
CorneliusAm Montag, den 11.01.2016, 05:34 -0800 schrieb Sergey Kolosovski:

Hi Cornelius!

    will be a bit more than one line... due to some help
    texts ;-) 

sure )) It is just roughly saying

the example of XML is:

<?xml version="1.0" encoding="utf-8"?> 5 517 10/07/2013 eTPass 6.20 ffffffffffffffffffffffffffffffffffffffff 1

Therefore the should be more than one sections. For an example
I left only one

    Is your eToken Pass an HOTP or an TOTP token? 

HOTP

     40 -> SHA1 

correct


You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/5c82d5b9-2c56-4a51-9e86-ab3f513ee2f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cornelius Kölbel
@cornelinux
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel

signature.asc (836 Bytes)

Hi Sergey,

you are right.
The documentation lies.
The XML import got lost during migration.

But as a matter of fact it is still there:

…and also well test covered:
https://coveralls.io/builds/4680044/source?filename=privacyidea%2Flib%
2Fimportotp.py#L312

Cool. You see. We even have tested code, which we do not use. :wink:

What is your time frame? The import will be rewired in version 2.10.

Kind regards
CorneliusAm Montag, den 11.01.2016, 04:04 -0800 schrieb Sergey Kolosovski:

Hello Cornelius!

The documentation says that there’s an option to import SafeNet XMLs
http://privacyidea.readthedocs.org/en/latest/import/index.html
In fact, there’s no such option:

I tried to form a csv file using data from an xml and importing csv
works well.

Should I make my own converter xml->csv and then import csv or it is
going to be implemented soon? We have a lot of token data in safenet
xmls…


You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/b5135d45-2089-4276-99aa-a23de50101c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cornelius Kölbel
@cornelinux
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel

signature.asc (836 Bytes)

But as a matter of fact it is still there:

https://github.com/privacyidea/privacyidea/blob/master/privacyidea/lib/importotp.py#L312

…and also well test covered:
https://coveralls.io/builds/4680044/source?filename=privacyidea%2Flib%
2Fimportotp.py#L312
https://coveralls.io/builds/4680044/source?filename=privacyidea%2Flib%2Fimportotp.py#L312

Cool. You see. We even have tested code, which we do not use. :wink:

What is your time frame? The import will be rewired in version 2.10.

Don’t have a strict time frame. Just plan to move tokens and how to do it…
So you propose to wait for the nearest update to have it working(As I
understood there’s only need to add one line in imports dropdown list which
will fire the function you provided) ?

Thank you very much!
When approximately could we expect new updated version in the repository?

thank you. Will wait for updates