Fix and test python scripts and kerberos
authorAndrew Bartlett <abartlet@samba.org>
Fri, 28 Mar 2008 10:57:15 +0000 (21:57 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 28 Mar 2008 10:57:15 +0000 (21:57 +1100)
commit727ef40c2b56910028ef3c1092b8eab1bfa6ce63
tree7fee466b2aafea1d0873dababd20df7d01ea6cbd
parentebe5e8399422eb7e2ff4deb546338823e2718907
Fix and test python scripts and kerberos

This fixes up the python credentials interface in a number of areas,
with the aim of supporting '-k yes' as a command line option.  (This
enables the use of kerberos).

As such, I've had to change the get_credentials call to take a
loadparm context, so that the credentials can be initialised
correctly.

The test_kinit script has been modified to prove that this continues
to work, as well as to provide greater code coverage of the kerberos
paths.

Andrew Bartlett
12 files changed:
source/auth/credentials/credentials.i
source/auth/credentials/credentials.py
source/auth/credentials/credentials_wrap.c
source/auth/credentials/tests/bindings.py
source/lib/ldb/tests/python/ldap.py
source/scripting/python/samba/getopt.py
source/scripting/python/samba/tests/samdb.py
source/selftest/samba4_tests.sh
source/setup/enableaccount
source/setup/provision
source/setup/upgrade.py
testprogs/blackbox/test_kinit.sh