[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Python bindings



Stefan Gohmann wrote:
> we wrote some python heimdal bindings. You could find a source package here:
> http://apt.univention.de/addons/1.3/tools/source/. In the parent directory you 
> could find debian binary packages for i386 and powerpc.
> The api is incomplete and we wrote it for heimdal 0.6. But maybe it helps.

I'd be interested in a Python KRB5 module too, e.g. for doing kinit
before using LDAP SASL/GSSAPI bind. I tried to build your module
(tweaking setup.py to let include_dirs/library_dirs point to my local
heimdal installation) but got the error attached below.

Any hint is appreciated. To make things worse the MIT KRB libs are also
installed (due to RPM dependencies of openSUSE).

Ciao, Michael.


michael@nb2:/usr/src/python-heimdal-0.7.14.200611231506> python setup.py
build
running build
running build_ext
building 'heimdal' extension
creating build/temp.linux-i686-2.5
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O4 -march=pentium4 -fPIC
-I/opt/heimdal/include -I/usr/include/python2.5 -c module.c -o
build/temp.linux-i686-2.5/module.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O4 -march=pentium4 -fPIC
-I/opt/heimdal/include -I/usr/include/python2.5 -c error.c -o
build/temp.linux-i686-2.5/error.o
error.c: In function ‘error_init’:
error.c:134: error: ‘KDC_ERROR_CLIENT_NOT_TRUSTED’ undeclared (first use
in this function)
error.c:134: error: (Each undeclared identifier is reported only once
error.c:134: error: for each function it appears in.)
error.c:135: error: ‘KDC_ERROR_KDC_NOT_TRUSTED’ undeclared (first use in
this function)
error.c:136: error: ‘KDC_ERROR_INVALID_SIG’ undeclared (first use in
this function)
error.c:137: error: ‘KDC_ERROR_KEY_TOO_WEAK’ undeclared (first use in
this function)
error.c:138: error: ‘KDC_ERROR_CERTIFICATE_MISMATCH’ undeclared (first
use in this function)
error.c:140: error: ‘KDC_ERROR_CANT_VERIFY_CERTIFICATE’ undeclared
(first use in this function)
error.c:141: error: ‘KDC_ERROR_INVALID_CERTIFICATE’ undeclared (first
use in this function)
error.c:142: error: ‘KDC_ERROR_REVOKED_CERTIFICATE’ undeclared (first
use in this function)
error.c:143: error: ‘KDC_ERROR_REVOCATION_STATUS_UNKNOWN’ undeclared
(first use in this function)
error.c:144: error: ‘KDC_ERROR_REVOCATION_STATUS_UNAVAILABLE’ undeclared
(first use in this function)
error.c:145: error: ‘KDC_ERROR_CLIENT_NAME_MISMATCH’ undeclared (first
use in this function)
error.c:146: error: ‘KDC_ERROR_KDC_NAME_MISMATCH’ undeclared (first use
in this function)
error.c:244: error: ‘KRB5_KT_NAME_TOOLONG’ undeclared (first use in this
function)
error: command 'gcc' failed with exit status 1