cryptKeysetOpen LDAP with the Python wrapper

aryoo <[email protected]>
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
Dear list,

I would like to access a LDAP server storing X.509 certificates with
the Python wrapper.
As described in the manual, on page 143 in the LDAP keyset section I
typed the code below assuming that "cryptKeyset" is returned.

The error message that I get is:
    'ldap://annuaire.test.gip-cps.fr', CRYPT_KEYOPT_READONLY )
cryptlib_py.CryptException: (-3, 'Bad argument, parameter 3')

Any help with LDAP access from Python would be greatly appreciated.

Aryé.



from cryptlib_py import *

cryptInit()

cryptUser = CRYPT_UNUSED

cryptKeyset = cryptKeysetOpen( cryptUser, CRYPT_KEYSET_LDAP,
   'ldap://annuaire.test.gip-cps.fr', CRYPT_KEYOPT_READONLY )


cryptEnd()

_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.